	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ut_strtoul64              ## -- Begin function acpi_ut_strtoul64
	.p2align	4, 0x90
_acpi_ut_strtoul64:                     ## @acpi_ut_strtoul64
	.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	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_acpi_gbl_integer_byte_width@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_ut_stroul64@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_ACPI_FUNCTION_TRACE_STR
	cmpl	$16, %r15d
	je	LBB0_3
## %bb.1:
	cmpl	$128, %r15d
	je	LBB0_3
## %bb.2:
	movq	_AE_BAD_PARAMETER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
LBB0_3:
	testq	%rbx, %rbx
	je	LBB0_14
## %bb.4:
	movb	(%rbx), %al
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	movzbl	1(%rbx), %eax
	incq	%rbx
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	testb	%al, %al
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movsbl	%al, %edi
	callq	_ACPI_IS_SPACE
	testq	%rax, %rax
	jne	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movzbl	(%rbx), %eax
	cmpb	$9, %al
	je	LBB0_5
	jmp	LBB0_10
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	cmpl	$128, %r15d
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	jne	LBB0_15
## %bb.11:
	cmpb	$48, %al
	jne	LBB0_16
## %bb.12:
	movsbl	1(%rbx), %edi
	callq	_ACPI_TOLOWER
	cmpb	$120, %al
	jne	LBB0_17
## %bb.13:
	addq	$2, %rbx
	movb	$1, %al
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	$16, %r12d
	jmp	LBB0_18
LBB0_14:
	movl	%r15d, %r12d
	jmp	LBB0_24
LBB0_15:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	%r15d, %r12d
	jmp	LBB0_18
LBB0_16:
	movl	$10, %r12d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	testb	%al, %al
	jne	LBB0_19
	jmp	LBB0_21
LBB0_17:
	movl	$10, %r12d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_18:
	movb	(%rbx), %al
	testb	%al, %al
	je	LBB0_21
LBB0_19:
	movsbl	%al, %edi
	callq	_ACPI_IS_SPACE
	testq	%rax, %rax
	jne	LBB0_21
## %bb.20:
	movb	(%rbx), %al
	cmpb	$9, %al
	jne	LBB0_28
LBB0_21:
	xorl	%r13d, %r13d
	cmpl	$128, %r15d
	je	LBB0_24
LBB0_23:
	movl	%r13d, %edi
	callq	_ACPI_FORMAT_UINT64
	movl	%eax, %edi
	callq	_ACPI_DEBUG_PRINT
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%r13d, (%rax)
	movq	_AE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
LBB0_24:
	cmpl	$10, %r12d
	jne	LBB0_26
## %bb.25:
	movq	_AE_BAD_DECIMAL_CONSTANT@GOTPCREL(%rip), %rax
	jmp	LBB0_27
LBB0_26:
	movq	_AE_BAD_HEX_CONSTANT@GOTPCREL(%rip), %rax
LBB0_27:
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	cmpl	$4, %r13d
	jne	LBB0_44
## %bb.29:
	movq	_ACPI_UINT32_MAX@GOTPCREL(%rip), %rcx
	testb	%al, %al
	je	LBB0_45
LBB0_30:
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	movl	(%rcx), %ecx
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	xorl	%r14d, %r14d
	xorl	%ecx, %ecx
LBB0_31:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_32 Depth 2
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	incq	%rbx
	.p2align	4, 0x90
LBB0_32:                                ##   Parent Loop BB0_31 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	%al, %edi
	callq	_ACPI_IS_DIGIT
	testq	%rax, %rax
	je	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_32 Depth=2
	movsbl	-1(%rbx), %r13d
	addl	$-48, %r13d
	jmp	LBB0_37
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_32 Depth=2
	cmpl	$10, %r12d
	je	LBB0_47
## %bb.35:                              ##   in Loop: Header=BB0_32 Depth=2
	movsbl	-1(%rbx), %edi
	callq	_ACPI_TOUPPER
	movq	%rax, %r13
	movsbl	%r13b, %edi
	callq	_ACPI_IS_XDIGIT
	testq	%rax, %rax
	je	LBB0_47
## %bb.36:                              ##   in Loop: Header=BB0_32 Depth=2
	addl	$-55, %r13d
LBB0_37:                                ##   in Loop: Header=BB0_32 Depth=2
	movl	%r14d, %eax
	orl	%r13d, %eax
	setne	%al
	orb	-44(%rbp), %al                  ## 1-byte Folded Reload
	jne	LBB0_39
## %bb.38:                              ##   in Loop: Header=BB0_32 Depth=2
	movzbl	(%rbx), %eax
	incq	%rbx
	xorl	%r14d, %r14d
	testb	%al, %al
	jne	LBB0_32
	jmp	LBB0_46
LBB0_39:                                ##   in Loop: Header=BB0_31 Depth=1
	cmpb	$0, -44(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_42
## %bb.40:                              ##   in Loop: Header=BB0_31 Depth=1
	cmpl	$4, -52(%rbp)                   ## 4-byte Folded Reload
	sete	%al
	cmpl	$8, %r14d
	setge	%cl
	cmpl	$15, %r14d
	jg	LBB0_24
## %bb.41:                              ##   in Loop: Header=BB0_31 Depth=1
	andb	%al, %cl
	jne	LBB0_24
LBB0_42:                                ##   in Loop: Header=BB0_31 Depth=1
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	subl	%r13d, %edi
	movl	%r12d, %esi
	leaq	-60(%rbp), %rdx
	xorl	%ecx, %ecx
	callq	_acpi_ut_short_divide
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	cmpl	-60(%rbp), %eax
	jg	LBB0_48
## %bb.43:                              ##   in Loop: Header=BB0_31 Depth=1
	incl	%r14d
	imull	%r12d, %eax
	addl	%eax, %r13d
	movb	(%rbx), %al
	movl	%r13d, %ecx
	testb	%al, %al
	jne	LBB0_31
	jmp	LBB0_23
LBB0_44:
	movq	_ACPI_UINT64_MAX@GOTPCREL(%rip), %rcx
	testb	%al, %al
	jne	LBB0_30
LBB0_45:
	xorl	%r13d, %r13d
	jmp	LBB0_23
LBB0_46:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %r13d
	jmp	LBB0_23
LBB0_47:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
LBB0_48:
	movl	%eax, %r13d
	cmpl	$128, %r15d
	je	LBB0_24
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_acpi_gbl_integer_byte_width,4,2 ## @acpi_gbl_integer_byte_width
	.comm	_ut_stroul64,4,2                ## @ut_stroul64
	.comm	_AE_BAD_PARAMETER,4,2           ## @AE_BAD_PARAMETER
	.comm	_ACPI_UINT32_MAX,4,2            ## @ACPI_UINT32_MAX
	.comm	_ACPI_UINT64_MAX,4,2            ## @ACPI_UINT64_MAX
	.comm	_ACPI_DB_EXEC,4,2               ## @ACPI_DB_EXEC
	.comm	_AE_OK,4,2                      ## @AE_OK
	.comm	_AE_BAD_DECIMAL_CONSTANT,4,2    ## @AE_BAD_DECIMAL_CONSTANT
	.comm	_AE_BAD_HEX_CONSTANT,4,2        ## @AE_BAD_HEX_CONSTANT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ut_strtoul64              ; -- Begin function acpi_ut_strtoul64
	.p2align	2
_acpi_ut_strtoul64:                     ; @acpi_ut_strtoul64
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _acpi_gbl_integer_byte_width@GOTPAGE
Lloh1:
	ldr	x8, [x8, _acpi_gbl_integer_byte_width@GOTPAGEOFF]
Lloh2:
	ldr	w25, [x8]
Lloh3:
	adrp	x8, _ut_stroul64@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ut_stroul64@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_ACPI_FUNCTION_TRACE_STR
	cmp	w20, #16
	b.eq	LBB0_3
; %bb.1:
	cmp	w20, #128
	b.eq	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _AE_BAD_PARAMETER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AE_BAD_PARAMETER@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
LBB0_3:
	cbz	x21, LBB0_11
; %bb.4:
	ldrb	w8, [x21]
	cbnz	w8, LBB0_6
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w8, [x21, #1]!
	cbz	w8, LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	sxtb	w0, w8
	bl	_ACPI_IS_SPACE
	cbnz	x0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w8, [x21]
	cmp	w8, #9
	b.eq	LBB0_5
LBB0_8:
	cmp	w20, #128
	b.ne	LBB0_12
; %bb.9:
	cmp	w8, #48
	b.ne	LBB0_14
; %bb.10:
	ldrsb	w0, [x21, #1]
	bl	_ACPI_TOLOWER
	mov	w8, #10
	add	x9, x21, #2
	mov	w10, #1
	mov	w11, #16
	cmp	w0, #120
	csel	w22, w8, w11, ne
	csel	x21, x21, x9, ne
	csel	w26, wzr, w10, ne
	b	LBB0_13
LBB0_11:
	mov	x22, x20
	b	LBB0_20
LBB0_12:
	mov	w26, #0
	mov	x22, x20
LBB0_13:
	ldrb	w8, [x21]
	cbnz	w8, LBB0_15
	b	LBB0_17
LBB0_14:
	mov	w26, #0
	mov	w22, #10
	cbz	w8, LBB0_17
LBB0_15:
	sxtb	w0, w8
	bl	_ACPI_IS_SPACE
	cbnz	x0, LBB0_17
; %bb.16:
	ldrb	w8, [x21]
	cmp	w8, #9
	b.ne	LBB0_21
LBB0_17:
	cmp	w20, #128
	b.eq	LBB0_20
LBB0_18:
	mov	w23, #0
LBB0_19:
	mov	x0, x23
	bl	_ACPI_FORMAT_UINT64
	bl	_ACPI_DEBUG_PRINT
	str	w23, [x19]
Lloh9:
	adrp	x8, _AE_OK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AE_OK@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
LBB0_20:
Lloh12:
	adrp	x8, _AE_BAD_DECIMAL_CONSTANT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AE_BAD_DECIMAL_CONSTANT@GOTPAGEOFF]
Lloh14:
	adrp	x9, _AE_BAD_HEX_CONSTANT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _AE_BAD_HEX_CONSTANT@GOTPAGEOFF]
	cmp	w22, #10
	csel	x8, x8, x9, eq
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
	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
LBB0_21:
Lloh16:
	adrp	x9, _ACPI_UINT32_MAX@GOTPAGE
Lloh17:
	ldr	x9, [x9, _ACPI_UINT32_MAX@GOTPAGEOFF]
Lloh18:
	adrp	x10, _ACPI_UINT64_MAX@GOTPAGE
Lloh19:
	ldr	x10, [x10, _ACPI_UINT64_MAX@GOTPAGEOFF]
	cmp	w25, #4
	csel	x9, x9, x10, eq
	cbz	w8, LBB0_18
; %bb.22:
	mov	w28, #0
	mov	w23, #0
	ldr	w27, [x9]
LBB0_23:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_24 Depth 2
	add	x21, x21, #1
LBB0_24:                                ;   Parent Loop BB0_23 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sxtb	w0, w8
	bl	_ACPI_IS_DIGIT
	cbz	x0, LBB0_26
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=2
	ldursb	w8, [x21, #-1]
	sub	w24, w8, #48
	b	LBB0_29
LBB0_26:                                ;   in Loop: Header=BB0_24 Depth=2
	cmp	w22, #10
	b.eq	LBB0_36
; %bb.27:                               ;   in Loop: Header=BB0_24 Depth=2
	ldursb	w0, [x21, #-1]
	bl	_ACPI_TOUPPER
	mov	x24, x0
	sxtb	w0, w24
	bl	_ACPI_IS_XDIGIT
	cbz	x0, LBB0_36
; %bb.28:                               ;   in Loop: Header=BB0_24 Depth=2
	sub	w24, w24, #55
LBB0_29:                                ;   in Loop: Header=BB0_24 Depth=2
	orr	w8, w28, w24
	cmp	w8, #0
	cset	w8, ne
	orr	w8, w26, w8
	tbnz	w8, #0, LBB0_31
; %bb.30:                               ;   in Loop: Header=BB0_24 Depth=2
	mov	w28, #0
	ldrb	w8, [x21], #1
	cbnz	w8, LBB0_24
	b	LBB0_19
LBB0_31:                                ;   in Loop: Header=BB0_23 Depth=1
	cbz	w26, LBB0_34
; %bb.32:                               ;   in Loop: Header=BB0_23 Depth=1
	cmp	w28, #7
	ccmp	w25, #4, #0, gt
	cset	w8, eq
	cmp	w28, #15
	b.gt	LBB0_20
; %bb.33:                               ;   in Loop: Header=BB0_23 Depth=1
	tbnz	w8, #0, LBB0_20
LBB0_34:                                ;   in Loop: Header=BB0_23 Depth=1
	sub	w0, w27, w24
	add	x2, sp, #12
	mov	x1, x22
	mov	x3, #0
	bl	_acpi_ut_short_divide
	ldr	w8, [sp, #12]
	cmp	w23, w8
	b.gt	LBB0_36
; %bb.35:                               ;   in Loop: Header=BB0_23 Depth=1
	add	w28, w28, #1
	madd	w23, w23, w22, w24
	ldrb	w8, [x21]
	cbnz	w8, LBB0_23
	b	LBB0_19
LBB0_36:
	cmp	w20, #128
	b.ne	LBB0_19
	b	LBB0_20
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_acpi_gbl_integer_byte_width,4,2 ; @acpi_gbl_integer_byte_width
	.comm	_ut_stroul64,4,2                ; @ut_stroul64
	.comm	_AE_BAD_PARAMETER,4,2           ; @AE_BAD_PARAMETER
	.comm	_ACPI_UINT32_MAX,4,2            ; @ACPI_UINT32_MAX
	.comm	_ACPI_UINT64_MAX,4,2            ; @ACPI_UINT64_MAX
	.comm	_ACPI_DB_EXEC,4,2               ; @ACPI_DB_EXEC
	.comm	_AE_OK,4,2                      ; @AE_OK
	.comm	_AE_BAD_DECIMAL_CONSTANT,4,2    ; @AE_BAD_DECIMAL_CONSTANT
	.comm	_AE_BAD_HEX_CONSTANT,4,2        ; @AE_BAD_HEX_CONSTANT
.subsections_via_symbols
