	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_aw2_saa7146_get_hw_ptr_playback ## -- Begin function snd_aw2_saa7146_get_hw_ptr_playback
	.p2align	4, 0x90
_snd_aw2_saa7146_get_hw_ptr_playback:   ## @snd_aw2_saa7146_get_hw_ptr_playback
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%ecx, %r14d
	movq	%rdx, %rbx
	cmpl	$1, %esi
	je	LBB0_4
## %bb.1:
	testl	%esi, %esi
	jne	LBB0_2
## %bb.3:
	movq	_PCI_ADP3@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_PCI_ADP1@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %edi
	callq	_READREG
	movq	%rax, %rcx
	subq	%rbx, %rcx
	movl	%r14d, %edx
	xorl	%eax, %eax
	cmpq	%rdx, %rcx
	cmovneq	%rcx, %rax
	jmp	LBB0_6
LBB0_2:
	xorl	%eax, %eax
LBB0_6:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_ADP3,4,2                   ## @PCI_ADP3
	.comm	_PCI_ADP1,4,2                   ## @PCI_ADP1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_aw2_saa7146_get_hw_ptr_playback ; -- Begin function snd_aw2_saa7146_get_hw_ptr_playback
	.p2align	2
_snd_aw2_saa7146_get_hw_ptr_playback:   ; @snd_aw2_saa7146_get_hw_ptr_playback
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x3
	mov	x20, x2
	cmp	w1, #1
	b.eq	LBB0_3
; %bb.1:
	cbnz	w1, LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _PCI_ADP3@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_ADP3@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _PCI_ADP1@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PCI_ADP1@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
	bl	_READREG
	sub	x8, x0, x20
	cmp	x8, w19, uxtw
	csel	x0, xzr, x8, eq
	b	LBB0_6
LBB0_5:
	mov	x0, #0
LBB0_6:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_ADP3,4,2                   ; @PCI_ADP3
	.comm	_PCI_ADP1,4,2                   ; @PCI_ADP1
.subsections_via_symbols
