	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bi_getboothowto
_bi_getboothowto:                       ## @bi_getboothowto
	.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	%r12
	pushq	%rbx
	subq	$64, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	callq	_boot_parse_cmdline
	movl	%eax, %r14d
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_boot_env_to_howto
	movl	%eax, %ebx
	orl	%r14d, %ebx
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdi
	callq	_strcmp
	movl	$0, %r15d
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	_RB_SERIAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_4:
	orl	%ebx, %r15d
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	_RB_MUTE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_6:
	orl	%r12d, %r15d
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_17
## %bb.7:
	leaq	L_.str.4(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_17
## %bb.8:
	leaq	L_.str.5(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	jne	LBB0_17
## %bb.9:
	leaq	L_.str.6(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%rax, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_strtol
	movl	%eax, %r14d
	jmp	LBB0_12
LBB0_1:
	movl	%ebx, %r15d
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_19
## %bb.18:
	movl	%r15d, %eax
	addq	$64, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	$-1, %r14d
LBB0_12:
	leaq	L_.str.7(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:
	leaq	L_.str.8(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_17
LBB0_14:
	movq	%rax, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_strtol
	cmpl	$-1, %r14d
	je	LBB0_17
## %bb.15:
	cmpl	$-1, %eax
	je	LBB0_17
## %bb.16:
	leaq	L_.str.9(%rip), %rdx
	leaq	-96(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$50, %esi
	movl	%eax, %ecx
	movl	%r14d, %r8d
	callq	_snprintf
	movq	_EV_VOLATILE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_env_setenv
	jmp	LBB0_17
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"console"

L_.str.1:                               ## @.str.1
	.asciz	"comconsole"

	.comm	_RB_SERIAL,4,2                  ## @RB_SERIAL
L_.str.2:                               ## @.str.2
	.asciz	"nullconsole"

	.comm	_RB_MUTE,4,2                    ## @RB_MUTE
L_.str.3:                               ## @.str.3
	.asciz	"efi"

L_.str.4:                               ## @.str.4
	.asciz	"efi_8250_uid"

L_.str.5:                               ## @.str.5
	.asciz	"hw.uart.console"

L_.str.6:                               ## @.str.6
	.asciz	"efi_com_speed"

L_.str.7:                               ## @.str.7
	.asciz	"efi_com_port"

L_.str.8:                               ## @.str.8
	.asciz	"comconsole_port"

L_.str.9:                               ## @.str.9
	.asciz	"io:%d,br:%d"

	.comm	_EV_VOLATILE,4,2                ## @EV_VOLATILE
	.no_dead_strip	_bi_getboothowto
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bi_getboothowto
_bi_getboothowto:                       ; @bi_getboothowto
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_boot_parse_cmdline
	mov	x19, x0
	bl	_boot_env_to_howto
	orr	w19, w0, w19
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
Lloh4:
	adrp	x8, _RB_SERIAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _RB_SERIAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, w8, wzr, eq
	orr	w19, w8, w19
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbnz	x0, LBB0_3
; %bb.2:
Lloh9:
	adrp	x8, _RB_MUTE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RB_MUTE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	orr	w19, w8, w19
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"console"

l_.str.1:                               ; @.str.1
	.asciz	"comconsole"

	.comm	_RB_SERIAL,4,2                  ; @RB_SERIAL
l_.str.2:                               ; @.str.2
	.asciz	"nullconsole"

	.comm	_RB_MUTE,4,2                    ; @RB_MUTE
	.comm	_EV_VOLATILE,4,2                ; @EV_VOLATILE
	.no_dead_strip	_bi_getboothowto
.subsections_via_symbols
