	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_sdio_bmi_get_rx_lookahead
_ath10k_sdio_bmi_get_rx_lookahead:      ## @ath10k_sdio_bmi_get_rx_lookahead
	.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	%rdi, %r14
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_BMI_COMMUNICATION_TIMEOUT_HZ@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	addq	%rdi, %r15
	movl	$0, -44(%rbp)
	movq	%r15, %rsi
	callq	_time_before
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	_MBOX_HOST_INT_STATUS_ADDRESS@GOTPCREL(%rip), %r13
	leaq	-44(%rbp), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_ath10k_sdio_read32
	testl	%eax, %eax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	andl	$1, -44(%rbp)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r15, %rsi
	callq	_time_before
	movl	-44(%rbp), %ecx
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%ecx, %ecx
	je	LBB0_2
LBB0_6:
	xorl	%ebx, %ebx
	testl	%ecx, %ecx
	jne	LBB0_8
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_ath10k_warn
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_3:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_ath10k_warn
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_BMI_COMMUNICATION_TIMEOUT_HZ,8,3 ## @BMI_COMMUNICATION_TIMEOUT_HZ
	.comm	_MBOX_HOST_INT_STATUS_ADDRESS,4,2 ## @MBOX_HOST_INT_STATUS_ADDRESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to read RX_LOOKAHEAD_VALID: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"bmi_recv_buf FIFO empty\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ath10k_sdio_bmi_get_rx_lookahead
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_sdio_bmi_get_rx_lookahead
_ath10k_sdio_bmi_get_rx_lookahead:      ; @ath10k_sdio_bmi_get_rx_lookahead
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x22, _jiffies@GOTPAGE
Lloh1:
	ldr	x22, [x22, _jiffies@GOTPAGEOFF]
	ldr	x0, [x22]
Lloh2:
	adrp	x8, _BMI_COMMUNICATION_TIMEOUT_HZ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BMI_COMMUNICATION_TIMEOUT_HZ@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	add	x20, x8, x0
	str	wzr, [sp, #12]
	mov	x1, x20
	bl	_time_before
	cbz	x0, LBB0_6
; %bb.1:
Lloh5:
	adrp	x23, _MBOX_HOST_INT_STATUS_ADDRESS@GOTPAGE
Lloh6:
	ldr	x23, [x23, _MBOX_HOST_INT_STATUS_ADDRESS@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	add	x2, sp, #12
	mov	x0, x19
	bl	_ath10k_sdio_read32
	cbnz	w0, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [sp, #12]
	and	w8, w8, #0x1
	str	w8, [sp, #12]
	ldr	x0, [x22]
	mov	x1, x20
	bl	_time_before
	ldr	w8, [sp, #12]
	cmp	x0, #0
	ccmp	w8, #0, #0, ne
	b.eq	LBB0_2
; %bb.4:
	cbz	w8, LBB0_6
; %bb.5:
	mov	w21, #0
	b	LBB0_8
LBB0_6:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_ath10k_warn
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_8
LBB0_7:
	mov	x21, x0
	str	x21, [sp]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ath10k_warn
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_BMI_COMMUNICATION_TIMEOUT_HZ,8,3 ; @BMI_COMMUNICATION_TIMEOUT_HZ
	.comm	_MBOX_HOST_INT_STATUS_ADDRESS,4,2 ; @MBOX_HOST_INT_STATUS_ADDRESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to read RX_LOOKAHEAD_VALID: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"bmi_recv_buf FIFO empty\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ath10k_sdio_bmi_get_rx_lookahead
.subsections_via_symbols
