	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cw1200_conf_tx                 ## -- Begin function cw1200_conf_tx
	.p2align	4, 0x90
_cw1200_conf_tx:                        ## @cw1200_conf_tx
	.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	%rcx, %r15
	movq	%rdx, %r14
	movq	%rdi, %rbx
	movq	8(%rdi), %r12
	leaq	16(%r12), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	cmpq	%r14, (%rbx)
	jbe	LBB0_3
## %bb.1:
	movl	24(%r12), %edi
	callq	_le16_to_cpu
	movl	%eax, %ebx
	leaq	48(%r12), %rdi
	xorl	%r13d, %r13d
	movq	%r14, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_WSM_TX_QUEUE_SET
	leaq	(,%r14,4), %rsi
	addq	48(%r12), %rsi
	movq	%r12, %rdi
	movq	%r14, %rdx
	callq	_wsm_set_tx_queue_params
	testl	%eax, %eax
	je	LBB0_6
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
LBB0_4:
	subl	(%rax), %r13d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_5:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	leaq	40(%r12), %r13
	movl	16(%r15), %edx
	movl	12(%r15), %ecx
	movl	8(%r15), %r8d
	movl	(%r15), %eax
	movl	4(%r15), %r9d
	movq	%r13, %rdi
	movq	%r14, %rsi
	pushq	%rax
	pushq	$200
	callq	_WSM_EDCA_SET
	addq	$16, %rsp
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_wsm_set_edca_params
	testl	%eax, %eax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_8
## %bb.7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_5
LBB0_8:
	movq	(%r12), %rax
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.9:
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_cw1200_set_uapsd_param
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.10:
	cmpq	$0, 32(%r12)
	je	LBB0_14
## %bb.11:
	movq	8(%r12), %rax
	movq	_CW1200_JOIN_STATUS_STA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.12:
	movl	24(%r12), %edi
	callq	_le16_to_cpu
	movl	$0, %r13d
	cmpl	%eax, -52(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_5
## %bb.13:
	leaq	20(%r12), %rsi
	movq	%r12, %rdi
	callq	_cw1200_set_pm
	movl	%eax, %r13d
	jmp	LBB0_5
LBB0_14:
	xorl	%r13d, %r13d
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NL80211_IFTYPE_STATION,8,3     ## @NL80211_IFTYPE_STATION
	.comm	_CW1200_JOIN_STATUS_STA,8,3     ## @CW1200_JOIN_STATUS_STA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cw1200_conf_tx                 ; -- Begin function cw1200_conf_tx
	.p2align	2
_cw1200_conf_tx:                        ; @cw1200_conf_tx
	.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	x23, x3
	mov	x22, x2
	mov	x21, x0
	ldr	x20, [x0, #8]
	add	x19, x20, #16
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x21]
	cmp	x8, x22
	b.ls	LBB0_3
; %bb.1:
	ldr	w0, [x20, #24]
	bl	_le16_to_cpu
	mov	x21, x0
	add	x0, x20, #48
	mov	x1, x22
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_WSM_TX_QUEUE_SET
	ldr	x8, [x20, #48]
	add	x1, x8, x22, lsl #2
	mov	x0, x20
	mov	x2, x22
	bl	_wsm_set_tx_queue_params
	cbnz	w0, LBB0_3
; %bb.2:
	add	x24, x20, #40
	ldp	w3, w2, [x23, #12]
	ldp	w5, w4, [x23, #4]
	ldr	w7, [x23]
	mov	x0, x24
	mov	x1, x22
	mov	w6, #200
	bl	_WSM_EDCA_SET
	mov	x0, x20
	mov	x1, x24
	bl	_wsm_set_edca_params
	cbz	w0, LBB0_5
LBB0_3:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_4:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x22
	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
LBB0_5:
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.6:
	mov	x0, x20
	mov	x1, x24
	bl	_cw1200_set_uapsd_param
	mov	x22, x0
	cbnz	w0, LBB0_4
; %bb.7:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_10
; %bb.8:
	ldr	x8, [x20, #8]
Lloh6:
	adrp	x9, _CW1200_JOIN_STATUS_STA@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CW1200_JOIN_STATUS_STA@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
	ldr	w0, [x20, #24]
	bl	_le16_to_cpu
	cmp	w21, w0
	b.ne	LBB0_11
LBB0_10:
	mov	w22, #0
	b	LBB0_4
LBB0_11:
	add	x1, x20, #20
	mov	x0, x20
	bl	_cw1200_set_pm
	mov	x22, x0
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NL80211_IFTYPE_STATION,8,3     ; @NL80211_IFTYPE_STATION
	.comm	_CW1200_JOIN_STATUS_STA,8,3     ; @CW1200_JOIN_STATUS_STA
.subsections_via_symbols
