	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_pcm_oss_capture_position_fixup
_snd_pcm_oss_capture_position_fixup:    ## @snd_pcm_oss_capture_position_fixup
	.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
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_SNDRV_PCM_IOCTL_DELAY@GOTPCREL(%rip), %r12
	movq	_SNDRV_PCM_IOCTL_FORWARD@GOTPCREL(%rip), %r13
	leaq	-48(%rbp), %r15
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rcx, %rax
	cqto
	idivq	%rsi
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	subq	%rdx, %rcx
	movq	%rcx, -48(%rbp)
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_snd_pcm_kernel_ioctl
	testl	%eax, %eax
	js	LBB0_7
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_snd_pcm_kernel_ioctl
	testl	%eax, %eax
	js	LBB0_7
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rbx), %rsi
	movq	(%r14), %rcx
	movq	(%rsi), %rdx
	cmpq	%rdx, %rcx
	jle	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%rsi), %rsi
	notq	%rdx
	addq	%rdx, %rcx
	addq	%rsi, %rcx
	movq	%rcx, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $edx killed $edx def $rdx
	jmp	LBB0_6
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_PCM_IOCTL_DELAY,4,2      ## @SNDRV_PCM_IOCTL_DELAY
	.comm	_SNDRV_PCM_IOCTL_FORWARD,4,2    ## @SNDRV_PCM_IOCTL_FORWARD
	.no_dead_strip	_snd_pcm_oss_capture_position_fixup
.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_capture_position_fixup
_snd_pcm_oss_capture_position_fixup:    ; @snd_pcm_oss_capture_position_fixup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _SNDRV_PCM_IOCTL_DELAY@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SNDRV_PCM_IOCTL_DELAY@GOTPAGEOFF]
Lloh2:
	adrp	x22, _SNDRV_PCM_IOCTL_FORWARD@GOTPAGE
Lloh3:
	ldr	x22, [x22, _SNDRV_PCM_IOCTL_FORWARD@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	mov	x0, x20
	mov	x2, x19
	bl	_snd_pcm_kernel_ioctl
	tbnz	w0, #31, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x9, [x20]
	ldr	x8, [x19]
	ldr	x10, [x9]
	cmp	x8, x10
	b.le	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x9, [x9, #8]
	mvn	x10, x10
	add	x8, x8, x10
	add	x8, x8, x9
	sdiv	x8, x8, x9
	mul	x8, x8, x9
	str	x8, [sp, #8]
	ldr	w1, [x22]
	add	x2, sp, #8
	mov	x0, x20
	bl	_snd_pcm_kernel_ioctl
	tbz	w0, #31, LBB0_1
LBB0_4:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_PCM_IOCTL_DELAY,4,2      ; @SNDRV_PCM_IOCTL_DELAY
	.comm	_SNDRV_PCM_IOCTL_FORWARD,4,2    ; @SNDRV_PCM_IOCTL_FORWARD
	.no_dead_strip	_snd_pcm_oss_capture_position_fixup
.subsections_via_symbols
