	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wl1251_hw_init_tx_queue_config
_wl1251_hw_init_tx_queue_config:        ## @wl1251_hw_init_tx_queue_config
	.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
	movq	%rdi, %r14
	movq	(%rdi), %r13
	movq	_DEBUG_ACX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wl1251_debug
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kzalloc
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	_MAX_NUM_OF_AC@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_2
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edx
	movl	%ebx, %edi
	movq	%r15, %rsi
	callq	_wl1251_hw_init_txq_fill
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	_ACX_TX_QUEUE_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	movl	$4, %ecx
	callq	_wl1251_cmd_configure
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=1
	incl	%ebx
	movq	_MAX_NUM_OF_AC@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jl	LBB0_7
	jmp	LBB0_3
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_10
LBB0_2:
                                        ## implicit-def: $r12d
LBB0_3:
	movq	_AC_BE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CWMIN_BE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_CWMAX_BE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_AIFS_DIFS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r8d
	movq	_TXOP_BE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r14, %rdi
	callq	_wl1251_acx_ac_cfg
	movq	_AC_BK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CWMIN_BK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_CWMAX_BK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%rbx), %r8d
	movq	_TXOP_BK@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r14, %rdi
	callq	_wl1251_acx_ac_cfg
	movq	_AC_VI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CWMIN_VI@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_CWMAX_VI@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%rbx), %r8d
	movq	_TXOP_VI@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r14, %rdi
	callq	_wl1251_acx_ac_cfg
	movq	_AC_VO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CWMIN_VO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_CWMAX_VO@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%rbx), %r8d
	movq	_TXOP_VO@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r14, %rdi
	callq	_wl1251_acx_ac_cfg
	jmp	LBB0_10
LBB0_8:
	movl	%eax, %r12d
LBB0_10:
	movq	%r15, %rdi
	callq	_kfree
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEBUG_ACX,4,2                  ## @DEBUG_ACX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"acx tx queue config"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MAX_NUM_OF_AC,4,2              ## @MAX_NUM_OF_AC
	.comm	_ACX_TX_QUEUE_CFG,4,2           ## @ACX_TX_QUEUE_CFG
	.comm	_AC_BE,4,2                      ## @AC_BE
	.comm	_CWMIN_BE,4,2                   ## @CWMIN_BE
	.comm	_CWMAX_BE,4,2                   ## @CWMAX_BE
	.comm	_AIFS_DIFS,4,2                  ## @AIFS_DIFS
	.comm	_TXOP_BE,4,2                    ## @TXOP_BE
	.comm	_AC_BK,4,2                      ## @AC_BK
	.comm	_CWMIN_BK,4,2                   ## @CWMIN_BK
	.comm	_CWMAX_BK,4,2                   ## @CWMAX_BK
	.comm	_TXOP_BK,4,2                    ## @TXOP_BK
	.comm	_AC_VI,4,2                      ## @AC_VI
	.comm	_CWMIN_VI,4,2                   ## @CWMIN_VI
	.comm	_CWMAX_VI,4,2                   ## @CWMAX_VI
	.comm	_TXOP_VI,4,2                    ## @TXOP_VI
	.comm	_AC_VO,4,2                      ## @AC_VO
	.comm	_CWMIN_VO,4,2                   ## @CWMIN_VO
	.comm	_CWMAX_VO,4,2                   ## @CWMAX_VO
	.comm	_TXOP_VO,4,2                    ## @TXOP_VO
	.no_dead_strip	_wl1251_hw_init_tx_queue_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wl1251_hw_init_tx_queue_config
_wl1251_hw_init_tx_queue_config:        ; @wl1251_hw_init_tx_queue_config
	.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	x20, x0
	ldr	x23, [x0]
Lloh0:
	adrp	x8, _DEBUG_ACX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEBUG_ACX@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wl1251_debug
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.1:
Lloh8:
	adrp	x24, _MAX_NUM_OF_AC@GOTPAGE
Lloh9:
	ldr	x24, [x24, _MAX_NUM_OF_AC@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.2:
	mov	w22, #0
Lloh10:
	adrp	x25, _ACX_TX_QUEUE_CFG@GOTPAGE
Lloh11:
	ldr	x25, [x25, _ACX_TX_QUEUE_CFG@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x23]
	mov	x0, x22
	mov	x1, x19
	bl	_wl1251_hw_init_txq_fill
	tbnz	w0, #31, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x25]
	mov	x0, x20
	mov	x2, x19
	mov	w3, #4
	bl	_wl1251_cmd_configure
	mov	x21, x0
	tbnz	w0, #31, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w22, w22, #1
	ldr	w8, [x24]
	cmp	w22, w8
	b.lt	LBB0_3
	b	LBB0_8
LBB0_6:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_10
LBB0_7:
                                        ; implicit-def: $w21
LBB0_8:
Lloh15:
	adrp	x8, _AC_BE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AC_BE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _CWMIN_BE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CWMIN_BE@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
Lloh21:
	adrp	x8, _CWMAX_BE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CWMAX_BE@GOTPAGEOFF]
Lloh23:
	ldr	w3, [x8]
Lloh24:
	adrp	x22, _AIFS_DIFS@GOTPAGE
Lloh25:
	ldr	x22, [x22, _AIFS_DIFS@GOTPAGEOFF]
	ldr	w4, [x22]
Lloh26:
	adrp	x8, _TXOP_BE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _TXOP_BE@GOTPAGEOFF]
Lloh28:
	ldr	w5, [x8]
	mov	x0, x20
	bl	_wl1251_acx_ac_cfg
Lloh29:
	adrp	x8, _AC_BK@GOTPAGE
Lloh30:
	ldr	x8, [x8, _AC_BK@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
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lloh62:
	adrp	x8, _TXOP_VO@GOTPAGE
Lloh63:
	ldr	x8, [x8, _TXOP_VO@GOTPAGEOFF]
Lloh64:
	ldr	w5, [x8]
	mov	x0, x20
	bl	_wl1251_acx_ac_cfg
	b	LBB0_10
LBB0_9:
	mov	x21, x0
LBB0_10:
	mov	x0, x19
	bl	_kfree
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh60
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh48
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh36
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_DEBUG_ACX,4,2                  ; @DEBUG_ACX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"acx tx queue config"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MAX_NUM_OF_AC,4,2              ; @MAX_NUM_OF_AC
	.comm	_ACX_TX_QUEUE_CFG,4,2           ; @ACX_TX_QUEUE_CFG
	.comm	_AC_BE,4,2                      ; @AC_BE
	.comm	_CWMIN_BE,4,2                   ; @CWMIN_BE
	.comm	_CWMAX_BE,4,2                   ; @CWMAX_BE
	.comm	_AIFS_DIFS,4,2                  ; @AIFS_DIFS
	.comm	_TXOP_BE,4,2                    ; @TXOP_BE
	.comm	_AC_BK,4,2                      ; @AC_BK
	.comm	_CWMIN_BK,4,2                   ; @CWMIN_BK
	.comm	_CWMAX_BK,4,2                   ; @CWMAX_BK
	.comm	_TXOP_BK,4,2                    ; @TXOP_BK
	.comm	_AC_VI,4,2                      ; @AC_VI
	.comm	_CWMIN_VI,4,2                   ; @CWMIN_VI
	.comm	_CWMAX_VI,4,2                   ; @CWMAX_VI
	.comm	_TXOP_VI,4,2                    ; @TXOP_VI
	.comm	_AC_VO,4,2                      ; @AC_VO
	.comm	_CWMIN_VO,4,2                   ; @CWMIN_VO
	.comm	_CWMAX_VO,4,2                   ; @CWMAX_VO
	.comm	_TXOP_VO,4,2                    ; @TXOP_VO
	.no_dead_strip	_wl1251_hw_init_tx_queue_config
.subsections_via_symbols
