	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_sdio_bmi_credits
_ath10k_sdio_bmi_credits:               ## @ath10k_sdio_bmi_credits
	.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	_MBOX_COUNT_DEC_ADDRESS@GOTPCREL(%rip), %rax
	movq	_ATH10K_HIF_MBOX_NUM_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	shll	$2, %r15d
	addl	(%rax), %r15d
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_BMI_COMMUNICATION_TIMEOUT_HZ@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	addq	%rdi, %r12
	movl	$0, -44(%rbp)
	movq	%r12, %rsi
	callq	_time_before
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	leaq	-44(%rbp), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	%r13, %rdx
	callq	_ath10k_sdio_read32
	testl	%eax, %eax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movzbl	-44(%rbp), %eax
	movl	%eax, -44(%rbp)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r12, %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	_ETIMEDOUT@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	_MBOX_COUNT_DEC_ADDRESS,4,2     ## @MBOX_COUNT_DEC_ADDRESS
	.comm	_ATH10K_HIF_MBOX_NUM_MAX,4,2    ## @ATH10K_HIF_MBOX_NUM_MAX
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_BMI_COMMUNICATION_TIMEOUT_HZ,8,3 ## @BMI_COMMUNICATION_TIMEOUT_HZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to decrement the command credit count register: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"bmi communication timeout\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	_ath10k_sdio_bmi_credits
.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_credits
_ath10k_sdio_bmi_credits:               ; @ath10k_sdio_bmi_credits
	.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	x8, _MBOX_COUNT_DEC_ADDRESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MBOX_COUNT_DEC_ADDRESS@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x8, _ATH10K_HIF_MBOX_NUM_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATH10K_HIF_MBOX_NUM_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
Lloh6:
	adrp	x23, _jiffies@GOTPAGE
Lloh7:
	ldr	x23, [x23, _jiffies@GOTPAGEOFF]
	ldr	x0, [x23]
Lloh8:
	adrp	x8, _BMI_COMMUNICATION_TIMEOUT_HZ@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BMI_COMMUNICATION_TIMEOUT_HZ@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	add	x20, x8, x0
	str	wzr, [sp, #12]
	mov	x1, x20
	bl	_time_before
	cbz	x0, LBB0_6
; %bb.1:
	add	w21, w21, w22, lsl #2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x21
	bl	_ath10k_sdio_read32
	cbnz	w0, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w8, [sp, #12]
	str	w8, [sp, #12]
	ldr	x0, [x23]
	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	w22, #0
	b	LBB0_8
LBB0_6:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_ath10k_warn
Lloh13:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_8
LBB0_7:
	mov	x22, x0
	str	x22, [sp]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ath10k_warn
LBB0_8:
	mov	x0, x22
	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	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MBOX_COUNT_DEC_ADDRESS,4,2     ; @MBOX_COUNT_DEC_ADDRESS
	.comm	_ATH10K_HIF_MBOX_NUM_MAX,4,2    ; @ATH10K_HIF_MBOX_NUM_MAX
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_BMI_COMMUNICATION_TIMEOUT_HZ,8,3 ; @BMI_COMMUNICATION_TIMEOUT_HZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to decrement the command credit count register: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"bmi communication timeout\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	_ath10k_sdio_bmi_credits
.subsections_via_symbols
