	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function comc_probe
_comc_probe:                            ## @comc_probe
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_comc_curspeed@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	testl	%edi, %edi
	jne	LBB0_15
## %bb.1:
	movq	_COMSPEED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_comconsole@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_5
LBB0_4:
	xorl	%eax, %eax
	callq	_comc_getspeed
	movl	%eax, (%r15)
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	%rax, %rdi
	callq	_comc_parseint
	testl	%eax, %eax
	jle	LBB0_8
## %bb.7:
	movl	%eax, (%r15)
LBB0_8:
	movl	(%r15), %edx
	leaq	L_.str.3(%rip), %rsi
	leaq	-64(%rbp), %r14
	movq	%r14, %rdi
	callq	_sprintf
	leaq	L_.str.2(%rip), %rbx
	movq	%rbx, %rdi
	callq	_unsetenv
	movq	_EV_VOLATILE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_comc_speed_set@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_env_nounset@GOTPCREL(%rip), %r13
	movl	(%r13), %r8d
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_env_setenv
	leaq	L_.str.4(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	%rax, %rdi
	callq	_comc_parseint
	testl	%eax, %eax
	jle	LBB0_11
## %bb.10:
	movq	_comc_port@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_11:
	movq	_comc_port@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rsi
	leaq	-64(%rbp), %r14
	movq	%r14, %rdi
	callq	_sprintf
	leaq	L_.str.4(%rip), %rbx
	movq	%rbx, %rdi
	callq	_unsetenv
	movl	(%r12), %esi
	movq	_comc_port_set@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r13), %r8d
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_env_setenv
	leaq	L_.str.5(%rip), %rdi
	callq	_getenv
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	movq	%rbx, %rdi
	callq	_comc_parse_pcidev
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	%rax, %rdi
	callq	_comc_pcidev_handle
LBB0_14:
	leaq	L_.str.5(%rip), %r14
	movq	%r14, %rdi
	callq	_unsetenv
	movl	(%r12), %esi
	movq	_comc_pcidev_set@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r13), %r8d
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_env_setenv
	movl	(%r15), %edi
LBB0_15:
	movq	_comc_port@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_comc_setup
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_comc_curspeed,4,2              ## @comc_curspeed
	.comm	_COMSPEED,4,2                   ## @COMSPEED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"console"

	.comm	_comconsole,4,2                 ## @comconsole
L_.str.1:                               ## @.str.1
	.asciz	"boot_multicons"

L_.str.2:                               ## @.str.2
	.asciz	"comconsole_speed"

L_.str.3:                               ## @.str.3
	.asciz	"%d"

	.comm	_EV_VOLATILE,4,2                ## @EV_VOLATILE
	.comm	_comc_speed_set,4,2             ## @comc_speed_set
	.comm	_env_nounset,4,2                ## @env_nounset
L_.str.4:                               ## @.str.4
	.asciz	"comconsole_port"

	.comm	_comc_port,4,2                  ## @comc_port
	.comm	_comc_port_set,4,2              ## @comc_port_set
L_.str.5:                               ## @.str.5
	.asciz	"comconsole_pcidev"

	.comm	_comc_pcidev_set,4,2            ## @comc_pcidev_set
	.no_dead_strip	_comc_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function comc_probe
_comc_probe:                            ; @comc_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x22, _comc_curspeed@GOTPAGE
Lloh4:
	ldr	x22, [x22, _comc_curspeed@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh5:
	adrp	x21, _comc_port@GOTPAGE
Lloh6:
	ldr	x21, [x21, _comc_port@GOTPAGEOFF]
	cbnz	w0, LBB0_15
; %bb.1:
Lloh7:
	adrp	x8, _COMSPEED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _COMSPEED@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x22]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_3
; %bb.2:
Lloh12:
	adrp	x8, _comconsole@GOTPAGE
Lloh13:
	ldr	x8, [x8, _comconsole@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_strcmp
	cbz	x0, LBB0_4
LBB0_3:
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_5
LBB0_4:
	bl	_comc_getspeed
	str	w0, [x22]
LBB0_5:
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_8
; %bb.6:
	bl	_comc_parseint
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.7:
	str	w0, [x22]
LBB0_8:
	ldr	w2, [x22]
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x0, sp, #8
	bl	_sprintf
Lloh21:
	adrp	x19, l_.str.2@PAGE
Lloh22:
	add	x19, x19, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_unsetenv
Lloh23:
	adrp	x23, _EV_VOLATILE@GOTPAGE
Lloh24:
	ldr	x23, [x23, _EV_VOLATILE@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh25:
	adrp	x8, _comc_speed_set@GOTPAGE
Lloh26:
	ldr	x8, [x8, _comc_speed_set@GOTPAGEOFF]
Lloh27:
	ldr	w3, [x8]
Lloh28:
	adrp	x24, _env_nounset@GOTPAGE
Lloh29:
	ldr	x24, [x24, _env_nounset@GOTPAGEOFF]
	ldr	w4, [x24]
	add	x2, sp, #8
	mov	x0, x19
	bl	_env_setenv
Lloh30:
	adrp	x0, l_.str.4@PAGE
Lloh31:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_11
; %bb.9:
	bl	_comc_parseint
	cmp	w0, #1
	b.lt	LBB0_11
; %bb.10:
	str	w0, [x21]
LBB0_11:
	ldr	w2, [x21]
Lloh32:
	adrp	x1, l_.str.3@PAGE
Lloh33:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x0, sp, #8
	bl	_sprintf
Lloh34:
	adrp	x19, l_.str.4@PAGE
Lloh35:
	add	x19, x19, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_unsetenv
	ldr	w1, [x23]
Lloh36:
	adrp	x8, _comc_port_set@GOTPAGE
Lloh37:
	ldr	x8, [x8, _comc_port_set@GOTPAGEOFF]
Lloh38:
	ldr	w3, [x8]
	ldr	w4, [x24]
	add	x2, sp, #8
	mov	x0, x19
	bl	_env_setenv
Lloh39:
	adrp	x0, l_.str.5@PAGE
Lloh40:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_getenv
	mov	x19, x0
	cbz	x0, LBB0_14
; %bb.12:
	mov	x0, x19
	bl	_comc_parse_pcidev
	cbz	x0, LBB0_14
; %bb.13:
	bl	_comc_pcidev_handle
LBB0_14:
Lloh41:
	adrp	x20, l_.str.5@PAGE
Lloh42:
	add	x20, x20, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_unsetenv
	ldr	w1, [x23]
Lloh43:
	adrp	x8, _comc_pcidev_set@GOTPAGE
Lloh44:
	ldr	x8, [x8, _comc_pcidev_set@GOTPAGEOFF]
Lloh45:
	ldr	w3, [x8]
	ldr	w4, [x24]
	mov	x0, x20
	mov	x2, x19
	bl	_env_setenv
	ldr	w0, [x22]
LBB0_15:
	ldr	w1, [x21]
	bl	_comc_setup
	ldr	x8, [sp, #24]
Lloh46:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh47:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh48:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_comc_curspeed,4,2              ; @comc_curspeed
	.comm	_COMSPEED,4,2                   ; @COMSPEED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"console"

	.comm	_comconsole,4,2                 ; @comconsole
l_.str.1:                               ; @.str.1
	.asciz	"boot_multicons"

l_.str.2:                               ; @.str.2
	.asciz	"comconsole_speed"

l_.str.3:                               ; @.str.3
	.asciz	"%d"

	.comm	_EV_VOLATILE,4,2                ; @EV_VOLATILE
	.comm	_comc_speed_set,4,2             ; @comc_speed_set
	.comm	_env_nounset,4,2                ; @env_nounset
l_.str.4:                               ; @.str.4
	.asciz	"comconsole_port"

	.comm	_comc_port,4,2                  ; @comc_port
	.comm	_comc_port_set,4,2              ; @comc_port_set
l_.str.5:                               ; @.str.5
	.asciz	"comconsole_pcidev"

	.comm	_comc_pcidev_set,4,2            ; @comc_pcidev_set
	.no_dead_strip	_comc_probe
.subsections_via_symbols
