	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_seq_oss_writeq_new         ## -- Begin function snd_seq_oss_writeq_new
	.p2align	4, 0x90
_snd_seq_oss_writeq_new:                ## @snd_seq_oss_writeq_new
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r14, 32(%rbx)
	movl	%r15d, (%rbx)
	leaq	24(%rbx), %rdi
	callq	_spin_lock_init
	movq	%rbx, %rdi
	addq	$4, %rdi
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	callq	_init_waitqueue_head
	leaq	-48(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movl	(%r14), %eax
	movl	%eax, -40(%rbp)
	movl	%r15d, -48(%rbp)
	movl	%r15d, %eax
	shrl	$31, %eax
	addl	%r15d, %eax
	sarl	%eax
	movl	%eax, -44(%rbp)
	movq	_SNDRV_SEQ_IOCTL_SET_CLIENT_POOL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_snd_seq_oss_control
LBB0_2:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_SNDRV_SEQ_IOCTL_SET_CLIENT_POOL,4,2 ## @SNDRV_SEQ_IOCTL_SET_CLIENT_POOL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_seq_oss_writeq_new         ; -- Begin function snd_seq_oss_writeq_new
	.p2align	2
_snd_seq_oss_writeq_new:                ; @snd_seq_oss_writeq_new
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	mov	x20, x0
	cbz	x0, LBB0_2
; %bb.1:
	str	x19, [x20, #32]
	str	w21, [x20]
	add	x0, x20, #24
	bl	_spin_lock_init
	add	x0, x20, #4
	stp	xzr, xzr, [x20, #8]
	bl	_init_waitqueue_head
	mov	x0, sp
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	ldr	w9, [x19]
	cmp	w21, #0
	cinc	w8, w21, lt
	asr	w8, w8, #1
	str	w21, [sp]
	stp	w8, w9, [sp, #4]
Lloh3:
	adrp	x8, _SNDRV_SEQ_IOCTL_SET_CLIENT_POOL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SNDRV_SEQ_IOCTL_SET_CLIENT_POOL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x19
	bl	_snd_seq_oss_control
LBB0_2:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_SNDRV_SEQ_IOCTL_SET_CLIENT_POOL,4,2 ; @SNDRV_SEQ_IOCTL_SET_CLIENT_POOL
.subsections_via_symbols
