	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hsi_release_port               ## -- Begin function hsi_release_port
	.p2align	4, 0x90
_hsi_release_port:                      ## @hsi_release_port
	.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
	movq	%rdi, %r15
	callq	_hsi_get_port
	movq	%rax, %rbx
	leaq	8(%rax), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%r15, %rdi
	callq	*24(%rbx)
	cmpq	$0, (%r15)
	movq	(%rbx), %rdi
	je	LBB0_2
## %bb.1:
	decq	%rdi
	movq	%rdi, (%rbx)
LBB0_2:
	shrq	$63, %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_BUG_ON
	movq	$0, (%r15)
	cmpq	$0, (%rbx)
	jne	LBB0_4
## %bb.3:
	movq	$0, 16(%rbx)
LBB0_4:
	movl	12(%rbx), %edi
	callq	_to_hsi_controller
	movl	(%rax), %edi
	callq	_module_put
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hsi_release_port               ; -- Begin function hsi_release_port
	.p2align	2
_hsi_release_port:                      ; @hsi_release_port
	.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
	mov	x21, x0
	bl	_hsi_get_port
	mov	x20, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x20, #24]
	mov	x0, x21
	blr	x8
	ldr	x9, [x21]
	ldr	x8, [x20]
	cbz	x9, LBB0_2
; %bb.1:
	sub	x8, x8, #1
	str	x8, [x20]
LBB0_2:
	lsr	x0, x8, #63
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_BUG_ON
	str	xzr, [x21]
	ldr	x8, [x20]
	cbnz	x8, LBB0_4
; %bb.3:
	str	xzr, [x20, #16]
LBB0_4:
	ldr	w0, [x20, #12]
	bl	_to_hsi_controller
	ldr	w0, [x0]
	bl	_module_put
	mov	x0, x19
	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
	b	_mutex_unlock
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
