	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee80211_set_txq_params
_ieee80211_set_txq_params:              ## @ieee80211_set_txq_params
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	callq	_wiphy_priv
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_IEEE80211_DEV_TO_SUB_IF
	movq	%rax, %r12
	movq	16(%r15), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movq	(%r15), %rax
	movq	_IEEE80211_NUM_ACS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_3
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_3:
	leaq	-64(%rbp), %r13
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$20, %edx
	callq	_memset
	movups	8(%r14), %xmm0
	movups	%xmm0, -60(%rbp)
	movl	$0, -64(%rbp)
	movq	(%r12), %rax
	movq	(%r14), %rcx
	leaq	(%rcx,%rcx,4), %rcx
	movl	-48(%rbp), %edx
	movl	%edx, 16(%rax,%rcx,4)
	movups	-64(%rbp), %xmm0
	movups	%xmm0, (%rax,%rcx,4)
	movq	(%r14), %rdx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r13, %rcx
	callq	_drv_conf_tx
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	8(%r15), %edi
	movq	(%r14), %rdx
	leaq	L_.str(%rip), %rsi
	callq	_wiphy_debug
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_5:
	movq	_BSS_CHANGED_QOS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_ieee80211_bss_info_change_notify
LBB0_6:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_IEEE80211_NUM_ACS,8,3          ## @IEEE80211_NUM_ACS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to set TX queue parameters for AC %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_BSS_CHANGED_QOS,4,2            ## @BSS_CHANGED_QOS
	.no_dead_strip	_ieee80211_set_txq_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee80211_set_txq_params
_ieee80211_set_txq_params:              ; @ieee80211_set_txq_params
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x2
	mov	x21, x1
	bl	_wiphy_priv
	mov	x20, x0
	mov	x0, x21
	bl	_IEEE80211_DEV_TO_SUB_IF
	ldr	x8, [x20, #16]
	ldr	w8, [x8]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _IEEE80211_NUM_ACS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_NUM_ACS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
	mov	x21, x0
	mov	w22, #20
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #20
	bl	_memset
	ldur	q0, [x19, #8]
	stur	q0, [sp, #12]
	str	wzr, [sp, #8]
	ldr	x8, [x21]
	ldr	x9, [x19]
	madd	x8, x9, x22, x8
	ldur	q0, [sp, #8]
	ldr	w9, [sp, #24]
	str	w9, [x8, #16]
	str	q0, [x8]
	ldr	x2, [x19]
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, x21
	bl	_drv_conf_tx
	cbz	x0, LBB0_7
; %bb.4:
	ldr	w0, [x20, #8]
	ldr	x2, [x19]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wiphy_debug
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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
	add	sp, sp, #80
	ret
LBB0_7:
Lloh9:
	adrp	x8, _BSS_CHANGED_QOS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BSS_CHANGED_QOS@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_ieee80211_bss_info_change_notify
	mov	w0, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_IEEE80211_NUM_ACS,8,3          ; @IEEE80211_NUM_ACS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to set TX queue parameters for AC %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_BSS_CHANGED_QOS,4,2            ; @BSS_CHANGED_QOS
	.no_dead_strip	_ieee80211_set_txq_params
.subsections_via_symbols
