	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_pcm_oss_open_file
_snd_pcm_oss_open_file:                 ## @snd_pcm_oss_open_file
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r12d
	movq	%rdx, %r15
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movl	(%rdi), %r13d
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	movq	$0, (%r15)
LBB0_2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %rbx
	movq	_FMODE_WRITE@GOTPCREL(%rip), %r8
	movl	(%r8), %eax
	movq	_FMODE_READ@GOTPCREL(%rip), %r9
	movl	(%r9), %ecx
	movl	%ecx, %edx
	orl	%eax, %edx
	movl	%r13d, %esi
	notl	%esi
	testl	%esi, %edx
	jne	LBB0_6
## %bb.7:
	movq	_SNDRV_PCM_INFO_HALF_DUPLEX@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	testl	%edx, (%rdi)
	cmovnel	%eax, %r13d
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_8
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_28
LBB0_6:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
LBB0_8:
	movq	_O_APPEND@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	notl	%edx
	andl	%edx, 16(%r14)
	cmpq	$0, (%rsi)
	je	LBB0_9
LBB0_16:
	cmpq	$0, 8(%rsi)
	je	LBB0_17
LBB0_23:
	movq	(%rbx), %rax
	cmpq	$0, (%rax)
	jne	LBB0_26
## %bb.24:
	cmpq	$0, 8(%rax)
	je	LBB0_25
LBB0_26:
	xorl	%r12d, %r12d
	movq	%rbx, 8(%r14)
	testq	%r15, %r15
	je	LBB0_28
## %bb.27:
	movq	%rbx, (%r15)
LBB0_28:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	8(%rdi), %rdx
	cmpl	$0, (%rdx)
	je	LBB0_16
## %bb.10:
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %rdx
	cmpl	$0, (%rdx)
	je	LBB0_11
## %bb.12:
	testl	%r13d, %ecx
	jne	LBB0_13
	jmp	LBB0_16
LBB0_17:
	movq	8(%rdi), %rax
	cmpl	$0, 4(%rax)
	je	LBB0_23
## %bb.18:
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %rax
	cmpl	$1, (%rax)
	jne	LBB0_19
## %bb.20:
	testl	%r13d, (%r8)
	jne	LBB0_21
	jmp	LBB0_23
LBB0_25:
	movq	%rbx, %rdi
	callq	_snd_pcm_oss_release_file
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_19:
	testl	%r13d, (%r9)
	je	LBB0_23
LBB0_21:
	movl	%r12d, %r13d
	leaq	-48(%rbp), %rcx
	movl	$1, %esi
	movq	%r14, %rdx
	callq	_snd_pcm_open_substream
	testl	%eax, %eax
	js	LBB0_14
## %bb.22:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	addq	$8, %rsi
	movq	-48(%rbp), %rax
	movq	(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movq	%rbx, (%rax)
	movq	-48(%rbp), %rdi
	movl	%r13d, %edx
	callq	_snd_pcm_oss_init_substream
	jmp	LBB0_23
LBB0_11:
	testl	%r13d, %eax
	je	LBB0_16
LBB0_13:
	movl	%r12d, -68(%rbp)                ## 4-byte Spill
	leaq	-48(%rbp), %rcx
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_snd_pcm_open_substream
	testl	%eax, %eax
	js	LBB0_14
## %bb.15:
	movq	-48(%rbp), %rax
	movq	(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	-48(%rbp), %rax
	movq	%rbx, (%rax)
	movq	-48(%rbp), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	-68(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edx
	callq	_snd_pcm_oss_init_substream
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	_FMODE_WRITE@GOTPCREL(%rip), %r8
	movq	_FMODE_READ@GOTPCREL(%rip), %r9
	jmp	LBB0_16
LBB0_14:
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_snd_pcm_oss_release_file
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_FMODE_WRITE,4,2                ## @FMODE_WRITE
	.comm	_FMODE_READ,4,2                 ## @FMODE_READ
	.comm	_SNDRV_PCM_INFO_HALF_DUPLEX,4,2 ## @SNDRV_PCM_INFO_HALF_DUPLEX
	.comm	_O_APPEND,4,2                   ## @O_APPEND
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,4,2  ## @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_snd_pcm_oss_open_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_pcm_oss_open_file
_snd_pcm_oss_open_file:                 ; @snd_pcm_oss_open_file
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x4
	mov	x22, x3
	mov	x19, x2
	mov	x24, x1
	mov	x20, x0
	ldr	w26, [x0]
	cbz	x2, LBB0_2
; %bb.1:
	str	xzr, [x19]
LBB0_2:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #8
	bl	_kzalloc
	cbz	x0, LBB0_11
; %bb.3:
	mov	x21, x0
Lloh3:
	adrp	x27, _FMODE_WRITE@GOTPAGE
Lloh4:
	ldr	x27, [x27, _FMODE_WRITE@GOTPAGEOFF]
	ldr	w8, [x27]
Lloh5:
	adrp	x28, _FMODE_READ@GOTPAGE
Lloh6:
	ldr	x28, [x28, _FMODE_READ@GOTPAGEOFF]
	ldr	w9, [x28]
	orr	w10, w9, w8
	bics	wzr, w10, w26
	b.ne	LBB0_5
; %bb.4:
	ldr	w10, [x24]
Lloh7:
	adrp	x11, _SNDRV_PCM_INFO_HALF_DUPLEX@GOTPAGE
Lloh8:
	ldr	x11, [x11, _SNDRV_PCM_INFO_HALF_DUPLEX@GOTPAGEOFF]
Lloh9:
	ldr	w11, [x11]
	tst	w11, w10
	csel	w26, w26, w8, eq
LBB0_5:
Lloh10:
	adrp	x10, _O_APPEND@GOTPAGE
Lloh11:
	ldr	x10, [x10, _O_APPEND@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	ldr	w11, [x20, #16]
	bic	w10, w11, w10
	str	w10, [x20, #16]
	ldr	x10, [x23]
	cbz	x10, LBB0_14
LBB0_6:
	ldr	x8, [x23, #8]!
	cbz	x8, LBB0_17
LBB0_7:
	ldr	x8, [x21]
	ldr	x9, [x8]
	cbnz	x9, LBB0_9
; %bb.8:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_20
LBB0_9:
	str	x21, [x20, #8]
	mov	w25, #0
	cbz	x19, LBB0_13
; %bb.10:
	str	x21, [x19]
	b	LBB0_13
LBB0_11:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w25, w8
LBB0_13:
	mov	x0, x25
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_14:
	ldr	x10, [x24, #8]
	ldr	w10, [x10]
	cbz	w10, LBB0_6
; %bb.15:
Lloh15:
	adrp	x10, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh16:
	ldr	x10, [x10, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	cbz	w10, LBB0_24
; %bb.16:
	tst	w9, w26
	b.ne	LBB0_25
	b	LBB0_6
LBB0_17:
	ldr	x8, [x24, #8]
	ldr	w8, [x8, #4]
	cbz	w8, LBB0_7
; %bb.18:
Lloh18:
	adrp	x8, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w8, #1
	b.ne	LBB0_21
; %bb.19:
	ldr	w8, [x27]
	tst	w8, w26
	b.ne	LBB0_22
	b	LBB0_7
LBB0_20:
	mov	x0, x21
	bl	_snd_pcm_oss_release_file
Lloh21:
	adrp	x8, _EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_12
LBB0_21:
	ldr	w8, [x28]
	tst	w8, w26
	b.eq	LBB0_7
LBB0_22:
	add	x3, sp, #8
	mov	x0, x24
	mov	w1, #1
	mov	x2, x20
	bl	_snd_pcm_open_substream
	tbnz	w0, #31, LBB0_27
; %bb.23:
	ldr	x8, [sp, #8]
	ldr	x9, [x21]
	str	x8, [x9, #8]
	str	x21, [x8]
	ldr	x0, [sp, #8]
	mov	x1, x23
	mov	x2, x22
	bl	_snd_pcm_oss_init_substream
	b	LBB0_7
LBB0_24:
	tst	w8, w26
	b.eq	LBB0_6
LBB0_25:
	add	x3, sp, #8
	mov	x0, x24
	mov	w1, #0
	mov	x2, x20
	bl	_snd_pcm_open_substream
	tbnz	w0, #31, LBB0_27
; %bb.26:
	ldr	x8, [sp, #8]
	ldr	x9, [x21]
	str	x8, [x9]
	ldr	x8, [sp, #8]
	str	x21, [x8]
	ldr	x0, [sp, #8]
	mov	x1, x23
	mov	x2, x22
	bl	_snd_pcm_oss_init_substream
	b	LBB0_6
LBB0_27:
	mov	x25, x0
	mov	x0, x21
	bl	_snd_pcm_oss_release_file
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_FMODE_WRITE,4,2                ; @FMODE_WRITE
	.comm	_FMODE_READ,4,2                 ; @FMODE_READ
	.comm	_SNDRV_PCM_INFO_HALF_DUPLEX,4,2 ; @SNDRV_PCM_INFO_HALF_DUPLEX
	.comm	_O_APPEND,4,2                   ; @O_APPEND
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,4,2  ; @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_snd_pcm_oss_open_file
.subsections_via_symbols
