	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_pci_bmi_wait
_ath10k_pci_bmi_wait:                   ## @ath10k_pci_bmi_wait
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_jiffies@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	movq	_BMI_COMMUNICATION_TIMEOUT_HZ@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	addq	%rdi, %r14
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_schedule
	movq	(%r15), %rdi
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rsi
	callq	_time_before_eq
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	callq	_ath10k_pci_bmi_send_done
	movq	%r12, %rdi
	callq	_ath10k_pci_bmi_recv_data
	cmpq	$0, 16(%rbx)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rbx), %rax
	cmpq	8(%rbx), %rax
	jne	LBB0_5
## %bb.4:
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_6:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%r15), %rcx
	subq	%rax, %rcx
	movq	_HZ@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	cmpq	%r8, %rcx
	jbe	LBB0_9
## %bb.8:
	movq	_ATH10K_DBG_BMI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %r9d
	callq	_ath10k_dbg
LBB0_9:
	movl	%ebx, %eax
	addq	$24, %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	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_HZ,8,3                         ## @HZ
	.comm	_ATH10K_DBG_BMI,4,2             ## @ATH10K_DBG_BMI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bmi cmd took %lu jiffies hz %d ret %d\n"

	.no_dead_strip	_ath10k_pci_bmi_wait
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_pci_bmi_wait
_ath10k_pci_bmi_wait:                   ; @ath10k_pci_bmi_wait
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x25, _jiffies@GOTPAGE
Lloh1:
	ldr	x25, [x25, _jiffies@GOTPAGEOFF]
	ldr	x20, [x25]
Lloh2:
	adrp	x8, _BMI_COMMUNICATION_TIMEOUT_HZ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BMI_COMMUNICATION_TIMEOUT_HZ@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	add	x24, x8, x20
	mov	x0, x20
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_schedule
	ldr	x0, [x25]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x1, x24
	bl	_time_before_eq
	cbz	x0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x23
	bl	_ath10k_pci_bmi_send_done
	mov	x0, x22
	bl	_ath10k_pci_bmi_recv_data
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldp	x8, x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_1
; %bb.5:
	mov	w21, #0
	b	LBB0_7
LBB0_6:
Lloh5:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_7:
	ldr	x8, [x25]
Lloh8:
	adrp	x9, _HZ@GOTPAGE
Lloh9:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh10:
	ldr	x4, [x9]
	sub	x3, x8, x20
	cmp	x3, x4
	b.ls	LBB0_9
; %bb.8:
Lloh11:
	adrp	x8, _ATH10K_DBG_BMI@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ATH10K_DBG_BMI@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x5, x21
	bl	_ath10k_dbg
LBB0_9:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_BMI_COMMUNICATION_TIMEOUT_HZ,8,3 ; @BMI_COMMUNICATION_TIMEOUT_HZ
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_HZ,8,3                         ; @HZ
	.comm	_ATH10K_DBG_BMI,4,2             ; @ATH10K_DBG_BMI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bmi cmd took %lu jiffies hz %d ret %d\n"

	.no_dead_strip	_ath10k_pci_bmi_wait
.subsections_via_symbols
