	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_format_hex_ex                  ## -- Begin function format_hex_ex
	.p2align	4, 0x90
_format_hex_ex:                         ## @format_hex_ex
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movq	%r8, %r13
	movl	%edx, %ebx
	movl	%esi, %r12d
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	_FHE_SPACE_BREAK_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	andl	%ecx, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%r8, %r8
	je	LBB0_1
## %bb.2:
	movq	%r13, %rdi
	callq	_strlen
	movq	%rax, %r15
	jmp	LBB0_3
LBB0_1:
	xorl	%r15d, %r15d
LBB0_3:
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_SIZE_MAX@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setle	%dil
	leaq	L_.str(%rip), %rsi
	callq	_static_assert
	testl	%ebx, %ebx
	jle	LBB0_5
## %bb.4:
	movl	%ebx, %edi
	jmp	LBB0_9
LBB0_5:
	leal	(%r12,%r12), %eax
	movslq	%eax, %rcx
	movslq	%r12d, %rax
	movq	%rax, %rdx
	shrq	$32, %rdx
	je	LBB0_6
## %bb.7:
	xorl	%edx, %edx
	divq	-48(%rbp)                       ## 8-byte Folded Reload
	jmp	LBB0_8
LBB0_6:
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	-48(%rbp)                       ## 4-byte Folded Reload
                                        ## kill: def $eax killed $eax def $rax
LBB0_8:
	imulq	%r15, %rax
	leaq	(%rcx,%rax), %rdi
	addq	$2, %rdi
LBB0_9:
	movq	%r14, %rsi
	callq	_alloc_buf_gc
	movq	%rax, -56(%rbp)
	testl	%r12d, %r12d
	jle	LBB0_16
## %bb.10:
	movl	%r12d, %r15d
	xorl	%ebx, %ebx
	leaq	-56(%rbp), %r12
	leaq	L_.str.2(%rip), %r14
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	_FHE_CAPS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-60(%rbp), %eax                 ## 4-byte Folded Reload
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%rbx,8), %rdx
	movq	%r14, %rsi
	leaq	L_.str.3(%rip), %rax
	cmoveq	%rax, %rsi
	movq	%r12, %rdi
	callq	_buf_printf
	incq	%rbx
	cmpq	%rbx, %r15
	je	LBB0_16
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	testq	%r13, %r13
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	-48(%rbp)                       ## 4-byte Folded Reload
	testl	%edx, %edx
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r12, %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdx
	callq	_buf_printf
	jmp	LBB0_15
LBB0_16:
	leaq	L_.str.4(%rip), %rsi
	leaq	-56(%rbp), %rdi
	callq	_buf_catrunc
	movq	-56(%rbp), %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FHE_SPACE_BREAK_MASK,4,2       ## @FHE_SPACE_BREAK_MASK
	.comm	_INT_MAX,8,3                    ## @INT_MAX
	.comm	_SIZE_MAX,8,3                   ## @SIZE_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Code assumes INT_MAX <= SIZE_MAX"

L_.str.1:                               ## @.str.1
	.asciz	"%s"

	.comm	_FHE_CAPS,4,2                   ## @FHE_CAPS
L_.str.2:                               ## @.str.2
	.asciz	"%02X"

L_.str.3:                               ## @.str.3
	.asciz	"%02x"

L_.str.4:                               ## @.str.4
	.asciz	"[more...]"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_format_hex_ex                  ; -- Begin function format_hex_ex
	.p2align	2
_format_hex_ex:                         ; @format_hex_ex
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x5
	mov	x19, x4
	mov	x20, x3
	mov	x24, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _FHE_SPACE_BREAK_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FHE_SPACE_BREAK_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w26, w8, w3
	cbz	x4, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_strlen
	mov	x25, x0
	b	LBB0_3
LBB0_2:
	mov	x25, #0
LBB0_3:
Lloh3:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _SIZE_MAX@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SIZE_MAX@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, le
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_static_assert
	cmp	w24, #1
	lsl	w8, w22, #1
	sxtw	x9, w22
	udiv	x9, x9, x26
	mul	x9, x9, x25
	add	x8, x9, w8, sxtw
	add	x8, x8, #2
	mov	w9, w24
	csel	x0, x8, x9, lt
	mov	x1, x23
	bl	_alloc_buf_gc
	str	x0, [sp, #8]
	cmp	w22, #1
	b.lt	LBB0_10
; %bb.4:
	mov	x23, #0
	mov	w24, w22
Lloh11:
	adrp	x22, l_.str.1@PAGE
Lloh12:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh13:
	adrp	x25, _FHE_CAPS@GOTPAGE
Lloh14:
	ldr	x25, [x25, _FHE_CAPS@GOTPAGEOFF]
Lloh15:
	adrp	x27, l_.str.2@PAGE
Lloh16:
	add	x27, x27, l_.str.2@PAGEOFF
Lloh17:
	adrp	x28, l_.str.3@PAGE
Lloh18:
	add	x28, x28, l_.str.3@PAGEOFF
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x25]
	ldr	x2, [x21, x23, lsl #3]
	tst	w8, w20
	csel	x1, x28, x27, eq
	add	x0, sp, #8
	bl	_buf_printf
	add	x23, x23, #1
	cmp	x24, x23
	b.eq	LBB0_10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x19, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	x23, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	udiv	w8, w23, w26
	msub	w8, w8, w26, w23
	cbnz	w8, LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #8
	mov	x1, x22
	mov	x2, x19
	bl	_buf_printf
	b	LBB0_5
LBB0_10:
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x0, sp, #8
	bl	_buf_catrunc
	ldr	x0, [sp, #8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_FHE_SPACE_BREAK_MASK,4,2       ; @FHE_SPACE_BREAK_MASK
	.comm	_INT_MAX,8,3                    ; @INT_MAX
	.comm	_SIZE_MAX,8,3                   ; @SIZE_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Code assumes INT_MAX <= SIZE_MAX"

l_.str.1:                               ; @.str.1
	.asciz	"%s"

	.comm	_FHE_CAPS,4,2                   ; @FHE_CAPS
l_.str.2:                               ; @.str.2
	.asciz	"%02X"

l_.str.3:                               ; @.str.3
	.asciz	"%02x"

l_.str.4:                               ; @.str.4
	.asciz	"[more...]"

.subsections_via_symbols
