	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cik_ih_get_wptr
_cik_ih_get_wptr:                       ## @cik_ih_get_wptr
	.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
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	8(%rsi), %rax
	movl	(%rax), %edi
	callq	_le32_to_cpu
	movl	%eax, %ebx
	movq	_IH_RB_WPTR__RB_OVERFLOW_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%ebx, %eax
	je	LBB0_2
## %bb.1:
	notl	%eax
	andl	%eax, %ebx
	movl	(%r15), %edi
	movl	(%r14), %ecx
	leal	16(%rbx), %r15d
	movl	4(%r14), %r8d
	andl	%r15d, %r8d
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_warn
	andl	4(%r14), %r15d
	movl	%r15d, (%r14)
	movq	_mmIH_RB_CNTL@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_RREG32
	movq	_IH_RB_CNTL__WPTR_OVERFLOW_CLEAR_MASK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r15), %edi
	movl	%eax, %esi
	callq	_WREG32
LBB0_2:
	andl	4(%r14), %ebx
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IH_RB_WPTR__RB_OVERFLOW_MASK,4,2 ## @IH_RB_WPTR__RB_OVERFLOW_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IH ring buffer overflow (0x%08X, 0x%08X, 0x%08X)\n"

	.comm	_mmIH_RB_CNTL,4,2               ## @mmIH_RB_CNTL
	.comm	_IH_RB_CNTL__WPTR_OVERFLOW_CLEAR_MASK,4,2 ## @IH_RB_CNTL__WPTR_OVERFLOW_CLEAR_MASK
	.no_dead_strip	_cik_ih_get_wptr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cik_ih_get_wptr
_cik_ih_get_wptr:                       ; @cik_ih_get_wptr
	.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	x19, x1
	mov	x21, x0
	ldr	x8, [x1, #8]
	ldr	w0, [x8]
	bl	_le32_to_cpu
	mov	x20, x0
Lloh0:
	adrp	x8, _IH_RB_WPTR__RB_OVERFLOW_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IH_RB_WPTR__RB_OVERFLOW_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	bic	w20, w20, w8
	ldr	w0, [x21]
	add	w21, w20, #16
	ldp	w3, w8, [x19]
	and	w4, w8, w21
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_warn
	ldr	w8, [x19, #4]
	and	w8, w8, w21
	str	w8, [x19]
Lloh5:
	adrp	x21, _mmIH_RB_CNTL@GOTPAGE
Lloh6:
	ldr	x21, [x21, _mmIH_RB_CNTL@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_RREG32
Lloh7:
	adrp	x8, _IH_RB_CNTL__WPTR_OVERFLOW_CLEAR_MASK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IH_RB_CNTL__WPTR_OVERFLOW_CLEAR_MASK@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	orr	w1, w8, w0
	ldr	w0, [x21]
	bl	_WREG32
LBB0_2:
	ldr	w8, [x19, #4]
	and	w0, w8, w20
	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	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_IH_RB_WPTR__RB_OVERFLOW_MASK,4,2 ; @IH_RB_WPTR__RB_OVERFLOW_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IH ring buffer overflow (0x%08X, 0x%08X, 0x%08X)\n"

	.comm	_mmIH_RB_CNTL,4,2               ; @mmIH_RB_CNTL
	.comm	_IH_RB_CNTL__WPTR_OVERFLOW_CLEAR_MASK,4,2 ; @IH_RB_CNTL__WPTR_OVERFLOW_CLEAR_MASK
	.no_dead_strip	_cik_ih_get_wptr
.subsections_via_symbols
