	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DetectApmBios                  ## -- Begin function DetectApmBios
	.p2align	4, 0x90
_DetectApmBios:                         ## @DetectApmBios
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %r15d
	xorl	%eax, %eax
	callq	_FindApmBios
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_TAG_HW_RESOURCE_LIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_FrLdrHeapAlloc
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_memset
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbx)
	movq	$0, 16(%rbx)
	movq	_AdapterClass@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MultiFunctionAdapter@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-28(%rbp), %rax
	leaq	L_.str(%rip), %r10
	movl	%r15d, %edi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movl	$-1, %r9d
	pushq	%rax
	pushq	$0
	pushq	%rbx
	pushq	%r10
	callq	_FldrCreateComponentKey
	addq	$32, %rsp
	incl	(%r14)
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TAG_HW_RESOURCE_LIST,4,2       ## @TAG_HW_RESOURCE_LIST
	.comm	_AdapterClass,4,2               ## @AdapterClass
	.comm	_MultiFunctionAdapter,4,2       ## @MultiFunctionAdapter
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"APM"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DetectApmBios                  ; -- Begin function DetectApmBios
	.p2align	2
_DetectApmBios:                         ; @DetectApmBios
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_FindApmBios
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _TAG_HW_RESOURCE_LIST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TAG_HW_RESOURCE_LIST@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #0
	bl	_FrLdrHeapAlloc
	mov	x21, x0
	mov	w1, #0
	mov	w2, #0
	bl	_memset
	stp	xzr, xzr, [x21, #8]
	str	xzr, [x21]
Lloh3:
	adrp	x8, _AdapterClass@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AdapterClass@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _MultiFunctionAdapter@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MultiFunctionAdapter@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x8, sp, #28
	str	x8, [sp, #8]
	str	wzr, [sp]
Lloh9:
	adrp	x6, l_.str@PAGE
Lloh10:
	add	x6, x6, l_.str@PAGEOFF
	mov	x0, x20
	mov	w3, #0
	mov	w4, #0
	mov	w5, #-1
	mov	x7, x21
	bl	_FldrCreateComponentKey
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
LBB0_2:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TAG_HW_RESOURCE_LIST,4,2       ; @TAG_HW_RESOURCE_LIST
	.comm	_AdapterClass,4,2               ; @AdapterClass
	.comm	_MultiFunctionAdapter,4,2       ; @MultiFunctionAdapter
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"APM"

.subsections_via_symbols
