	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_pcm_oss_init_substream
_snd_pcm_oss_init_substream:            ## @snd_pcm_oss_init_substream
	.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
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_oss_substream
	movl	$1, (%rax)
	movq	%r15, %rdi
	callq	_oss_substream
	movups	(%rbx), %xmm0
	movups	%xmm0, 8(%rax)
	cmpq	$0, 8(%rbx)
	je	LBB0_2
## %bb.1:
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r15)
	jmp	LBB0_4
LBB0_2:
	cmpq	$0, (%rbx)
	je	LBB0_4
## %bb.3:
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 8(%r15)
LBB0_4:
	movl	4(%r15), %edi
	callq	_oss_runtime
	movq	%rax, %rbx
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, (%rbx)
	movl	$8000, 8(%rbx)                  ## imm = 0x1F40
	leaq	44(%rbx), %rdi
	callq	_mutex_init
	movl	%r14d, %edi
	callq	_SNDRV_MINOR_OSS_DEVICE
	cmpl	$129, %eax
	jne	LBB0_5
## %bb.6:
	movq	_AFMT_S16_LE@GOTPCREL(%rip), %rcx
	cmpl	$128, %eax
	je	LBB0_8
	jmp	LBB0_9
LBB0_5:
	movq	_AFMT_MU_LAW@GOTPCREL(%rip), %rcx
	cmpl	$128, %eax
	jne	LBB0_9
LBB0_8:
	movq	_AFMT_U8@GOTPCREL(%rip), %rcx
LBB0_9:
	movl	(%rcx), %eax
	movl	%eax, 40(%rbx)
	movl	$1, 12(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rbx)
	movq	$0, 32(%rbx)
	movq	_snd_pcm_oss_release_substream@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.comm	_AFMT_U8,4,2                    ## @AFMT_U8
	.comm	_AFMT_S16_LE,4,2                ## @AFMT_S16_LE
	.comm	_AFMT_MU_LAW,4,2                ## @AFMT_MU_LAW
	.comm	_snd_pcm_oss_release_substream,4,2 ## @snd_pcm_oss_release_substream
	.no_dead_strip	_snd_pcm_oss_init_substream
.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_init_substream
_snd_pcm_oss_init_substream:            ; @snd_pcm_oss_init_substream
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_oss_substream
	mov	w8, #1
	str	w8, [x0]
	mov	x0, x19
	bl	_oss_substream
	ldr	q0, [x21]
	stur	q0, [x0, #8]
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _O_NONBLOCK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_NONBLOCK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	b	LBB0_4
LBB0_2:
	ldr	x8, [x21]
	cbz	x8, LBB0_5
; %bb.3:
Lloh3:
	adrp	x8, _O_NONBLOCK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _O_NONBLOCK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	bic	w8, w9, w8
LBB0_4:
	str	w8, [x19, #8]
LBB0_5:
	ldr	w0, [x19, #4]
	bl	_oss_runtime
	mov	x21, x0
	movi.2s	v0, #1
	str	d0, [x0]
	mov	w8, #8000
	str	w8, [x0, #8]
	add	x0, x0, #44
	bl	_mutex_init
	mov	x0, x20
	bl	_SNDRV_MINOR_OSS_DEVICE
Lloh6:
	adrp	x8, _AFMT_U8@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AFMT_U8@GOTPAGEOFF]
Lloh8:
	adrp	x9, _AFMT_S16_LE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _AFMT_S16_LE@GOTPAGEOFF]
Lloh10:
	adrp	x10, _AFMT_MU_LAW@GOTPAGE
Lloh11:
	ldr	x10, [x10, _AFMT_MU_LAW@GOTPAGEOFF]
	cmp	w0, #129
	csel	x9, x9, x10, eq
	cmp	w0, #128
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [x21, #40]
	mov	w8, #1
	str	w8, [x21, #12]
	stp	xzr, xzr, [x21, #24]
	str	xzr, [x21, #16]
Lloh12:
	adrp	x8, _snd_pcm_oss_release_substream@GOTPAGE
Lloh13:
	ldr	x8, [x8, _snd_pcm_oss_release_substream@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19]
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.comm	_AFMT_U8,4,2                    ; @AFMT_U8
	.comm	_AFMT_S16_LE,4,2                ; @AFMT_S16_LE
	.comm	_AFMT_MU_LAW,4,2                ; @AFMT_MU_LAW
	.comm	_snd_pcm_oss_release_substream,4,2 ; @snd_pcm_oss_release_substream
	.no_dead_strip	_snd_pcm_oss_init_substream
.subsections_via_symbols
