	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function subscribe_port
_subscribe_port:                        ## @subscribe_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
	movl	%r8d, %r12d
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movl	8(%rsi), %edi
	callq	_try_module_get
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movl	(%r14), %eax
	leal	1(%rax), %ecx
	movl	%ecx, (%r14)
	movq	8(%r14), %rcx
	xorl	%r15d, %r15d
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.3:
	cmpq	$0, 16(%r13)
	jne	LBB0_5
## %bb.4:
	testl	%eax, %eax
	jne	LBB0_7
LBB0_5:
	movl	12(%r13), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	*%rcx
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_6
LBB0_7:
	testl	%r12d, %r12d
	je	LBB0_10
## %bb.8:
	movq	(%rbx), %rax
	movq	_USER_CLIENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	movl	(%r13), %esi
	movl	4(%r13), %edi
	movq	_SNDRV_SEQ_EVENT_PORT_SUBSCRIBED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_snd_seq_client_notify_subscription
	jmp	LBB0_10
LBB0_1:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	8(%r13), %edi
	callq	_module_put
	decl	(%r14)
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_USER_CLIENT,8,3                ## @USER_CLIENT
	.comm	_SNDRV_SEQ_EVENT_PORT_SUBSCRIBED,4,2 ## @SNDRV_SEQ_EVENT_PORT_SUBSCRIBED
	.no_dead_strip	_subscribe_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function subscribe_port
_subscribe_port:                        ; @subscribe_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
	mov	x22, x4
	mov	x19, x3
	mov	x24, x2
	mov	x20, x1
	mov	x23, x0
	ldr	w0, [x1, #8]
	bl	_try_module_get
	cbz	w0, LBB0_5
; %bb.1:
	ldr	w9, [x24]
	add	w8, w9, #1
	str	w8, [x24]
	ldr	x8, [x24, #8]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	x10, [x20, #16]
	cbnz	x10, LBB0_6
; %bb.3:
	cbz	w9, LBB0_6
LBB0_4:
	mov	w21, #0
	b	LBB0_7
LBB0_5:
Lloh0:
	adrp	x8, _EFAULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_11
LBB0_6:
	ldr	w0, [x20, #12]
	mov	x1, x19
	blr	x8
	mov	x21, x0
	tbnz	w0, #31, LBB0_10
LBB0_7:
	cbz	w22, LBB0_11
; %bb.8:
	ldr	x8, [x23]
Lloh3:
	adrp	x9, _USER_CLIENT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _USER_CLIENT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.9:
	ldp	w1, w0, [x20]
Lloh6:
	adrp	x8, _SNDRV_SEQ_EVENT_PORT_SUBSCRIBED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SNDRV_SEQ_EVENT_PORT_SUBSCRIBED@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x2, x19
	bl	_snd_seq_client_notify_subscription
	b	LBB0_11
LBB0_10:
	ldr	w0, [x20, #8]
	bl	_module_put
	ldr	w8, [x24]
	sub	w8, w8, #1
	str	w8, [x24]
LBB0_11:
	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	_EFAULT,4,2                     ; @EFAULT
	.comm	_USER_CLIENT,8,3                ; @USER_CLIENT
	.comm	_SNDRV_SEQ_EVENT_PORT_SUBSCRIBED,4,2 ; @SNDRV_SEQ_EVENT_PORT_SUBSCRIBED
	.no_dead_strip	_subscribe_port
.subsections_via_symbols
