	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath5k_hw_dma_init              ## -- Begin function ath5k_hw_dma_init
	.p2align	4, 0x90
_ath5k_hw_dma_init:                     ## @ath5k_hw_dma_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	_AR5K_AR5210@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	je	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	movq	_AR5K_TXCFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR5K_TXCFG_SDMAMR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_AR5K_DMASIZE_128B@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	callq	_AR5K_REG_WRITE_BITS
	movq	_AR5K_RXCFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR5K_RXCFG_SDMAMW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r15), %ecx
	movq	%rbx, %rdi
	callq	_AR5K_REG_WRITE_BITS
	movq	(%rbx), %rax
	cmpq	(%r14), %rax
	jne	LBB0_3
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	8(%rbx), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath5k_hw_set_imr               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AR5K_AR5210,8,3                ## @AR5K_AR5210
	.comm	_AR5K_TXCFG,4,2                 ## @AR5K_TXCFG
	.comm	_AR5K_TXCFG_SDMAMR,4,2          ## @AR5K_TXCFG_SDMAMR
	.comm	_AR5K_DMASIZE_128B,4,2          ## @AR5K_DMASIZE_128B
	.comm	_AR5K_RXCFG,4,2                 ## @AR5K_RXCFG
	.comm	_AR5K_RXCFG_SDMAMW,4,2          ## @AR5K_RXCFG_SDMAMW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath5k_hw_dma_init              ; -- Begin function ath5k_hw_dma_init
	.p2align	2
_ath5k_hw_dma_init:                     ; @ath5k_hw_dma_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x20, _AR5K_AR5210@GOTPAGE
Lloh1:
	ldr	x20, [x20, _AR5K_AR5210@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x8, _AR5K_TXCFG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AR5K_TXCFG@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _AR5K_TXCFG_SDMAMR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AR5K_TXCFG_SDMAMR@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x21, _AR5K_DMASIZE_128B@GOTPAGE
Lloh9:
	ldr	x21, [x21, _AR5K_DMASIZE_128B@GOTPAGEOFF]
	ldr	w3, [x21]
	bl	_AR5K_REG_WRITE_BITS
Lloh10:
	adrp	x8, _AR5K_RXCFG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AR5K_RXCFG@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x8, _AR5K_RXCFG_SDMAMW@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AR5K_RXCFG_SDMAMW@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	ldr	w3, [x21]
	mov	x0, x19
	bl	_AR5K_REG_WRITE_BITS
	ldr	x8, [x19]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	w1, [x19, #8]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ath5k_hw_set_imr
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AR5K_AR5210,8,3                ; @AR5K_AR5210
	.comm	_AR5K_TXCFG,4,2                 ; @AR5K_TXCFG
	.comm	_AR5K_TXCFG_SDMAMR,4,2          ; @AR5K_TXCFG_SDMAMR
	.comm	_AR5K_DMASIZE_128B,4,2          ; @AR5K_DMASIZE_128B
	.comm	_AR5K_RXCFG,4,2                 ; @AR5K_RXCFG
	.comm	_AR5K_RXCFG_SDMAMW,4,2          ; @AR5K_RXCFG_SDMAMW
.subsections_via_symbols
