	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_mixer_oss_build_test
_snd_mixer_oss_build_test:              ## @snd_mixer_oss_build_test
	.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, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r14d
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	(%rdi), %r13
	movq	%r13, %rdi
	callq	_down_read
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r14d, %edx
	callq	_snd_mixer_oss_test_id
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r12
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	*(%rbx)
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movl	8(%rbx), %eax
	movq	16(%r15), %rcx
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movslq	%ebx, %rdx
	movl	%eax, (%rcx,%rdx,4)
	movq	%r13, %rdi
	callq	_up_read
	movq	(%r12), %rax
	cmpq	(%r15), %rax
	jle	LBB0_8
## %bb.7:
	movq	%rax, (%r15)
LBB0_8:
	movl	$1, %eax
	movl	%ebx, %ecx
	shll	%cl, %eax
	orl	%eax, 8(%r15)
	movq	%r12, %rdi
	callq	_kfree
	jmp	LBB0_9
LBB0_1:
	movq	%r13, %rdi
	callq	_up_read
LBB0_9:
	xorl	%r14d, %r14d
	jmp	LBB0_10
LBB0_3:
	movq	%r13, %rdi
	callq	_up_read
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_10
LBB0_5:
	movl	%eax, %r14d
	movq	%r13, %rdi
	callq	_up_read
	movq	%r12, %rdi
	callq	_kfree
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_snd_mixer_oss_build_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_mixer_oss_build_test
_snd_mixer_oss_build_test:              ; @snd_mixer_oss_build_test
	.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	x20, x4
	mov	x22, x3
	mov	x23, x2
	mov	x19, x1
	mov	x24, x0
	ldr	x21, [x0]
	mov	x0, x21
	bl	_down_read
	mov	x0, x24
	mov	x1, x23
	mov	x2, x22
	bl	_snd_mixer_oss_test_id
	cbz	x0, LBB0_6
; %bb.1:
	mov	x23, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #8
	bl	_kmalloc
	cbz	x0, LBB0_8
; %bb.2:
	mov	x22, x0
	ldr	x8, [x23]
	mov	x0, x23
	mov	x1, x22
	blr	x8
	tbnz	w0, #31, LBB0_9
; %bb.3:
	ldr	w8, [x23, #8]
	ldr	x9, [x19, #16]
	str	w8, [x9, w20, sxtw #2]
	mov	x0, x21
	bl	_up_read
	ldr	x8, [x22]
	ldr	x9, [x19]
	cmp	x8, x9
	b.le	LBB0_5
; %bb.4:
	str	x8, [x19]
LBB0_5:
	mov	w8, #1
	lsl	w8, w8, w20
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
	mov	x0, x22
	bl	_kfree
	b	LBB0_7
LBB0_6:
	mov	x0, x21
	bl	_up_read
LBB0_7:
	mov	w24, #0
	b	LBB0_10
LBB0_8:
	mov	x0, x21
	bl	_up_read
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_10
LBB0_9:
	mov	x24, x0
	mov	x0, x21
	bl	_up_read
	mov	x0, x22
	bl	_kfree
LBB0_10:
	mov	x0, x24
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_snd_mixer_oss_build_test
.subsections_via_symbols
