	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath5k_hw_init_queues           ## -- Begin function ath5k_hw_init_queues
	.p2align	4, 0x90
_ath5k_hw_init_queues:                  ## @ath5k_hw_init_queues
	.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, %r14
	movq	(%rdi), %rax
	movq	_AR5K_AR5210@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.6:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_ath5k_hw_set_tx_retry_limits
	jmp	LBB0_7
LBB0_1:
	cmpl	$0, 20(%r14)
	jle	LBB0_7
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_ath5k_hw_reset_tx_queue
	testl	%eax, %eax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	cmpl	20(%r14), %ebx
	jl	LBB0_3
LBB0_7:
	movq	8(%r14), %rax
	movq	_AR5K_BWMODE_40MHZ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	movq	_AR5K_DCU_GBL_IFS_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR5K_DCU_GBL_IFS_MISC_TURBO_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_AR5K_REG_ENABLE_BITS
LBB0_9:
	xorl	%r15d, %r15d
	cmpl	$0, 16(%r14)
	jne	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	callq	_ath5k_hw_get_default_slottime
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_ath5k_hw_set_ifs_intervals
	jmp	LBB0_11
LBB0_4:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_ATH5K_ERR
LBB0_11:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR5K_AR5210,8,3                ## @AR5K_AR5210
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to reset TX queue #%d\n"

	.comm	_AR5K_BWMODE_40MHZ,8,3          ## @AR5K_BWMODE_40MHZ
	.comm	_AR5K_DCU_GBL_IFS_MISC,4,2      ## @AR5K_DCU_GBL_IFS_MISC
	.comm	_AR5K_DCU_GBL_IFS_MISC_TURBO_MODE,4,2 ## @AR5K_DCU_GBL_IFS_MISC_TURBO_MODE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath5k_hw_init_queues           ; -- Begin function ath5k_hw_init_queues
	.p2align	2
_ath5k_hw_init_queues:                  ; @ath5k_hw_init_queues
	.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
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _AR5K_AR5210@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AR5K_AR5210@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #0
	bl	_ath5k_hw_set_tx_retry_limits
	b	LBB0_6
LBB0_2:
	ldr	w8, [x19, #20]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.3:
	mov	w20, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_ath5k_hw_reset_tx_queue
	cbnz	w0, LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w20, w20, #1
	ldr	w8, [x19, #20]
	cmp	w20, w8
	b.lt	LBB0_4
LBB0_6:
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _AR5K_BWMODE_40MHZ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AR5K_BWMODE_40MHZ@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
Lloh6:
	adrp	x8, _AR5K_DCU_GBL_IFS_MISC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AR5K_DCU_GBL_IFS_MISC@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _AR5K_DCU_GBL_IFS_MISC_TURBO_MODE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AR5K_DCU_GBL_IFS_MISC_TURBO_MODE@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_AR5K_REG_ENABLE_BITS
LBB0_8:
	ldr	w8, [x19, #16]
	cbnz	w8, LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_ath5k_hw_get_default_slottime
	mov	x1, x0
	mov	x0, x19
	bl	_ath5k_hw_set_ifs_intervals
LBB0_10:
	mov	w21, #0
LBB0_11:
	mov	x0, x21
	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_12:
	mov	x21, x0
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_ATH5K_ERR
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_AR5K_AR5210,8,3                ; @AR5K_AR5210
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to reset TX queue #%d\n"

	.comm	_AR5K_BWMODE_40MHZ,8,3          ; @AR5K_BWMODE_40MHZ
	.comm	_AR5K_DCU_GBL_IFS_MISC,4,2      ; @AR5K_DCU_GBL_IFS_MISC
	.comm	_AR5K_DCU_GBL_IFS_MISC_TURBO_MODE,4,2 ; @AR5K_DCU_GBL_IFS_MISC_TURBO_MODE
.subsections_via_symbols
