	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_bios_mode
_set_bios_mode:                         ## @set_bios_mode
	.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	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	leaq	-40(%rbp), %r15
	movq	%r15, %rdi
	callq	_initregs
	movl	%ebx, -40(%rbp)
	xorl	%r14d, %r14d
	movl	$16, %edi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_intcall
	movl	$15, -36(%rbp)
	leaq	-56(%rbp), %rdx
	movl	$16, %edi
	movq	%r15, %rsi
	callq	_intcall
	movq	_do_restore@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movl	-56(%rbp), %eax
	andl	$127, %eax
	cmpl	%ebx, %eax
	je	LBB0_3
## %bb.1:
	movq	_boot_params@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	$-1, %r14d
	cmpl	%ecx, %eax
	je	LBB0_3
## %bb.2:
	movl	%ecx, -32(%rbp)
	leaq	-40(%rbp), %rsi
	movl	$16, %edi
	xorl	%edx, %edx
	callq	_intcall
LBB0_3:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_do_restore,4,2                 ## @do_restore
	.comm	_boot_params,4,2                ## @boot_params
	.no_dead_strip	_set_bios_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_bios_mode
_set_bios_mode:                         ; @set_bios_mode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
	add	x0, sp, #16
	bl	_initregs
	str	w19, [sp, #16]
	add	x1, sp, #16
	mov	w0, #16
	mov	x2, #0
	bl	_intcall
	mov	w8, #15
	str	w8, [sp, #20]
	add	x1, sp, #16
	mov	x2, sp
	mov	w0, #16
	bl	_intcall
Lloh0:
	adrp	x8, _do_restore@GOTPAGE
Lloh1:
	ldr	x8, [x8, _do_restore@GOTPAGEOFF]
	mov	w9, #1
Lloh2:
	str	w9, [x8]
	ldr	w8, [sp]
	and	w8, w8, #0x7f
	cmp	w8, w19
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_5
LBB0_2:
Lloh3:
	adrp	x9, _boot_params@GOTPAGE
Lloh4:
	ldr	x9, [x9, _boot_params@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_4
; %bb.3:
	str	w9, [sp, #24]
	add	x1, sp, #16
	mov	w0, #16
	mov	x2, #0
	bl	_intcall
LBB0_4:
	mov	w0, #-1
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_do_restore,4,2                 ; @do_restore
	.comm	_boot_params,4,2                ; @boot_params
	.no_dead_strip	_set_bios_mode
.subsections_via_symbols
