	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ut_osi_implementation     ## -- Begin function acpi_ut_osi_implementation
	.p2align	4, 0x90
_acpi_ut_osi_implementation:            ## @acpi_ut_osi_implementation
	.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	%rdi, %rbx
	movq	_ut_osi_implementation@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_TRACE
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %rax
	movq	(%rax), %r12
	testq	%r12, %r12
	je	LBB0_2
## %bb.1:
	movq	(%r12), %rax
	movq	_ACPI_TYPE_STRING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
LBB0_2:
	movq	_AE_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
LBB0_3:
	movq	_ACPI_TYPE_INTEGER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_acpi_ut_create_internal_object
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	_AE_NO_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
LBB0_5:
	movq	_acpi_interfaces_supported@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	callq	_ACPI_ARRAY_LENGTH
	testq	%rax, %rax
	je	LBB0_11
## %bb.6:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	movq	(%r13), %rax
	movl	8(%rax,%rbx), %esi
	callq	_ACPI_STRCMP
	testl	%eax, %eax
	je	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	incq	%r14
	movq	(%r13), %rdi
	callq	_ACPI_ARRAY_LENGTH
	addq	$16, %rbx
	cmpq	%rax, %r14
	jb	LBB0_7
LBB0_11:
	movl	(%r12), %edi
	callq	_acpi_os_validate_interface
	movl	%eax, %edi
	callq	_ACPI_SUCCESS
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_12
	jmp	LBB0_13
LBB0_8:
	movq	(%r13), %rax
	movq	(%rax,%rbx), %rax
	movq	_acpi_gbl_osi_data@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_12
## %bb.9:
	movq	%rax, (%rcx)
LBB0_12:
	movq	_ACPI_UINT32_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_13:
	testq	%rbx, %rbx
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rdi
	cmovel	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ACPI_DEBUG_PRINT_RAW
	movq	%rbx, (%r15)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r15, (%rax)
	movq	_AE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_return_ACPI_STATUS             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ut_osi_implementation,4,2      ## @ut_osi_implementation
	.comm	_ACPI_TYPE_STRING,8,3           ## @ACPI_TYPE_STRING
	.comm	_AE_TYPE,4,2                    ## @AE_TYPE
	.comm	_ACPI_TYPE_INTEGER,4,2          ## @ACPI_TYPE_INTEGER
	.comm	_AE_NO_MEMORY,4,2               ## @AE_NO_MEMORY
	.comm	_acpi_interfaces_supported,8,3  ## @acpi_interfaces_supported
	.comm	_acpi_gbl_osi_data,8,3          ## @acpi_gbl_osi_data
	.comm	_ACPI_UINT32_MAX,8,3            ## @ACPI_UINT32_MAX
	.comm	_ACPI_DB_INFO,4,2               ## @ACPI_DB_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"not "

L_.str.2:                               ## @.str.2
	.space	1

	.comm	_AE_OK,4,2                      ## @AE_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ut_osi_implementation     ; -- Begin function acpi_ut_osi_implementation
	.p2align	2
_acpi_ut_osi_implementation:            ; @acpi_ut_osi_implementation
	.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	x19, x0
Lloh0:
	adrp	x8, _ut_osi_implementation@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ut_osi_implementation@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_TRACE
	ldr	x8, [x19, #8]
	ldr	x21, [x8]
	cbz	x21, LBB0_2
; %bb.1:
	ldr	x8, [x21]
Lloh3:
	adrp	x9, _ACPI_TYPE_STRING@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ACPI_TYPE_STRING@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _AE_TYPE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AE_TYPE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
LBB0_3:
Lloh9:
	adrp	x8, _ACPI_TYPE_INTEGER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ACPI_TYPE_INTEGER@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_acpi_ut_create_internal_object
	mov	x20, x0
	cbnz	x0, LBB0_5
; %bb.4:
Lloh12:
	adrp	x8, _AE_NO_MEMORY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AE_NO_MEMORY@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
LBB0_5:
Lloh15:
	adrp	x22, _acpi_interfaces_supported@GOTPAGE
Lloh16:
	ldr	x22, [x22, _acpi_interfaces_supported@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ACPI_ARRAY_LENGTH
	cbz	x0, LBB0_9
; %bb.6:
	mov	x23, #0
	mov	x24, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	ldr	x8, [x22]
	add	x8, x8, x23
	ldr	w1, [x8, #8]
	bl	_ACPI_STRCMP
	cbz	w0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x24, x24, #1
	ldr	x0, [x22]
	bl	_ACPI_ARRAY_LENGTH
	add	x23, x23, #16
	cmp	x24, x0
	b.lo	LBB0_7
LBB0_9:
	ldr	w0, [x21]
	bl	_acpi_os_validate_interface
	bl	_ACPI_SUCCESS
Lloh17:
	adrp	x8, _ACPI_UINT32_MAX@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ACPI_UINT32_MAX@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	cmp	x0, #0
	csel	x21, xzr, x8, eq
	b	LBB0_13
LBB0_10:
	ldr	x8, [x22]
	ldr	x8, [x8, x23]
Lloh20:
	adrp	x9, _acpi_gbl_osi_data@GOTPAGE
Lloh21:
	ldr	x9, [x9, _acpi_gbl_osi_data@GOTPAGEOFF]
	ldr	x10, [x9]
	cmp	x8, x10
	b.le	LBB0_12
; %bb.11:
	str	x8, [x9]
LBB0_12:
Lloh22:
	adrp	x8, _ACPI_UINT32_MAX@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ACPI_UINT32_MAX@GOTPAGEOFF]
Lloh24:
	ldr	x21, [x8]
LBB0_13:
Lloh25:
	adrp	x8, l_.str.2@PAGE
Lloh26:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh27:
	adrp	x9, l_.str.1@PAGE
Lloh28:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	x21, #0
	csel	w0, w9, w8, eq
	bl	_ACPI_DEBUG_PRINT_RAW
	str	x21, [x20]
	str	x20, [x19]
Lloh29:
	adrp	x8, _AE_OK@GOTPAGE
Lloh30:
	ldr	x8, [x8, _AE_OK@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	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	_return_ACPI_STATUS
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_ut_osi_implementation,4,2      ; @ut_osi_implementation
	.comm	_ACPI_TYPE_STRING,8,3           ; @ACPI_TYPE_STRING
	.comm	_AE_TYPE,4,2                    ; @AE_TYPE
	.comm	_ACPI_TYPE_INTEGER,4,2          ; @ACPI_TYPE_INTEGER
	.comm	_AE_NO_MEMORY,4,2               ; @AE_NO_MEMORY
	.comm	_acpi_interfaces_supported,8,3  ; @acpi_interfaces_supported
	.comm	_acpi_gbl_osi_data,8,3          ; @acpi_gbl_osi_data
	.comm	_ACPI_UINT32_MAX,8,3            ; @ACPI_UINT32_MAX
	.comm	_ACPI_DB_INFO,4,2               ; @ACPI_DB_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"not "

l_.str.2:                               ; @.str.2
	.space	1

	.comm	_AE_OK,4,2                      ; @AE_OK
.subsections_via_symbols
