	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unsubscribe_port
_unsubscribe_port:                      ## @unsubscribe_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	(%rdx), %rcx
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.2:
	movl	%r8d, %r13d
	movq	%rsi, %r15
	movq	%rdi, %r12
	decq	%rcx
	movq	%rcx, (%rdx)
	movq	8(%rdx), %rax
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	cmpq	$0, 16(%r15)
	jne	LBB0_5
## %bb.4:
	testq	%rcx, %rcx
	jne	LBB0_6
LBB0_5:
	movl	12(%r15), %edi
	movq	%r14, %rsi
	callq	*%rax
	movl	%eax, %ebx
LBB0_6:
	testl	%r13d, %r13d
	je	LBB0_9
## %bb.7:
	movq	(%r12), %rax
	movq	_USER_CLIENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	movl	4(%r15), %esi
	movl	8(%r15), %edi
	movq	_SNDRV_SEQ_EVENT_PORT_UNSUBSCRIBED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdx
	callq	_snd_seq_client_notify_subscription
LBB0_9:
	movl	(%r15), %edi
	callq	_module_put
	jmp	LBB0_10
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_USER_CLIENT,8,3                ## @USER_CLIENT
	.comm	_SNDRV_SEQ_EVENT_PORT_UNSUBSCRIBED,4,2 ## @SNDRV_SEQ_EVENT_PORT_UNSUBSCRIBED
	.no_dead_strip	_unsubscribe_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unsubscribe_port
_unsubscribe_port:                      ; @unsubscribe_port
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	x8, [x2]
	cbz	x8, LBB0_8
; %bb.1:
	mov	x22, x4
	mov	x20, x3
	mov	x19, x1
	mov	x23, x0
	sub	x9, x8, #1
	str	x9, [x2]
	ldr	x8, [x2, #8]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	x10, [x19, #16]
	cmp	x10, #0
	ccmp	x9, #0, #4, eq
	b.ne	LBB0_4
; %bb.3:
	ldr	w0, [x19, #12]
	mov	x1, x20
	blr	x8
	mov	x21, x0
	cbnz	w22, LBB0_5
	b	LBB0_7
LBB0_4:
	mov	w21, #0
	cbz	w22, LBB0_7
LBB0_5:
	ldr	x8, [x23]
Lloh0:
	adrp	x9, _USER_CLIENT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _USER_CLIENT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	ldp	w1, w0, [x19, #4]
Lloh3:
	adrp	x8, _SNDRV_SEQ_EVENT_PORT_UNSUBSCRIBED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SNDRV_SEQ_EVENT_PORT_UNSUBSCRIBED@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x2, x20
	bl	_snd_seq_client_notify_subscription
LBB0_7:
	ldr	w0, [x19]
	bl	_module_put
	b	LBB0_9
LBB0_8:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_USER_CLIENT,8,3                ; @USER_CLIENT
	.comm	_SNDRV_SEQ_EVENT_PORT_UNSUBSCRIBED,4,2 ; @SNDRV_SEQ_EVENT_PORT_UNSUBSCRIBED
	.no_dead_strip	_unsubscribe_port
.subsections_via_symbols
