	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function comc_pcidev_set
_comc_pcidev_set:                       ## @comc_pcidev_set
	.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
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	movq	%rdx, %rbx
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	%rdx, %rdi
	callq	_comc_parse_pcidev
	testq	%rax, %rax
	jle	LBB0_2
## %bb.3:
	movq	_comconsole@GOTPCREL(%rip), %rcx
	movq	_C_ACTIVEIN@GOTPCREL(%rip), %rdx
	movq	_C_ACTIVEOUT@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rdx), %esi
	testl	%esi, (%rcx)
	je	LBB0_6
## %bb.4:
	movq	_comc_locator@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	je	LBB0_6
## %bb.5:
	movq	%rax, %rdi
	callq	_comc_pcidev_handle
	movq	_CMD_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_8
LBB0_6:
	movl	(%r15), %edi
	movq	_EV_NOHOOK@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movl	%r14d, %esi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_env_setenv
	movq	_CMD_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_2:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	_CMD_ERROR@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_ERROR,4,2                  ## @CMD_ERROR
	.comm	_comconsole,4,2                 ## @comconsole
	.comm	_C_ACTIVEIN,4,2                 ## @C_ACTIVEIN
	.comm	_C_ACTIVEOUT,4,2                ## @C_ACTIVEOUT
	.comm	_comc_locator,8,3               ## @comc_locator
	.comm	_CMD_OK,4,2                     ## @CMD_OK
	.comm	_EV_NOHOOK,4,2                  ## @EV_NOHOOK
	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"Invalid pcidev"

	.no_dead_strip	_comc_pcidev_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function comc_pcidev_set
_comc_pcidev_set:                       ; @comc_pcidev_set
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	x2, LBB0_5
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x2
	bl	_comc_parse_pcidev
	cmp	x0, #0
	b.le	LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _comconsole@GOTPAGE
Lloh1:
	ldr	x8, [x8, _comconsole@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _C_ACTIVEIN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _C_ACTIVEIN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _C_ACTIVEOUT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _C_ACTIVEOUT@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh9:
	adrp	x10, _comc_locator@GOTPAGE
Lloh10:
	ldr	x10, [x10, _comc_locator@GOTPAGEOFF]
	and	w8, w9, w8
Lloh11:
	ldr	x9, [x10]
	cmp	w8, #0
	ccmp	x9, x0, #4, ne
Lloh12:
	adrp	x22, _CMD_OK@GOTPAGE
Lloh13:
	ldr	x22, [x22, _CMD_OK@GOTPAGEOFF]
	b.eq	LBB0_4
; %bb.3:
	bl	_comc_pcidev_handle
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_6
LBB0_4:
	ldr	w0, [x21]
Lloh14:
	adrp	x8, _EV_NOHOOK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EV_NOHOOK@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	orr	w1, w8, w20
	mov	x2, x19
	mov	x3, #0
	mov	x4, #0
	bl	_env_setenv
	ldr	w0, [x22]
	b	LBB0_6
LBB0_5:
Lloh17:
	adrp	x0, l_str@PAGE
Lloh18:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
Lloh19:
	adrp	x8, _CMD_ERROR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CMD_ERROR@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_ERROR,4,2                  ; @CMD_ERROR
	.comm	_comconsole,4,2                 ; @comconsole
	.comm	_C_ACTIVEIN,4,2                 ; @C_ACTIVEIN
	.comm	_C_ACTIVEOUT,4,2                ; @C_ACTIVEOUT
	.comm	_comc_locator,8,3               ; @comc_locator
	.comm	_CMD_OK,4,2                     ; @CMD_OK
	.comm	_EV_NOHOOK,4,2                  ; @EV_NOHOOK
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"Invalid pcidev"

	.no_dead_strip	_comc_pcidev_set
.subsections_via_symbols
