	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function port_fops_release
_port_fops_release:                     ## @port_fops_release
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rsi), %rbx
	movq	_VIRTIO_CONSOLE_PORT_OPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_send_control_msg
	leaq	12(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irq
	movl	$0, (%rbx)
	movq	%rbx, %rdi
	callq	_discard_port_data
	movq	%r14, %rdi
	callq	_spin_unlock_irq
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irq
	movq	%rbx, %rdi
	callq	_reclaim_consumed_buffers
	movq	%r14, %rdi
	callq	_spin_unlock_irq
	addq	$4, %rbx
	movq	_remove_port@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_kref_put
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VIRTIO_CONSOLE_PORT_OPEN,4,2   ## @VIRTIO_CONSOLE_PORT_OPEN
	.comm	_remove_port,4,2                ## @remove_port
	.no_dead_strip	_port_fops_release
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function port_fops_release
_port_fops_release:                     ; @port_fops_release
	.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
	ldr	x19, [x1]
Lloh0:
	adrp	x8, _VIRTIO_CONSOLE_PORT_OPEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VIRTIO_CONSOLE_PORT_OPEN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_send_control_msg
	add	x20, x19, #12
	mov	x0, x20
	bl	_spin_lock_irq
	mov	x21, x19
	str	wzr, [x21], #4
	mov	x0, x19
	bl	_discard_port_data
	mov	x0, x20
	bl	_spin_unlock_irq
	add	x20, x19, #8
	mov	x0, x20
	bl	_spin_lock_irq
	mov	x0, x19
	bl	_reclaim_consumed_buffers
	mov	x0, x20
	bl	_spin_unlock_irq
Lloh3:
	adrp	x8, _remove_port@GOTPAGE
Lloh4:
	ldr	x8, [x8, _remove_port@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_kref_put
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VIRTIO_CONSOLE_PORT_OPEN,4,2   ; @VIRTIO_CONSOLE_PORT_OPEN
	.comm	_remove_port,4,2                ; @remove_port
	.no_dead_strip	_port_fops_release
.subsections_via_symbols
