	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_query_apm_bios                 ## -- Begin function query_apm_bios
	.p2align	4, 0x90
_query_apm_bios:                        ## @query_apm_bios
	.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
	subq	$104, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	-120(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_initregs
	movl	$83, -120(%rbp)
	leaq	-72(%rbp), %rdx
	movl	$21, %edi
	movq	%rbx, %rsi
	callq	_intcall
	movq	_X86_EFLAGS_CF@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movl	$-1, %ebx
	testl	%eax, -68(%rbp)
	jne	LBB0_8
## %bb.1:
	cmpl	$20557, -64(%rbp)               ## imm = 0x504D
	jne	LBB0_8
## %bb.2:
	testb	$2, -60(%rbp)
	je	LBB0_8
## %bb.3:
	movl	$4, -104(%rbp)
	leaq	-120(%rbp), %r14
	movl	$21, %edi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_intcall
	movl	$3, -104(%rbp)
	leaq	-72(%rbp), %rdx
	movl	$21, %edi
	movq	%r14, %rsi
	callq	_intcall
	movl	-60(%rbp), %eax
	movl	-48(%rbp), %ecx
	movq	_boot_params@GOTPCREL(%rip), %r14
	movl	%ecx, 32(%r14)
	movl	-28(%rbp), %ecx
	movl	%ecx, 28(%r14)
	movl	%eax, (%r14)
	movups	-44(%rbp), %xmm0
	movups	%xmm0, 12(%r14)
	movl	(%r15), %eax
	testl	%eax, -68(%rbp)
	jne	LBB0_8
## %bb.4:
	movl	$0, -104(%rbp)
	leaq	-120(%rbp), %rsi
	leaq	-72(%rbp), %rdx
	movl	$21, %edi
	callq	_intcall
	movl	(%r15), %eax
	testl	%eax, -52(%rbp)
	jne	LBB0_6
## %bb.5:
	cmpl	$20557, -64(%rbp)               ## imm = 0x504D
	jne	LBB0_6
## %bb.7:
	movl	-60(%rbp), %eax
	movl	-48(%rbp), %ecx
	movl	%ecx, 8(%r14)
	movl	%eax, 4(%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_6:
	movl	$4, -104(%rbp)
	leaq	-120(%rbp), %rsi
	movl	$21, %edi
	xorl	%edx, %edx
	callq	_intcall
LBB0_8:
	movl	%ebx, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_X86_EFLAGS_CF,4,2              ## @X86_EFLAGS_CF
	.comm	_boot_params,36,2               ## @boot_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_query_apm_bios                 ; -- Begin function query_apm_bios
	.p2align	2
_query_apm_bios:                        ; @query_apm_bios
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	add	x0, sp, #48
	bl	_initregs
	mov	w8, #83
	str	w8, [sp, #48]
	add	x1, sp, #48
	mov	x2, sp
	mov	w0, #21
	bl	_intcall
	ldr	w8, [sp, #4]
Lloh0:
	adrp	x19, _X86_EFLAGS_CF@GOTPAGE
Lloh1:
	ldr	x19, [x19, _X86_EFLAGS_CF@GOTPAGEOFF]
	ldr	w9, [x19]
	tst	w9, w8
	b.ne	LBB0_8
; %bb.1:
	ldr	w8, [sp, #8]
	mov	w9, #20557
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.2:
	ldrb	w8, [sp, #12]
	tbz	w8, #1, LBB0_8
; %bb.3:
	mov	w8, #4
	str	w8, [sp, #64]
	add	x1, sp, #48
	mov	w0, #21
	mov	x2, #0
	bl	_intcall
	mov	w8, #3
	str	w8, [sp, #64]
	add	x1, sp, #48
	mov	x2, sp
	mov	w0, #21
	bl	_intcall
	ldr	w8, [sp, #24]
Lloh2:
	adrp	x20, _boot_params@GOTPAGE
Lloh3:
	ldr	x20, [x20, _boot_params@GOTPAGEOFF]
	ldr	w9, [sp, #44]
	stp	w9, w8, [x20, #28]
	ldr	w8, [sp, #12]
	ldr	w9, [sp, #4]
	str	w8, [x20]
	ldur	q0, [sp, #28]
	stur	q0, [x20, #12]
	ldr	w8, [x19]
	tst	w8, w9
	b.ne	LBB0_8
; %bb.4:
	str	wzr, [sp, #64]
	add	x1, sp, #48
	mov	x2, sp
	mov	w0, #21
	bl	_intcall
	ldr	w8, [sp, #20]
	ldr	w9, [x19]
	tst	w9, w8
	b.ne	LBB0_7
; %bb.5:
	ldr	w8, [sp, #8]
	mov	w9, #20557
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.6:
	mov	w0, #0
	ldr	w8, [sp, #24]
	ldr	w9, [sp, #12]
	stp	w9, w8, [x20, #4]
	b	LBB0_9
LBB0_7:
	mov	w8, #4
	str	w8, [sp, #64]
	add	x1, sp, #48
	mov	w0, #21
	mov	x2, #0
	bl	_intcall
LBB0_8:
	mov	w0, #-1
LBB0_9:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_X86_EFLAGS_CF,4,2              ; @X86_EFLAGS_CF
	.comm	_boot_params,36,2               ; @boot_params
.subsections_via_symbols
