	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_mixer_oss_open
_snd_mixer_oss_open:                    ## @snd_mixer_oss_open
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_nonseekable_open
	testl	%eax, %eax
	js	LBB0_10
## %bb.1:
	movq	%rbx, %rdi
	callq	_iminor
	movq	_SNDRV_OSS_DEVICE_TYPE_MIXER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_snd_lookup_oss_minor_data
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_card_oss
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.4:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_snd_card_file_add
	testl	%eax, %eax
	js	LBB0_10
## %bb.5:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r15
	movq	%rbx, 8(%rax)
	movq	%rbx, %rdi
	callq	_card_oss
	movq	(%rax), %rax
	movq	%rax, (%r15)
	movq	%r15, (%r14)
	movl	(%rbx), %edi
	callq	_try_module_get
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jne	LBB0_10
## %bb.8:
	movq	%r15, %rdi
	callq	_kfree
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_snd_card_file_remove
	movq	_EFAULT@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_2:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
LBB0_9:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_snd_card_file_remove
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_OSS_DEVICE_TYPE_MIXER,4,2 ## @SNDRV_OSS_DEVICE_TYPE_MIXER
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EFAULT,4,2                     ## @EFAULT
	.no_dead_strip	_snd_mixer_oss_open
.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_open
_snd_mixer_oss_open:                    ; @snd_mixer_oss_open
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x1
	mov	x20, x0
	bl	_nonseekable_open
	tbnz	w0, #31, LBB0_9
; %bb.1:
	mov	x0, x20
	bl	_iminor
Lloh0:
	adrp	x8, _SNDRV_OSS_DEVICE_TYPE_MIXER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SNDRV_OSS_DEVICE_TYPE_MIXER@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_snd_lookup_oss_minor_data
	cbz	x0, LBB0_7
; %bb.2:
	mov	x20, x0
	bl	_card_oss
	ldr	x8, [x0]
	cbz	x8, LBB0_7
; %bb.3:
	mov	x0, x20
	mov	x1, x19
	bl	_snd_card_file_add
	tbnz	w0, #31, LBB0_9
; %bb.4:
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_10
; %bb.5:
	mov	x21, x0
	str	x20, [x0, #8]
	mov	x0, x20
	bl	_card_oss
	ldr	x8, [x0]
	str	x8, [x21]
	str	x21, [x19]
	ldr	w0, [x20]
	bl	_try_module_get
	cbz	w0, LBB0_11
; %bb.6:
	mov	w0, #0
	b	LBB0_9
LBB0_7:
Lloh6:
	adrp	x8, _ENODEV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	x0, x20
	mov	x1, x19
	bl	_snd_card_file_remove
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_8
LBB0_11:
	mov	x0, x21
	bl	_kfree
	mov	x0, x20
	mov	x1, x19
	bl	_snd_card_file_remove
Lloh10:
	adrp	x8, _EFAULT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_OSS_DEVICE_TYPE_MIXER,4,2 ; @SNDRV_OSS_DEVICE_TYPE_MIXER
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EFAULT,4,2                     ; @EFAULT
	.no_dead_strip	_snd_mixer_oss_open
.subsections_via_symbols
