	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_vtcon_open_port
_pci_vtcon_open_port:                   ## @pci_vtcon_open_port
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	%rdi, %rax
	movq	8(%rdi), %rdi
	cmpl	$0, (%rdi)
	je	LBB0_1
## %bb.2:
	movl	16(%rax), %eax
	movl	%eax, -8(%rbp)
	movq	_VTCON_PORT_OPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -12(%rbp)
	movl	%esi, -16(%rbp)
	leaq	-16(%rbp), %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_pci_vtcon_control_send
	jmp	LBB0_3
LBB0_1:
	movl	$1, (%rax)
LBB0_3:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VTCON_PORT_OPEN,4,2            ## @VTCON_PORT_OPEN
	.no_dead_strip	_pci_vtcon_open_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_vtcon_open_port
_pci_vtcon_open_port:                   ; @pci_vtcon_open_port
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
	mov	x8, x0
	ldr	x0, [x0, #8]
	ldr	w9, [x0]
	cbz	w9, LBB0_2
; %bb.1:
	ldr	w8, [x8, #16]
	str	w8, [sp, #8]
Lloh0:
	adrp	x8, _VTCON_PORT_OPEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VTCON_PORT_OPEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	w1, w8, [sp]
	mov	x1, sp
	mov	x2, #0
	mov	w3, #0
	bl	_pci_vtcon_control_send
	b	LBB0_3
LBB0_2:
	mov	w9, #1
	str	w9, [x8]
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VTCON_PORT_OPEN,4,2            ; @VTCON_PORT_OPEN
	.no_dead_strip	_pci_vtcon_open_port
.subsections_via_symbols
