	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath_edma_get_buffers
_ath_edma_get_buffers:                  ## @ath_edma_get_buffers
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %ebx
	movq	24(%rdi), %r13
	shlq	$2, %rbx
	addq	8(%rdi), %rbx
	movq	%r13, %rdi
	callq	_ath9k_hw_common
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_skb_peek
	movq	%rax, %r15
	xorl	%eax, %eax
	testq	%r15, %r15
	je	LBB0_8
## %bb.1:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_SKB_CB_ATHBUF
	movq	%rax, %r14
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_BUG_ON
	movl	16(%r12), %edi
	movl	4(%r14), %esi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_sync_single_for_cpu
	movl	(%r15), %edx
	movq	%r13, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_ath9k_hw_process_rxdesc_edma
	movl	%eax, %r13d
	movq	_EINPROGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r13d, %eax
	jne	LBB0_3
## %bb.2:
	movl	16(%r12), %edi
	movl	4(%r14), %esi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_sync_single_for_device
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_3:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	___skb_unlink
	movq	_EINVAL@GOTPCREL(%rip), %rax
	addl	(%rax), %r13d
	jne	LBB0_7
## %bb.4:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_list_add_tail
	movq	%r12, %rdi
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %esi
	callq	_ath_rx_edma_buf_link
	movq	%rbx, %rdi
	callq	_skb_peek
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_SKB_CB_ATHBUF
	movq	%rax, %r15
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_BUG_ON
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	___skb_unlink
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_list_add_tail
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_ath_rx_edma_buf_link
LBB0_6:
	xorl	%r14d, %r14d
LBB0_7:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%r14, (%rax)
	movl	$1, %eax
LBB0_8:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_EINPROGRESS,4,2                ## @EINPROGRESS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ath_edma_get_buffers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath_edma_get_buffers
_ath_edma_get_buffers:                  ; @ath_edma_get_buffers
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x3
	mov	x25, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x22, [x0, #8]
	ldr	x27, [x0, #24]
	mov	x0, x27
	bl	_ath9k_hw_common
	mov	x24, x0
	add	x22, x22, w20, uxtw #2
	mov	x0, x22
	bl	_skb_peek
	cbz	x0, LBB0_7
; %bb.1:
	mov	x26, x0
	bl	_SKB_CB_ATHBUF
	mov	x23, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	w0, [x21, #16]
	ldr	w1, [x23, #4]
	ldr	w2, [x24]
Lloh0:
	adrp	x28, _DMA_FROM_DEVICE@GOTPAGE
Lloh1:
	ldr	x28, [x28, _DMA_FROM_DEVICE@GOTPAGEOFF]
	ldr	w3, [x28]
	bl	_dma_sync_single_for_cpu
	ldr	w2, [x26]
	mov	x0, x27
	mov	x1, x25
	bl	_ath9k_hw_process_rxdesc_edma
Lloh2:
	adrp	x8, _EINPROGRESS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINPROGRESS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_3
; %bb.2:
	ldr	w0, [x21, #16]
	ldr	w1, [x23, #4]
	ldr	w2, [x24]
	ldr	w3, [x28]
	bl	_dma_sync_single_for_device
	mov	w0, #0
	b	LBB0_7
LBB0_3:
	mov	x25, x0
	mov	x0, x26
	mov	x1, x22
	bl	___skb_unlink
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmn	w25, w8
	b.ne	LBB0_6
; %bb.4:
	mov	x0, x23
	mov	x1, x21
	bl	_list_add_tail
	mov	x0, x21
	mov	x1, x20
	bl	_ath_rx_edma_buf_link
	mov	x0, x22
	bl	_skb_peek
	mov	x23, x0
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x23
	bl	_SKB_CB_ATHBUF
	mov	x24, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_BUG_ON
	mov	x0, x23
	mov	x1, x22
	bl	___skb_unlink
	mov	x0, x24
	mov	x1, x21
	bl	_list_add_tail
	mov	x0, x21
	mov	x1, x20
	bl	_ath_rx_edma_buf_link
	mov	x23, #0
LBB0_6:
	str	x23, [x19]
	mov	w0, #1
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_EINPROGRESS,4,2                ; @EINPROGRESS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ath_edma_get_buffers
.subsections_via_symbols
