	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_conf_tx
_ath10k_conf_tx:                        ## @ath10k_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, %r12
	movl	%edx, %r14d
	movq	(%rdi), %r13
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %r15
	movq	%r13, %rdi
	callq	_mutex_lock
	leal	-128(%r14), %eax
	cmpl	$3, %eax
	ja	LBB0_1
## %bb.2:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_3:
	leaq	48(%r15), %rbx
	jmp	LBB0_7
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_4:
	leaq	32(%r15), %rbx
	jmp	LBB0_7
LBB0_6:
	movq	%r15, %rbx
	jmp	LBB0_7
LBB0_5:
	leaq	16(%r15), %rbx
LBB0_7:
	xorl	%edi, %edi
	testq	%rbx, %rbx
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_18
LBB0_9:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	16(%r12), %eax
	movl	%eax, 12(%rbx)
	movl	12(%r12), %eax
	movl	%eax, 8(%rbx)
	movl	8(%r12), %eax
	movl	%eax, 4(%rbx)
	movl	(%r12), %eax
	shll	$5, %eax
	movl	%eax, (%rbx)
	movq	8(%r13), %rax
	cmpq	$0, (%rax)
	je	LBB0_12
## %bb.10:
	movl	64(%r15), %esi
	movq	%r13, %rdi
	movq	%r15, %rdx
	callq	_ath10k_wmi_vdev_wmm_conf
	testl	%eax, %eax
	je	LBB0_14
## %bb.11:
	movl	%eax, %r14d
	movl	64(%r15), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_ath10k_warn
	jmp	LBB0_18
LBB0_12:
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_ath10k_wmi_pdev_set_wmm_params
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_17
LBB0_14:
	movl	4(%r12), %ecx
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_ath10k_conf_tx_uapsd
	testl	%eax, %eax
	je	LBB0_15
## %bb.16:
	movl	%eax, %r14d
	leaq	L_.str.2(%rip), %rsi
LBB0_17:
	movq	%r13, %rdi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_ath10k_warn
	jmp	LBB0_18
LBB0_15:
	xorl	%r14d, %r14d
LBB0_18:
	movq	%r13, %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_6
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to set vdev wmm params on vdev %i: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to set wmm params: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to set sta uapsd: %d\n"

	.no_dead_strip	_ath10k_conf_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_conf_tx
_ath10k_conf_tx:                        ; @ath10k_conf_tx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x22, x3
	mov	x20, x2
	mov	x21, x1
	ldr	x19, [x0]
	ldr	x23, [x1]
	mov	x0, x19
	bl	_mutex_lock
	sub	w8, w20, #128
	cmp	w8, #3
	b.hi	LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	add	x24, x23, #48
	b	LBB0_7
LBB0_3:
	mov	x24, #0
	b	LBB0_7
LBB0_4:
	add	x24, x23, #32
	b	LBB0_7
LBB0_5:
	mov	x24, x23
	b	LBB0_7
LBB0_6:
	add	x24, x23, #16
LBB0_7:
	cmp	x24, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_9
; %bb.8:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_18
LBB0_9:
	ldr	w8, [x22, #16]
	str	w8, [x24, #12]
	ldr	d0, [x22, #8]
	stur	d0, [x24, #4]
	ldr	w8, [x22]
	lsl	w8, w8, #5
	str	w8, [x24]
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_12
; %bb.10:
	ldr	w1, [x23, #64]
	mov	x0, x19
	mov	x2, x23
	bl	_ath10k_wmi_vdev_wmm_conf
	cbz	w0, LBB0_14
; %bb.11:
	mov	x24, x0
	ldr	w2, [x23, #64]
	str	x24, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	b	LBB0_17
LBB0_12:
	mov	x0, x19
	mov	x1, x23
	bl	_ath10k_wmi_pdev_set_wmm_params
	cbz	w0, LBB0_14
; %bb.13:
	mov	x24, x0
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_16
LBB0_14:
	ldr	w3, [x22, #4]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_ath10k_conf_tx_uapsd
	mov	x24, x0
	cbz	w0, LBB0_18
; %bb.15:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_16:
	mov	x0, x19
	mov	x2, x24
LBB0_17:
	bl	_ath10k_warn
LBB0_18:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x24
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to set vdev wmm params on vdev %i: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to set wmm params: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to set sta uapsd: %d\n"

	.no_dead_strip	_ath10k_conf_tx
.subsections_via_symbols
