	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_sdio_bmi_exchange_msg
_ath10k_sdio_bmi_exchange_msg:          ## @ath10k_sdio_bmi_exchange_msg
	.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	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r13
	callq	_ath10k_sdio_priv
	movq	%rax, %r12
	testq	%r14, %r14
	je	LBB0_5
## %bb.1:
	movq	%r13, %rdi
	callq	_ath10k_sdio_bmi_credits
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.2:
	movl	8(%r12), %ebx
	movq	(%r12), %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	movq	(%r12), %rdx
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%r15d, %ecx
	callq	_ath10k_sdio_write
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_4
LBB0_5:
	xorl	%ebx, %ebx
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_11
## %bb.6:
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_11
## %bb.7:
	movq	%r13, %rdi
	callq	_ath10k_sdio_bmi_get_rx_lookahead
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.8:
	movl	8(%r12), %esi
	movq	(%r12), %rdx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	(%r14), %ecx
	movq	%r13, %rdi
	callq	_ath10k_sdio_read
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
LBB0_4:
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_ath10k_warn
LBB0_11:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	(%r12), %rsi
	movl	(%r14), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_memcpy
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to send the bmi data to the device: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"unable to read the bmi data from the device: %d\n"

	.no_dead_strip	_ath10k_sdio_bmi_exchange_msg
.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_exchange_msg
_ath10k_sdio_bmi_exchange_msg:          ; @ath10k_sdio_bmi_exchange_msg
	.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, x4
	mov	x20, x3
	mov	x24, x2
	mov	x25, x1
	mov	x19, x0
	bl	_ath10k_sdio_priv
	mov	x22, x0
	cbz	x25, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_ath10k_sdio_bmi_credits
	mov	x23, x0
	cbnz	w0, LBB0_10
; %bb.2:
	ldr	w23, [x22, #8]
	ldr	x0, [x22]
	mov	x1, x25
	mov	x2, x24
	bl	_memcpy
	ldr	x2, [x22]
	mov	x0, x19
	mov	x1, x23
	mov	x3, x24
	bl	_ath10k_sdio_write
	cbz	w0, LBB0_4
; %bb.3:
	mov	x23, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_9
LBB0_4:
	mov	w23, #0
	cbz	x20, LBB0_10
; %bb.5:
	cbz	x21, LBB0_10
; %bb.6:
	mov	x0, x19
	bl	_ath10k_sdio_bmi_get_rx_lookahead
	mov	x23, x0
	cbnz	w0, LBB0_10
; %bb.7:
	ldr	w1, [x22, #8]
	ldr	x2, [x22]
	ldr	w3, [x21]
	mov	x0, x19
	bl	_ath10k_sdio_read
	mov	x23, x0
	cbz	w0, LBB0_11
; %bb.8:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_9:
	mov	x0, x19
	mov	x2, x23
	bl	_ath10k_warn
LBB0_10:
	mov	x0, x23
	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
LBB0_11:
	ldr	x1, [x22]
	ldr	w2, [x21]
	mov	x0, x20
	bl	_memcpy
	b	LBB0_10
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to send the bmi data to the device: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"unable to read the bmi data from the device: %d\n"

	.no_dead_strip	_ath10k_sdio_bmi_exchange_msg
.subsections_via_symbols
