	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_pcm_oss_get_odelay
_snd_pcm_oss_get_odelay:                ## @snd_pcm_oss_get_odelay
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rax
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_snd_pcm_oss_make_ready
	testl	%eax, %eax
	js	LBB0_10
## %bb.3:
	movl	(%rbx), %edi
	callq	_oss_runtime
	movq	%rax, %rcx
	xorl	%eax, %eax
	cmpq	$0, 8(%rcx)
	jne	LBB0_10
## %bb.4:
	cmpq	$0, (%rcx)
	jne	LBB0_10
## %bb.5:
	movq	_SNDRV_PCM_IOCTL_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-16(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_snd_pcm_kernel_ioctl
	movq	_EPIPE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	jne	LBB0_7
## %bb.6:
	movq	$0, -16(%rbp)
	xorl	%esi, %esi
	jmp	LBB0_9
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_7:
	testl	%eax, %eax
	js	LBB0_10
## %bb.8:
	movq	-16(%rbp), %rsi
LBB0_9:
	movq	%rbx, %rdi
	callq	_snd_pcm_oss_bytes
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ## @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SNDRV_PCM_IOCTL_DELAY,4,2      ## @SNDRV_PCM_IOCTL_DELAY
	.comm	_EPIPE,4,2                      ## @EPIPE
	.no_dead_strip	_snd_pcm_oss_get_odelay
.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_get_odelay
_snd_pcm_oss_get_odelay:                ; @snd_pcm_oss_get_odelay
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x19, [x8, x9, lsl #3]
	cbz	x19, LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_snd_pcm_oss_make_ready
	tbnz	w0, #31, LBB0_6
; %bb.2:
	ldr	w0, [x19]
	bl	_oss_runtime
	ldr	x8, [x0, #8]
	cbnz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x0]
	cbz	x8, LBB0_7
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_7:
Lloh6:
	adrp	x8, _SNDRV_PCM_IOCTL_DELAY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SNDRV_PCM_IOCTL_DELAY@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_snd_pcm_kernel_ioctl
Lloh9:
	adrp	x8, _EPIPE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EPIPE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_9
; %bb.8:
	mov	x1, #0
	str	xzr, [sp, #8]
	b	LBB0_11
LBB0_9:
	tbnz	w0, #31, LBB0_6
; %bb.10:
	ldr	x1, [sp, #8]
LBB0_11:
	mov	x0, x19
	bl	_snd_pcm_oss_bytes
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ; @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SNDRV_PCM_IOCTL_DELAY,4,2      ; @SNDRV_PCM_IOCTL_DELAY
	.comm	_EPIPE,4,2                      ; @EPIPE
	.no_dead_strip	_snd_pcm_oss_get_odelay
.subsections_via_symbols
