	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath_rx_edma_init
_ath_rx_edma_init:                      ## @ath_rx_edma_init
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	24(%rdi), %rdi
	callq	_ath9k_hw_common
	movq	%rax, %r15
	movq	24(%r14), %rbx
	movq	(%rax), %rsi
	subq	8(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_ath9k_hw_set_rx_bufsize
	movq	_ATH9K_RX_QUEUE_LP@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	shlq	$2, %rdi
	addq	8(%r14), %rdi
	movl	4(%rbx), %esi
	callq	_ath_rx_edma_init_queue
	movq	_ATH9K_RX_QUEUE_HP@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	shlq	$2, %rdi
	addq	8(%r14), %rdi
	movl	(%rbx), %esi
	callq	_ath_rx_edma_init_queue
	leal	(,%r12,8), %eax
	leal	(%rax,%rax,2), %esi
	movl	16(%r14), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	%r14, %rdi
	callq	_INIT_LIST_HEAD
	testl	%r12d, %r12d
	jle	LBB0_8
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rsi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_ath_rxbuf_alloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rbx
	movl	(%rax), %edi
	movq	(%r15), %rdx
	xorl	%esi, %esi
	callq	_memset
	movq	%rbx, 16(%r13)
	movl	16(%r14), %edi
	movl	(%rbx), %esi
	movq	(%r15), %rdx
	movq	_DMA_BIDIRECTIONAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_map_single
	movq	%rax, 8(%r13)
	movl	16(%r14), %edi
	movq	%rax, %rsi
	callq	_dma_mapping_error
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_list_add_tail
	addq	$24, %r13
	decl	%r12d
	jne	LBB0_3
LBB0_8:
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_5:
	movq	%rbx, %rdi
	callq	_dev_kfree_skb_any
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r13)
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_ath_err
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_ath_rx_edma_cleanup
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH9K_RX_QUEUE_LP,8,3          ## @ATH9K_RX_QUEUE_LP
	.comm	_ATH9K_RX_QUEUE_HP,8,3          ## @ATH9K_RX_QUEUE_HP
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DMA_BIDIRECTIONAL,4,2          ## @DMA_BIDIRECTIONAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dma_mapping_error() on RX init\n"

	.no_dead_strip	_ath_rx_edma_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath_rx_edma_init
_ath_rx_edma_init:                      ; @ath_rx_edma_init
	.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, x1
	mov	x19, x0
	ldr	x0, [x0, #24]
	bl	_ath9k_hw_common
	mov	x20, x0
	ldr	x22, [x19, #24]
	ldr	x8, [x0]
	ldr	x9, [x22, #8]
	sub	x1, x8, x9
	mov	x0, x22
	bl	_ath9k_hw_set_rx_bufsize
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _ATH9K_RX_QUEUE_LP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ATH9K_RX_QUEUE_LP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x8, x9, lsl #2
	ldr	w1, [x22, #4]
	bl	_ath_rx_edma_init_queue
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _ATH9K_RX_QUEUE_HP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ATH9K_RX_QUEUE_HP@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x0, x8, x9, lsl #2
	ldr	w1, [x22]
	bl	_ath_rx_edma_init_queue
	add	w8, w21, w21, lsl #1
	lsl	w1, w8, #3
	ldr	w0, [x19, #16]
Lloh6:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x24]
	bl	_devm_kzalloc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x22, x0
	mov	x0, x19
	bl	_INIT_LIST_HEAD
	cmp	w21, #1
	b.lt	LBB0_6
; %bb.2:
Lloh8:
	adrp	x25, _DMA_BIDIRECTIONAL@GOTPAGE
Lloh9:
	ldr	x25, [x25, _DMA_BIDIRECTIONAL@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x20]
	ldr	w2, [x24]
	mov	x0, x20
	bl	_ath_rxbuf_alloc
	cbz	x0, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x23, x0
	ldr	w0, [x0]
	ldr	x2, [x20]
	mov	w1, #0
	bl	_memset
	str	x23, [x22, #16]
	ldr	w0, [x19, #16]
	ldr	w1, [x23]
	ldr	x2, [x20]
	ldr	w3, [x25]
	bl	_dma_map_single
	mov	x1, x0
	str	x0, [x22, #8]
	ldr	w0, [x19, #16]
	bl	_dma_mapping_error
	bl	_unlikely
	cbnz	x0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	mov	x1, x19
	bl	_list_add_tail
	add	x22, x22, #24
	subs	w21, w21, #1
	b.ne	LBB0_3
LBB0_6:
	mov	w20, #0
	b	LBB0_10
LBB0_7:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_10
LBB0_8:
	mov	x0, x23
	bl	_dev_kfree_skb_any
	stp	xzr, xzr, [x22, #8]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_ath_err
LBB0_9:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w20, w8
	mov	x0, x19
	bl	_ath_rx_edma_cleanup
LBB0_10:
	mov	x0, x20
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH9K_RX_QUEUE_LP,8,3          ; @ATH9K_RX_QUEUE_LP
	.comm	_ATH9K_RX_QUEUE_HP,8,3          ; @ATH9K_RX_QUEUE_HP
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DMA_BIDIRECTIONAL,4,2          ; @DMA_BIDIRECTIONAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dma_mapping_error() on RX init\n"

	.no_dead_strip	_ath_rx_edma_init
.subsections_via_symbols
