	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_hex
_write_hex:                             ## @write_hex
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_write_hex_cnt@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	imull	$-1431655765, %ecx, %eax        ## imm = 0xAAAAAAAB
	addl	$715827880, %eax                ## imm = 0x2AAAAAA8
	rorl	$2, %eax
	cmpl	$357913941, %eax                ## imm = 0x15555555
	jb	LBB0_2
## %bb.1:
	movq	_out@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movzbl	%dil, %edx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_5
LBB0_2:
	movq	_out@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movzbl	%dil, %edx
	testl	%ecx, %ecx
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str.2(%rip), %rsi
LBB0_5:
	movl	%eax, %edi
	callq	_fprintf
	incl	(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_write_hex_cnt,4,2              ## @write_hex_cnt
	.comm	_out,4,2                        ## @out
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	", 0x%02x"

L_.str.1:                               ## @.str.1
	.asciz	",\n\t0x%02x"

L_.str.2:                               ## @.str.2
	.asciz	"\t0x%02x"

	.no_dead_strip	_write_hex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_hex
_write_hex:                             ; @write_hex
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x2, x0
Lloh0:
	adrp	x19, _write_hex_cnt@GOTPAGE
Lloh1:
	ldr	x19, [x19, _write_hex_cnt@GOTPAGEOFF]
	ldr	w8, [x19]
	mov	w9, #43691
	movk	w9, #43690, lsl #16
	mov	w10, #43688
	movk	w10, #10922, lsl #16
	madd	w9, w8, w9, w10
	ror	w9, w9, #2
	mov	w10, #21845
	movk	w10, #5461, lsl #16
	cmp	w9, w10
	b.lo	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _out@GOTPAGE
Lloh3:
	ldr	x8, [x8, _out@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_5
LBB0_2:
Lloh7:
	adrp	x9, _out@GOTPAGE
Lloh8:
	ldr	x9, [x9, _out@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x9]
	cbz	w8, LBB0_4
; %bb.3:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_5:
	bl	_fprintf
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_write_hex_cnt,4,2              ; @write_hex_cnt
	.comm	_out,4,2                        ; @out
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	", 0x%02x"

l_.str.1:                               ; @.str.1
	.asciz	",\n\t0x%02x"

l_.str.2:                               ; @.str.2
	.asciz	"\t0x%02x"

	.no_dead_strip	_write_hex
.subsections_via_symbols
