	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_hw_set_txq_props         ## -- Begin function ath9k_hw_set_txq_props
	.p2align	4, 0x90
_ath9k_hw_set_txq_props:                ## @ath9k_hw_set_txq_props
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_ath9k_hw_common
	movq	(%rbx), %r12
	movslq	%r15d, %rcx
	imulq	$88, %rcx, %rbx
	movq	(%r12,%rbx), %rcx
	movq	_ATH9K_TX_QUEUE_INACTIVE@GOTPCREL(%rip), %rdx
	movq	_QUEUE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	cmpq	(%rdx), %rcx
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdx
	movq	%rax, %rdi
	movl	%r15d, %ecx
	callq	_ath_dbg
	xorl	%eax, %eax
	jmp	LBB0_24
LBB0_2:
	leaq	L_.str.1(%rip), %rdx
	movq	%rax, %rdi
	movl	%r15d, %ecx
	callq	_ath_dbg
	movl	84(%r14), %eax
	movl	%eax, 84(%r12,%rbx)
	movl	8(%r14), %eax
	movl	%eax, 8(%r12,%rbx)
	movl	80(%r14), %eax
	movl	%eax, 80(%r12,%rbx)
	movl	76(%r14), %eax
	movl	%eax, 76(%r12,%rbx)
	movq	16(%r14), %rdi
	movq	_ATH9K_TXQ_USEDEFAULT@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rdi
	jne	LBB0_3
## %bb.4:
	movq	_INIT_AIFS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_5
LBB0_3:
	movl	$255, %esi
	callq	_min
LBB0_5:
	movq	%rax, 16(%r12,%rbx)
	movq	24(%r14), %rdi
	cmpq	(%r15), %rdi
	jne	LBB0_6
## %bb.25:
	movq	%rdi, 24(%r12,%rbx)
	jmp	LBB0_10
LBB0_6:
	movl	$1024, %esi                     ## imm = 0x400
	callq	_min
	leaq	(%r12,%rbx), %rcx
	addq	$24, %rcx
	movl	$1, %edx
	cmpq	$2, %rax
	jl	LBB0_9
## %bb.7:
	movl	$1, %edx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	addq	%rdx, %rdx
	incq	%rdx
	cmpq	%rax, %rdx
	jl	LBB0_8
LBB0_9:
	movq	%rdx, (%rcx)
LBB0_10:
	movq	32(%r14), %rdi
	cmpq	(%r15), %rdi
	jne	LBB0_11
## %bb.26:
	movq	_INIT_CWMAX@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%rax, 32(%r12,%rbx)
	jmp	LBB0_15
LBB0_11:
	movl	$1024, %esi                     ## imm = 0x400
	callq	_min
	leaq	(%r12,%rbx), %rcx
	addq	$32, %rcx
	movl	$1, %edx
	cmpq	$2, %rax
	jl	LBB0_14
## %bb.12:
	movl	$1, %edx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	addq	%rdx, %rdx
	incq	%rdx
	cmpq	%rax, %rdx
	jl	LBB0_13
LBB0_14:
	movq	%rdx, (%rcx)
LBB0_15:
	movq	40(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.16:
	movl	$15, %esi
	callq	_min
	jmp	LBB0_18
LBB0_17:
	movq	_INIT_SH_RETRY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_18:
	movq	%rax, 40(%r12,%rbx)
	movq	48(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.19:
	movl	$15, %esi
	callq	_min
	jmp	LBB0_21
LBB0_20:
	movq	_INIT_LG_RETRY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_21:
	movq	%rax, 48(%r12,%rbx)
	movups	60(%r14), %xmm0
	movups	%xmm0, 60(%r12,%rbx)
	movl	$1, %eax
	cmpl	$128, 8(%r14)
	jne	LBB0_24
## %bb.22:
	leaq	(%r12,%rbx), %rcx
	movq	(%rcx), %rcx
	movq	_ATH9K_TX_QUEUE_DATA@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_24
## %bb.23:
	movq	_ATH9K_TXQ_USE_LOCKOUT_BKOFF_DIS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 56(%r12,%rbx)
LBB0_24:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH9K_TX_QUEUE_INACTIVE,8,3    ## @ATH9K_TX_QUEUE_INACTIVE
	.comm	_QUEUE,4,2                      ## @QUEUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Set TXQ properties, inactive queue: %u\n"

L_.str.1:                               ## @.str.1
	.asciz	"Set queue properties for: %u\n"

	.comm	_ATH9K_TXQ_USEDEFAULT,8,3       ## @ATH9K_TXQ_USEDEFAULT
	.comm	_INIT_AIFS,8,3                  ## @INIT_AIFS
	.comm	_INIT_CWMAX,4,2                 ## @INIT_CWMAX
	.comm	_INIT_SH_RETRY,8,3              ## @INIT_SH_RETRY
	.comm	_INIT_LG_RETRY,8,3              ## @INIT_LG_RETRY
	.comm	_ATH9K_TX_QUEUE_DATA,8,3        ## @ATH9K_TX_QUEUE_DATA
	.comm	_ATH9K_TXQ_USE_LOCKOUT_BKOFF_DIS,4,2 ## @ATH9K_TXQ_USE_LOCKOUT_BKOFF_DIS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_hw_set_txq_props         ; -- Begin function ath9k_hw_set_txq_props
	.p2align	2
_ath9k_hw_set_txq_props:                ; @ath9k_hw_set_txq_props
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_ath9k_hw_common
	ldr	x21, [x21]
	mov	w8, #88
	smaddl	x22, w20, w8, x21
Lloh0:
	adrp	x8, _ATH9K_TX_QUEUE_INACTIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH9K_TX_QUEUE_INACTIVE@GOTPAGEOFF]
	ldr	x9, [x22]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x10, _QUEUE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _QUEUE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x10]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x20
	bl	_ath_dbg
	mov	w0, #0
	b	LBB0_28
LBB0_2:
	sxtw	x23, w20
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x3, x20
	bl	_ath_dbg
	ldr	w8, [x19, #84]
	mov	w9, #88
	madd	x9, x23, x9, x21
	str	w8, [x9, #84]
	ldr	w8, [x19, #8]
	str	w8, [x9, #8]
	ldur	d0, [x19, #76]
	stur	d0, [x9, #76]
	ldr	x0, [x19, #16]
Lloh10:
	adrp	x20, _ATH9K_TXQ_USEDEFAULT@GOTPAGE
Lloh11:
	ldr	x20, [x20, _ATH9K_TXQ_USEDEFAULT@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
Lloh12:
	adrp	x8, _INIT_AIFS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _INIT_AIFS@GOTPAGEOFF]
Lloh14:
	ldr	x0, [x8]
	b	LBB0_5
LBB0_4:
	mov	w1, #255
	bl	_min
LBB0_5:
	mov	w8, #88
	madd	x8, x23, x8, x21
	str	x0, [x8, #16]
	ldr	x0, [x19, #24]
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.6:
	mov	w8, #88
	madd	x8, x23, x8, x21
	str	x0, [x8, #24]
	b	LBB0_12
LBB0_7:
	mov	w1, #1024
	bl	_min
	mov	w8, #88
	madd	x8, x23, x8, x21
	add	x8, x8, #24
	cmp	x0, #2
	b.lt	LBB0_10
; %bb.8:
	mov	w10, #1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	w9, #1
	bfi	x9, x10, #1, #63
	mov	x10, x9
	cmp	x9, x0
	b.lt	LBB0_9
	b	LBB0_11
LBB0_10:
	mov	w9, #1
LBB0_11:
	str	x9, [x8]
LBB0_12:
	ldr	x0, [x19, #32]
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_15
; %bb.13:
Lloh15:
	adrp	x8, _INIT_CWMAX@GOTPAGE
Lloh16:
	ldr	x8, [x8, _INIT_CWMAX@GOTPAGEOFF]
Lloh17:
	ldrsw	x8, [x8]
	mov	w9, #88
	madd	x9, x23, x9, x21
	str	x8, [x9, #32]
	ldr	x0, [x19, #40]
	cbz	x0, LBB0_20
LBB0_14:
	mov	w1, #15
	bl	_min
	b	LBB0_21
LBB0_15:
	mov	w1, #1024
	bl	_min
	mov	w8, #88
	madd	x8, x23, x8, x21
	add	x8, x8, #32
	cmp	x0, #2
	b.lt	LBB0_18
; %bb.16:
	mov	w10, #1
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	mov	w9, #1
	bfi	x9, x10, #1, #63
	mov	x10, x9
	cmp	x9, x0
	b.lt	LBB0_17
	b	LBB0_19
LBB0_18:
	mov	w9, #1
LBB0_19:
	str	x9, [x8]
	ldr	x0, [x19, #40]
	cbnz	x0, LBB0_14
LBB0_20:
Lloh18:
	adrp	x8, _INIT_SH_RETRY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _INIT_SH_RETRY@GOTPAGEOFF]
Lloh20:
	ldr	x0, [x8]
LBB0_21:
	mov	w8, #88
	madd	x8, x23, x8, x21
	str	x0, [x8, #40]
	ldr	x0, [x19, #48]
	cbz	x0, LBB0_23
; %bb.22:
	mov	w1, #15
	bl	_min
	b	LBB0_24
LBB0_23:
Lloh21:
	adrp	x8, _INIT_LG_RETRY@GOTPAGE
Lloh22:
	ldr	x8, [x8, _INIT_LG_RETRY@GOTPAGEOFF]
Lloh23:
	ldr	x0, [x8]
LBB0_24:
	mov	w8, #88
	madd	x8, x23, x8, x21
	str	x0, [x8, #48]
	ldur	q0, [x19, #60]
	stur	q0, [x8, #60]
	ldr	w8, [x19, #8]
	cmp	w8, #128
	b.ne	LBB0_27
; %bb.25:
	ldr	x8, [x22]
Lloh24:
	adrp	x9, _ATH9K_TX_QUEUE_DATA@GOTPAGE
Lloh25:
	ldr	x9, [x9, _ATH9K_TX_QUEUE_DATA@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_27
; %bb.26:
Lloh27:
	adrp	x8, _ATH9K_TXQ_USE_LOCKOUT_BKOFF_DIS@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ATH9K_TXQ_USE_LOCKOUT_BKOFF_DIS@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	mov	w9, #88
	madd	x9, x23, x9, x21
	str	w8, [x9, #56]
LBB0_27:
	mov	w0, #1
LBB0_28:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH9K_TX_QUEUE_INACTIVE,8,3    ; @ATH9K_TX_QUEUE_INACTIVE
	.comm	_QUEUE,4,2                      ; @QUEUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Set TXQ properties, inactive queue: %u\n"

l_.str.1:                               ; @.str.1
	.asciz	"Set queue properties for: %u\n"

	.comm	_ATH9K_TXQ_USEDEFAULT,8,3       ; @ATH9K_TXQ_USEDEFAULT
	.comm	_INIT_AIFS,8,3                  ; @INIT_AIFS
	.comm	_INIT_CWMAX,4,2                 ; @INIT_CWMAX
	.comm	_INIT_SH_RETRY,8,3              ; @INIT_SH_RETRY
	.comm	_INIT_LG_RETRY,8,3              ; @INIT_LG_RETRY
	.comm	_ATH9K_TX_QUEUE_DATA,8,3        ; @ATH9K_TX_QUEUE_DATA
	.comm	_ATH9K_TXQ_USE_LOCKOUT_BKOFF_DIS,4,2 ; @ATH9K_TXQ_USE_LOCKOUT_BKOFF_DIS
.subsections_via_symbols
