	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gethexnum_str
_gethexnum_str:                         ## @gethexnum_str
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rdi), %rdi
	leaq	8(%rdi), %rbx
	cmpq	%rsi, %rbx
	jae	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$2, %edx
	callq	_strncasecmp
	testq	%rax, %rax
	je	LBB0_3
LBB0_2:
	movq	%r14, %rdi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_getnum_str                     ## TAILCALL
LBB0_3:
	movq	%rbx, (%r14)
	xorl	%r12d, %r12d
	movb	$1, %r13b
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_6 Depth=1
	testb	$1, %r13b
	je	LBB0_20
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	movb	$1, %r13b
	xorl	%r12d, %r12d
	cmpq	%r15, %rbx
	ja	LBB0_20
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movl	(%rbx), %ebx
	movl	%ebx, %edi
	callq	_isspace
	testl	%ebx, %ebx
	je	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	testq	%rax, %rax
	jne	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$59, %ebx
	jne	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r14), %rbx
	cmpq	%r15, %rbx
	ja	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	$10, (%rbx)
	je	LBB0_4
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	addq	$4, %rbx
	movq	%rbx, (%r14)
	cmpq	%r15, %rbx
	jbe	LBB0_10
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	testb	$1, %r13b
	je	LBB0_20
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r14), %rbx
	addq	$4, %rbx
	movq	%rbx, (%r14)
	jmp	LBB0_5
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%ebx, %edi
	callq	_isxdigit
	testl	%eax, %eax
	je	LBB0_22
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=1
	addq	$4, (%r14)
	movl	%ebx, %edi
	callq	_isdigit
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	shll	$4, %r12d
	movl	$-48, %ecx
	testq	%rax, %rax
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	%ebx, %edi
	callq	_tolower
	movsbl	%al, %ebx
	movl	$-87, %ecx
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=1
	addl	%ecx, %r12d
	addl	%ebx, %r12d
	movq	(%r14), %rbx
	movl	%r12d, %eax
	movb	$1, %r12b
	xorl	%r13d, %r13d
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpq	%r15, %rbx
	jbe	LBB0_6
	jmp	LBB0_21
LBB0_22:
	cmpl	$41, %ebx
	setne	%al
	notb	%r12b
	orb	%al, %r12b
	movl	$-1, %eax
	testb	$1, %r12b
	jne	LBB0_21
## %bb.23:
	addq	$-4, (%r14)
LBB0_20:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"0x"

	.no_dead_strip	_gethexnum_str
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gethexnum_str
_gethexnum_str:                         ; @gethexnum_str
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	mov	x19, x0
	ldr	x0, [x0]
	add	x22, x0, #8
	cmp	x22, x1
	b.hs	LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #2
	bl	_strncasecmp
	cbz	x0, LBB0_3
LBB0_2:
	mov	x0, x19
	mov	x1, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_getnum_str
LBB0_3:
	mov	w24, #0
	mov	w20, #0
	str	x22, [x19]
	mov	w23, #1
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	ldr	w22, [x22]
	mov	x0, x22
	bl	_isspace
	cmp	w22, #0
	ccmp	x0, #0, #0, ne
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	tbz	w23, #0, LBB0_22
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19]
	add	x22, x8, #4
	str	x22, [x19]
	b	LBB0_12
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w22, #59
	b.ne	LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x22, [x19]
	cmp	x22, x21
	b.hi	LBB0_11
LBB0_9:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x22]
	cmp	w8, #10
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	add	x22, x22, #4
	str	x22, [x19]
	cmp	x22, x21
	b.ls	LBB0_9
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	tbz	w23, #0, LBB0_22
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w24, #0
	mov	w23, #1
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x22, x21
	b.ls	LBB0_4
	b	LBB0_22
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_isxdigit
	cbz	w0, LBB0_19
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19]
	add	x8, x8, #4
	str	x8, [x19]
	mov	x0, x22
	bl	_isdigit
	cbz	x0, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #-48
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_tolower
	mov	x22, x0
	mov	w8, #-87
LBB0_18:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w23, #0
	lsl	w9, w20, #4
	add	w8, w9, w8
	add	w20, w8, w22
	ldr	x22, [x19]
	mov	w24, #1
	b	LBB0_13
LBB0_19:
	cmp	w22, #41
	cset	w8, ne
	orn	w8, w8, w24
	tbnz	w8, #0, LBB0_21
; %bb.20:
	ldr	x8, [x19]
	sub	x8, x8, #4
	str	x8, [x19]
	b	LBB0_22
LBB0_21:
	mov	w20, #-1
LBB0_22:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"0x"

	.no_dead_strip	_gethexnum_str
.subsections_via_symbols
