	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RIOUnUse                       ## -- Begin function RIOUnUse
	.p2align	4, 0x90
_RIOUnUse:                              ## @RIOUnUse
	.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	%rdi, %rbx
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_rio_spin_lock_irqsave
	movq	_RIO_DEBUG_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_rio_dprintk
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	decq	%rax
	movq	%rax, (%rbx)
	movq	_NOT_INUSE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
LBB0_2:
	movq	16(%rbx), %rax
	movq	(%rax), %rsi
	movl	$1, %edi
	callq	_writew
LBB0_3:
	movq	%r14, %rdi
	callq	_rio_spin_unlock_irqrestore
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RIO_DEBUG_CMD,4,2              ## @RIO_DEBUG_CMD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Decrement in use count for port\n"

	.comm	_NOT_INUSE,8,3                  ## @NOT_INUSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RIOUnUse                       ; -- Begin function RIOUnUse
	.p2align	2
_RIOUnUse:                              ; @RIOUnUse
	.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
	mov	x20, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_rio_spin_lock_irqsave
Lloh0:
	adrp	x8, _RIO_DEBUG_CMD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RIO_DEBUG_CMD@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_rio_dprintk
	ldr	x8, [x20]
	cbz	x8, LBB0_2
; %bb.1:
	sub	x8, x8, #1
	str	x8, [x20]
Lloh5:
	adrp	x9, _NOT_INUSE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _NOT_INUSE@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
LBB0_2:
	ldr	x8, [x20, #16]
	ldr	x1, [x8]
	mov	w0, #1
	bl	_writew
LBB0_3:
	mov	x0, x19
	bl	_rio_spin_unlock_irqrestore
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_RIO_DEBUG_CMD,4,2              ; @RIO_DEBUG_CMD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Decrement in use count for port\n"

	.comm	_NOT_INUSE,8,3                  ; @NOT_INUSE
.subsections_via_symbols
