	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_atiixp_pcm_pointer
_snd_atiixp_pcm_pointer:                ## @snd_atiixp_pcm_pointer
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_snd_pcm_substream_chip
	movq	%rax, %r15
	movq	(%r14), %r14
	movq	(%r14), %r12
	movl	$-1000, %ebx                    ## imm = 0xFC18
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	incl	%ebx
	je	LBB0_3
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	(%rax), %rdi
	addq	(%r15), %rdi
	callq	_readl
	subl	(%r12), %eax
	jb	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	4(%r12), %eax
	jae	LBB0_2
## %bb.5:
	movq	%r14, %rdi
	movl	%eax, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bytes_to_frames                ## TAILCALL
LBB0_3:
	movq	8(%r12), %rax
	movq	(%rax), %rdi
	addq	(%r15), %rdi
	callq	_readl
	movl	(%r12), %edx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_snd_printd
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"atiixp-modem: invalid DMA pointer read 0x%x (buf=%x)\n"

	.no_dead_strip	_snd_atiixp_pcm_pointer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_atiixp_pcm_pointer
_snd_atiixp_pcm_pointer:                ; @snd_atiixp_pcm_pointer
	.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, x0
	bl	_snd_pcm_substream_chip
	mov	x19, x0
	ldr	x20, [x20]
	ldr	x21, [x20]
	mov	w22, #-1000
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	adds	w22, w22, #1
	b.hs	LBB0_5
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x9, [x21, #8]
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x21]
	subs	w1, w0, w8
	b.lo	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x21, #4]
	cmp	w1, w8
	b.hs	LBB0_1
; %bb.4:
	mov	x0, x20
	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
	b	_bytes_to_frames
LBB0_5:
	ldr	x8, [x19]
	ldr	x9, [x21, #8]
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	mov	x1, x0
	ldr	w2, [x21]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_snd_printd
	mov	w0, #0
	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 AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"atiixp-modem: invalid DMA pointer read 0x%x (buf=%x)\n"

	.no_dead_strip	_snd_atiixp_pcm_pointer
.subsections_via_symbols
