	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_seq_event_port_attach      ## -- Begin function snd_seq_event_port_attach
	.p2align	4, 0x90
_snd_seq_event_port_attach:             ## @snd_seq_event_port_attach
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r13d
	movl	%edx, %r12d
	movq	%rsi, %r14
	movl	%edi, %ebx
	movq	16(%rbp), %r15
	leaq	-88(%rbp), %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movl	%ebx, -72(%rbp)
	movl	-56(%rbp), %edi
	testq	%r15, %r15
	leaq	L_.str(%rip), %rsi
	cmovneq	%r15, %rsi
	movl	$4, %edx
	callq	_strlcpy
	movl	%r12d, -88(%rbp)
	movl	%r13d, -84(%rbp)
	movq	%r14, -64(%rbp)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -80(%rbp)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -76(%rbp)
	movq	_SNDRV_SEQ_IOCTL_CREATE_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	leaq	-88(%rbp), %rdx
	callq	_snd_seq_kernel_client_ctl
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movl	-68(%rbp), %eax
LBB0_2:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unamed port"

	.comm	_SNDRV_SEQ_IOCTL_CREATE_PORT,4,2 ## @SNDRV_SEQ_IOCTL_CREATE_PORT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_seq_event_port_attach      ; -- Begin function snd_seq_event_port_attach
	.p2align	2
_snd_seq_event_port_attach:             ; @snd_seq_event_port_attach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x6
	mov	x20, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x25, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	str	w25, [sp, #24]
	ldr	w0, [sp, #40]
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	cmp	x19, #0
	csel	x1, x8, x19, eq
	mov	w2, #4
	bl	_strlcpy
	stp	w23, w22, [sp, #8]
	str	x24, [sp, #32]
	stp	w21, w20, [sp, #16]
Lloh2:
	adrp	x8, _SNDRV_SEQ_IOCTL_CREATE_PORT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SNDRV_SEQ_IOCTL_CREATE_PORT@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x25
	bl	_snd_seq_kernel_client_ctl
	ldr	w8, [sp, #28]
	cmp	w0, #0
	csel	w0, w0, w8, lt
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unamed port"

	.comm	_SNDRV_SEQ_IOCTL_CREATE_PORT,4,2 ; @SNDRV_SEQ_IOCTL_CREATE_PORT
.subsections_via_symbols
