	.file	"267498.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"0x"
	.text
	.globl	write_hex
	.type	write_hex, @function
write_hex:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 2
	lea	rsi, .LC0[rip]
	mov	edi, eax
	call	write@PLT
	mov	BYTE PTR -11[rbp], 16
	jmp	.L2
.L5:
	movzx	eax, BYTE PTR -11[rbp]
	sub	eax, 1
	mov	BYTE PTR -10[rbp], al
	movzx	eax, BYTE PTR -10[rbp]
	sal	eax, 2
	mov	edx, 15
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	cdqe
	and	rax, QWORD PTR -32[rbp]
	mov	rdx, rax
	movzx	eax, BYTE PTR -10[rbp]
	sal	eax, 2
	mov	ecx, eax
	shr	rdx, cl
	mov	rax, rdx
	mov	BYTE PTR -9[rbp], al
	cmp	BYTE PTR -9[rbp], 9
	ja	.L3
	movzx	eax, BYTE PTR -9[rbp]
	add	eax, 48
	jmp	.L4
.L3:
	movzx	eax, BYTE PTR -9[rbp]
	add	eax, 55
.L4:
	mov	BYTE PTR -12[rbp], al
	lea	rcx, -12[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	movzx	eax, BYTE PTR -11[rbp]
	sub	eax, 1
	mov	BYTE PTR -11[rbp], al
.L2:
	cmp	BYTE PTR -11[rbp], 0
	jne	.L5
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	write_hex, .-write_hex
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"267498.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"0x\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	write_hex
	.syntax unified
	.arm
	.fpu softvfp
	.type	write_hex, %function
write_hex:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #2
	ldr	r1, .L7+4
	ldr	r0, [fp, #-16]
	bl	write
	mov	r3, #8
	strb	r3, [fp, #-11]
	b	.L2
.L5:
	ldrb	r3, [fp, #-11]
	sub	r3, r3, #1
	strb	r3, [fp, #-10]
	ldrb	r3, [fp, #-10]	@ zero_extendqisi2
	lsl	r3, r3, #2
	mov	r2, #15
	lsl	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-20]
	and	r2, r2, r3
	ldrb	r3, [fp, #-10]	@ zero_extendqisi2
	lsl	r3, r3, #2
	lsr	r3, r2, r3
	strb	r3, [fp, #-9]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #9
	bhi	.L3
	ldrb	r3, [fp, #-9]
	add	r3, r3, #48
	and	r3, r3, #255
	b	.L4
.L3:
	ldrb	r3, [fp, #-9]
	add	r3, r3, #55
	and	r3, r3, #255
.L4:
	strb	r3, [fp, #-12]
	sub	r3, fp, #12
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	write
	ldrb	r3, [fp, #-11]	@ zero_extendqisi2
	sub	r3, r3, #1
	strb	r3, [fp, #-11]
.L2:
	ldrb	r3, [fp, #-11]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L5
	nop
	ldr	r3, .L7
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC1
	.word	.LC0
	.size	write_hex, .-write_hex
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
