	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_pci_hif_exchange_bmi_msg ## -- Begin function ath10k_pci_hif_exchange_bmi_msg
	.p2align	4, 0x90
_ath10k_pci_hif_exchange_bmi_msg:       ## @ath10k_pci_hif_exchange_bmi_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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r13
	movq	%rcx, %r14
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r15
	callq	_ath10k_pci_priv
	movq	(%rax), %rax
	movq	_BMI_CE_NUM_TO_TARG@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_BMI_CE_NUM_TO_HOST@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rax,%rcx,8), %rcx
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	movq	(%rax,%rdx,8), %rbx
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	xorl	%eax, %eax
	callq	_might_sleep
	testq	%r14, %r14
	je	LBB0_4
## %bb.1:
	testq	%r13, %r13
	jne	LBB0_4
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_4:
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	testq	%r13, %r13
	setne	%al
	testq	%r14, %r14
	setne	%bl
	andb	%al, %bl
	cmpb	$1, %bl
	jne	LBB0_6
## %bb.5:
	cmpl	$0, (%r13)
	je	LBB0_2
LBB0_6:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %esi
	callq	_kmemdup
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movl	(%r15), %edi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rsi
	movl	%r12d, %edx
	callq	_dma_map_single
	movl	%eax, %r14d
	movl	(%r15), %edi
	movl	%eax, %esi
	callq	_dma_mapping_error
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_26
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_27
LBB0_10:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	testb	%bl, %bl
	je	LBB0_11
## %bb.12:
	movl	(%r13), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_13
## %bb.14:
	movq	%rax, %rbx
	movl	(%r15), %edi
	movl	(%r13), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rsi
	callq	_dma_map_single
	movl	%eax, %r14d
	movl	(%r15), %edi
	movl	%eax, %esi
	callq	_dma_mapping_error
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_23
LBB0_11:
	xorl	%eax, %eax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_22
LBB0_16:
	movl	$1, -80(%rbp)
	movq	$0, -72(%rbp)
	leaq	-80(%rbp), %rsi
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, -112(%rbp)                ## 8-byte Spill
	movl	%r14d, %edx
	callq	_ath10k_ce_rx_post_buf
LBB0_17:
	leaq	-80(%rbp), %rsi
	movq	-120(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r12d, %ecx
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	_ath10k_ce_send
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_20
## %bb.18:
	leaq	-80(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	callq	_ath10k_pci_bmi_wait
	movl	$0, %r12d
	testl	%eax, %eax
	je	LBB0_20
## %bb.19:
	leaq	-100(%rbp), %rdx
	leaq	-128(%rbp), %rcx
	leaq	-124(%rbp), %r8
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%eax, %r12d
	callq	_ath10k_ce_cancel_send_next
LBB0_20:
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	testq	%r14, %r14
	je	LBB0_22
## %bb.21:
	leaq	-100(%rbp), %rdx
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_ath10k_ce_revoke_recv_next
	movl	(%r15), %edi
	movl	(%r13), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-112(%rbp), %rsi                ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_dma_unmap_single
LBB0_22:
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %esi                 ## 4-byte Reload
LBB0_23:
	movl	(%r15), %edi
	movl	(%rax), %ecx
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_dma_unmap_single
	testq	%r13, %r13
	je	LBB0_26
## %bb.24:
	testl	%r12d, %r12d
	jne	LBB0_26
## %bb.25:
	movl	(%r13), %edi
	movq	-72(%rbp), %rsi
	callq	_min
	movl	%eax, (%r13)
	movq	-72(%rbp), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_memcpy
	xorl	%r12d, %r12d
LBB0_26:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
	movq	%rbx, %rdi
	callq	_kfree
LBB0_27:
	movl	%r12d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BMI_CE_NUM_TO_TARG,8,3         ## @BMI_CE_NUM_TO_TARG
	.comm	_BMI_CE_NUM_TO_HOST,8,3         ## @BMI_CE_NUM_TO_HOST
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_EIO,4,2                        ## @EIO
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_pci_hif_exchange_bmi_msg ; -- Begin function ath10k_pci_hif_exchange_bmi_msg
	.p2align	2
_ath10k_pci_hif_exchange_bmi_msg:       ; @ath10k_pci_hif_exchange_bmi_msg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x4
	mov	x19, x3
	mov	x22, x2
	mov	x21, x1
	mov	x23, x0
	bl	_ath10k_pci_priv
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _BMI_CE_NUM_TO_TARG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BMI_CE_NUM_TO_TARG@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _BMI_CE_NUM_TO_HOST@GOTPAGE
Lloh4:
	ldr	x10, [x10, _BMI_CE_NUM_TO_HOST@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	ldr	x27, [x8, x9, lsl #3]
	ldr	x26, [x8, x10, lsl #3]
	stp	xzr, xzr, [sp, #16]
	bl	_might_sleep
	cbz	x19, LBB0_3
; %bb.1:
	cbnz	x20, LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_9
LBB0_3:
	cmp	x19, #0
	ccmp	x20, #0, #4, ne
	cset	w24, ne
	b.eq	LBB0_5
; %bb.4:
	ldr	w8, [x20]
	cbz	w8, LBB0_2
LBB0_5:
Lloh8:
	adrp	x28, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x28, [x28, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x28]
	mov	x0, x21
	mov	x1, x22
	bl	_kmemdup
	cbz	x0, LBB0_8
; %bb.6:
	mov	x21, x0
	ldr	w0, [x23]
Lloh10:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
	mov	x1, x21
	mov	x2, x22
	bl	_dma_map_single
	mov	x25, x0
	ldr	w0, [x23]
	mov	x1, x25
	bl	_dma_mapping_error
	cbz	w0, LBB0_10
; %bb.7:
	mov	x24, #0
Lloh13:
	adrp	x8, _EIO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w28, w8
	b	LBB0_26
LBB0_8:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w28, w8
	b	LBB0_27
LBB0_10:
	cbz	w24, LBB0_14
; %bb.11:
	ldr	w0, [x20]
	ldr	w1, [x28]
	bl	_kzalloc
	mov	x24, x0
	cbz	x0, LBB0_15
; %bb.12:
	ldr	w0, [x23]
	ldr	w2, [x20]
Lloh18:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
	mov	x1, x24
	bl	_dma_map_single
	mov	x28, x0
	ldr	w0, [x23]
	mov	x1, x28
	bl	_dma_mapping_error
	cbz	w0, LBB0_17
; %bb.13:
Lloh21:
	adrp	x8, _EIO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_16
LBB0_14:
	str	wzr, [sp]                       ; 4-byte Folded Spill
	mov	x24, #0
	b	LBB0_18
LBB0_15:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	neg	w28, w8
	b	LBB0_23
LBB0_17:
	mov	w8, #1
	str	w8, [sp, #16]
	str	xzr, [sp, #24]
	add	x1, sp, #16
	mov	x0, x26
	str	w28, [sp]                       ; 4-byte Folded Spill
	mov	x2, x28
	bl	_ath10k_ce_rx_post_buf
LBB0_18:
	add	x1, sp, #16
	mov	x0, x27
	mov	x2, x25
	mov	x3, x22
	mov	w4, #-1
	mov	w5, #0
	bl	_ath10k_ce_send
	mov	x28, x0
	cbnz	w0, LBB0_21
; %bb.19:
	add	x3, sp, #16
	mov	x0, x23
	mov	x1, x27
	mov	x2, x26
	bl	_ath10k_pci_bmi_wait
	mov	x28, x0
	cbz	w0, LBB0_21
; %bb.20:
	add	x2, sp, #12
	add	x3, sp, #8
	add	x4, sp, #4
	mov	x0, x27
	mov	x1, #0
	bl	_ath10k_ce_cancel_send_next
LBB0_21:
	cbz	x19, LBB0_23
; %bb.22:
	add	x2, sp, #12
	mov	x0, x26
	mov	x1, #0
	bl	_ath10k_ce_revoke_recv_next
	ldr	w0, [x23]
	ldr	w2, [x20]
Lloh25:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh27:
	ldr	w3, [x8]
	ldr	w1, [sp]                        ; 4-byte Folded Reload
	bl	_dma_unmap_single
LBB0_23:
Lloh28:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh30:
	ldr	w3, [x8]
	mov	x1, x25
	mov	x2, x22
	bl	_dma_unmap_single
	cbz	x20, LBB0_26
; %bb.24:
	cbnz	w28, LBB0_26
; %bb.25:
	ldr	w0, [x20]
	ldr	x1, [sp, #24]
	bl	_min
	str	w0, [x20]
	ldr	x2, [sp, #24]
	mov	x0, x19
	mov	x1, x24
	bl	_memcpy
LBB0_26:
	mov	x0, x21
	bl	_kfree
	mov	x0, x24
	bl	_kfree
LBB0_27:
	mov	x0, x28
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_BMI_CE_NUM_TO_TARG,8,3         ; @BMI_CE_NUM_TO_TARG
	.comm	_BMI_CE_NUM_TO_HOST,8,3         ; @BMI_CE_NUM_TO_HOST
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_EIO,4,2                        ; @EIO
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
.subsections_via_symbols
