	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function ath10k_sdio_mbox_rx_process_packets
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_ath10k_sdio_mbox_rx_process_packets:   ## @ath10k_sdio_mbox_rx_process_packets
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	callq	_ath10k_sdio_priv
	movq	%rax, %r14
	cmpl	$0, (%rax)
	jle	LBB0_1
## %bb.2:
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r14,%r12), %rdi
	callq	_kfree_skb
	movq	-56(%rbp), %r13                 ## 8-byte Reload
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	incq	%r15
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r14,%r12)
	movslq	(%r13), %rcx
	addq	$32, %r12
                                        ## kill: def $eax killed $eax def $rax
	cmpq	%rcx, %r15
	movq	%r13, %r14
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	jge	LBB0_18
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%eax, %rcx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx,%rcx,4), %edx
	movq	_ATH10K_HTC_EP_COUNT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %edx
	jae	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r13), %rcx
	movq	%rdx, %rbx
	shlq	$4, %rbx
	cmpq	$0, (%rcx,%rbx)
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	leal	1(%rax), %edi
	movq	8(%r14), %r14
	leaq	(%r14,%r12), %rsi
	cmpq	$0, 24(%r14,%r12)
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, 20(%r14,%r12)
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	movl	%eax, %edi
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	callq	_ath10k_sdio_mbox_rx_process_packet
	testl	%eax, %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	jne	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, 16(%r14,%r12)
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movl	16(%r13), %edi
	movq	8(%r14,%r12), %rsi
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	callq	*8(%rax,%rbx)
	jmp	LBB0_17
LBB0_1:
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	cmpl	(%r14), %r15d
	jl	LBB0_20
	jmp	LBB0_22
LBB0_4:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_5
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
LBB0_5:
	movq	%r13, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_ath10k_warn
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	cmpl	(%r14), %r15d
	jl	LBB0_20
	jmp	LBB0_22
LBB0_13:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_18:
	movl	-68(%rbp), %r12d                ## 4-byte Reload
	cmpl	(%r14), %r15d
	jge	LBB0_22
LBB0_20:
	movl	%r15d, %ebx
	shlq	$5, %rbx
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rdi
	addq	%rbx, %rdi
	callq	_ath10k_sdio_mbox_free_rx_pkt
	addq	$32, %rbx
	incl	%r15d
	cmpl	%r15d, (%r14)
	jg	LBB0_21
LBB0_22:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH10K_HTC_EP_COUNT,4,2        ## @ATH10K_HTC_EP_COUNT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid endpoint in look-ahead: %d\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"ep %d is not connected\n"

	.no_dead_strip	_ath10k_sdio_mbox_rx_process_packets
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_sdio_mbox_rx_process_packets
_ath10k_sdio_mbox_rx_process_packets:   ; @ath10k_sdio_mbox_rx_process_packets
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	str	x2, [sp, #8]                    ; 8-byte Folded Spill
	mov	x22, x1
	mov	x20, x0
	bl	_ath10k_sdio_priv
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x26, #0
	mov	x25, #0
	mov	w27, #0
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x8, #8]
	bl	_kfree_skb
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x25, #1
	add	x8, x28, x26
	stp	xzr, xzr, [x8]
	ldrsw	x8, [x19]
	add	x26, x26, #32
	cmp	x25, x8
	b.ge	LBB0_16
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w24, [x22, w27, sxtw #2]
Lloh0:
	adrp	x8, _ATH10K_HTC_EP_COUNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH10K_HTC_EP_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w24, w8
	b.hs	LBB0_13
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x21, [x20]
	lsl	x8, x24, #4
	ldr	x8, [x21, x8]
	cbz	x8, LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x28, [x19, #8]
	add	x1, x28, x26
	ldr	x8, [x1, #24]
	cbz	x8, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x1, #20]
	cmp	w8, #0
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	csel	x3, x8, xzr, ne
	csel	x2, x22, xzr, ne
	cinc	w27, w27, ne
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w27, w27, #1
	ldr	x3, [sp, #8]                    ; 8-byte Folded Reload
	mov	x2, x22
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_ath10k_sdio_mbox_rx_process_packet
	mov	x23, x0
	cbnz	w0, LBB0_16
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x28, x26
	ldr	w9, [x8, #16]
	cbnz	w9, LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x21, x24, lsl #4
	ldr	x9, [x9, #8]
	ldr	w0, [x19, #16]
	ldr	x1, [x8, #8]
	blr	x9
	b	LBB0_3
LBB0_12:
	mov	w25, #0
	mov	w23, #0
	b	LBB0_16
LBB0_13:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_15
LBB0_14:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_15:
	mov	x0, x20
	mov	x2, x24
	bl	_ath10k_warn
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_16:
	ldr	w8, [x19]
	cmp	w25, w8
	b.ge	LBB0_19
; %bb.17:
	mov	w8, w25
	lsl	x20, x8, #5
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x0, x8, x20
	bl	_ath10k_sdio_mbox_free_rx_pkt
	ldr	w8, [x19]
	add	x20, x20, #32
	add	w25, w25, #1
	cmp	w8, w25
	b.gt	LBB0_18
LBB0_19:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH10K_HTC_EP_COUNT,4,2        ; @ATH10K_HTC_EP_COUNT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid endpoint in look-ahead: %d\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"ep %d is not connected\n"

	.no_dead_strip	_ath10k_sdio_mbox_rx_process_packets
.subsections_via_symbols
