	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_ex_convert_to_ascii
_acpi_ex_convert_to_ascii:              ## @acpi_ex_convert_to_ascii
	.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	%rcx, %r13
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, %r14d
	movl	%edi, %r12d
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_ACPI_FUNCTION_ENTRY
	cmpl	$16, %r14d
	je	LBB0_17
## %bb.1:
	cmpl	$10, %r14d
	jne	LBB0_23
## %bb.2:
	cmpq	$4, %r13
	jne	LBB0_3
## %bb.4:
	movq	_ACPI_MAX32_DECIMAL_DIGITS@GOTPCREL(%rip), %rax
	cmpq	$1, %r13
	je	LBB0_6
	jmp	LBB0_7
LBB0_17:
	movq	%r13, %rdi
	callq	_ACPI_MUL_2
	testq	%rax, %rax
	je	LBB0_21
## %bb.18:
	movq	%rax, %rcx
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %r14
	decq	%r14
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_ACPI_MUL_4
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_acpi_ut_hex_to_ascii_char
	cltq
	movq	%rax, (%rbx)
	addq	$8, %rbx
	addq	$-1, %r14
	jb	LBB0_19
LBB0_20:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	jne	LBB0_22
	jmp	LBB0_21
LBB0_3:
	movq	_ACPI_MAX64_DECIMAL_DIGITS@GOTPCREL(%rip), %rax
	cmpq	$1, %r13
	jne	LBB0_7
LBB0_6:
	movq	_ACPI_MAX8_DECIMAL_DIGITS@GOTPCREL(%rip), %rax
LBB0_7:
	movq	(%rax), %r14
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	$0, -80(%rbp)
	testq	%r14, %r14
	je	LBB0_21
## %bb.8:
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	-44(%rbp), %r13
	leaq	-80(%rbp), %rbx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=1
	cmpq	$0, -72(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_15
LBB0_16:                                ##   in Loop: Header=BB0_9 Depth=1
	decq	%r14
	je	LBB0_20
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movl	%r12d, -44(%rbp)
	movl	%r12d, %edi
	movl	$10, %esi
	movq	%r13, %rdx
	movq	%rbx, %rcx
	callq	_acpi_ut_short_divide
	cmpq	$1, %r14
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	$1, %r15d
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-44(%rbp), %edi
	movl	$10, %esi
	movq	%r13, %rdx
	movq	%rbx, %rcx
	callq	_acpi_ut_short_divide
	incq	%r15
	cmpq	%r15, %r14
	jne	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-80(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_FALSE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	_ACPI_ASCII_ZERO@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, (%rcx,%rdx,8)
	incq	%rdx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_16
LBB0_21:
	movq	_ACPI_ASCII_ZERO@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movl	$1, %ebx
LBB0_22:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	$0, (%rax,%rbx,8)
LBB0_23:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_MAX8_DECIMAL_DIGITS,8,3   ## @ACPI_MAX8_DECIMAL_DIGITS
	.comm	_ACPI_MAX32_DECIMAL_DIGITS,8,3  ## @ACPI_MAX32_DECIMAL_DIGITS
	.comm	_ACPI_MAX64_DECIMAL_DIGITS,8,3  ## @ACPI_MAX64_DECIMAL_DIGITS
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_ACPI_ASCII_ZERO,8,3            ## @ACPI_ASCII_ZERO
	.no_dead_strip	_acpi_ex_convert_to_ascii
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_ex_convert_to_ascii
_acpi_ex_convert_to_ascii:              ; @acpi_ex_convert_to_ascii
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x21, x3
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	bl	_ACPI_FUNCTION_ENTRY
	cmp	w22, #16
	b.eq	LBB0_10
; %bb.1:
	cmp	w22, #10
	b.ne	LBB0_16
; %bb.2:
Lloh0:
	adrp	x8, _ACPI_MAX8_DECIMAL_DIGITS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACPI_MAX8_DECIMAL_DIGITS@GOTPAGEOFF]
Lloh2:
	adrp	x9, _ACPI_MAX32_DECIMAL_DIGITS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ACPI_MAX32_DECIMAL_DIGITS@GOTPAGEOFF]
Lloh4:
	adrp	x10, _ACPI_MAX64_DECIMAL_DIGITS@GOTPAGE
Lloh5:
	ldr	x10, [x10, _ACPI_MAX64_DECIMAL_DIGITS@GOTPAGEOFF]
	cmp	x21, #4
	csel	x9, x9, x10, eq
	cmp	x21, #1
	csel	x8, x8, x9, eq
	ldr	x22, [x8]
Lloh6:
	adrp	x8, _TRUE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh8:
	ldr	x23, [x8]
	str	xzr, [sp]
	cbz	x22, LBB0_14
; %bb.3:
	mov	x21, #0
Lloh9:
	adrp	x24, _FALSE@GOTPAGE
Lloh10:
	ldr	x24, [x24, _FALSE@GOTPAGEOFF]
Lloh11:
	adrp	x25, _ACPI_ASCII_ZERO@GOTPAGE
Lloh12:
	ldr	x25, [x25, _ACPI_ASCII_ZERO@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [sp]
	ldr	x9, [x24]
	cmp	x8, #0
	csel	x23, x23, x9, eq
	cbz	x23, LBB0_9
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	subs	x22, x22, #1
	b.eq	LBB0_13
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	str	w20, [sp, #12]
	add	x2, sp, #12
	mov	x3, sp
	mov	x0, x20
	mov	w1, #10
	bl	_acpi_ut_short_divide
	cmp	x22, #1
	b.eq	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w26, #1
LBB0_8:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [sp, #12]
	add	x2, sp, #12
	mov	x3, sp
	mov	w1, #10
	bl	_acpi_ut_short_divide
	add	x26, x26, #1
	cmp	x22, x26
	b.ne	LBB0_8
	b	LBB0_4
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x25]
	add	x8, x9, x8
	str	x8, [x19, x21, lsl #3]
	add	x21, x21, #1
	b	LBB0_5
LBB0_10:
	mov	x0, x21
	bl	_ACPI_MUL_2
	cbz	x0, LBB0_14
; %bb.11:
	mov	x21, x0
	sub	x22, x0, #1
	mov	x23, x19
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_ACPI_MUL_4
	mov	x1, x0
	mov	x0, x20
	bl	_acpi_ut_hex_to_ascii_char
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	str	x8, [x23], #8
	sub	x22, x22, #1
	cmn	x22, #1
	b.ne	LBB0_12
LBB0_13:
	cbnz	x21, LBB0_15
LBB0_14:
Lloh13:
	adrp	x8, _ACPI_ASCII_ZERO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ACPI_ASCII_ZERO@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	str	x8, [x19]
	mov	w21, #1
LBB0_15:
	str	xzr, [x19, x21, lsl #3]
	b	LBB0_17
LBB0_16:
	mov	x21, #0
LBB0_17:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_MAX8_DECIMAL_DIGITS,8,3   ; @ACPI_MAX8_DECIMAL_DIGITS
	.comm	_ACPI_MAX32_DECIMAL_DIGITS,8,3  ; @ACPI_MAX32_DECIMAL_DIGITS
	.comm	_ACPI_MAX64_DECIMAL_DIGITS,8,3  ; @ACPI_MAX64_DECIMAL_DIGITS
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_ACPI_ASCII_ZERO,8,3            ; @ACPI_ASCII_ZERO
	.no_dead_strip	_acpi_ex_convert_to_ascii
.subsections_via_symbols
