	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath6kl_wmi_set_wmm_txop        ## -- Begin function ath6kl_wmi_set_wmm_txop
	.p2align	4, 0x90
_ath6kl_wmi_set_wmm_txop:               ## @ath6kl_wmi_set_wmm_txop
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_WMI_TXOP_DISABLED@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	je	LBB0_4
## %bb.1:
	movq	_WMI_TXOP_ENABLED@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	je	LBB0_4
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_4:
	movl	$4, %edi
	callq	_ath6kl_wmi_get_new_buf
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	(%rax), %rcx
	movl	%ebx, (%rcx)
	movq	_WMI_SET_WMM_TXOP_CMDID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_NO_SYNC_WMIFLAG@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	movq	%r15, %rdi
	movl	%r14d, %esi
	movq	%rax, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath6kl_wmi_cmd_send            ## TAILCALL
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WMI_TXOP_DISABLED,4,2          ## @WMI_TXOP_DISABLED
	.comm	_WMI_TXOP_ENABLED,4,2           ## @WMI_TXOP_ENABLED
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_WMI_SET_WMM_TXOP_CMDID,4,2     ## @WMI_SET_WMM_TXOP_CMDID
	.comm	_NO_SYNC_WMIFLAG,4,2            ## @NO_SYNC_WMIFLAG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath6kl_wmi_set_wmm_txop        ; -- Begin function ath6kl_wmi_set_wmm_txop
	.p2align	2
_ath6kl_wmi_set_wmm_txop:               ; @ath6kl_wmi_set_wmm_txop
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _WMI_TXOP_DISABLED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WMI_TXOP_DISABLED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _WMI_TXOP_ENABLED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WMI_TXOP_ENABLED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w2
	ccmp	w9, w2, #4, ne
	b.ne	LBB0_3
; %bb.1:
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	mov	w0, #4
	bl	_ath6kl_wmi_get_new_buf
	cbz	x0, LBB0_4
; %bb.2:
	mov	x2, x0
	ldr	x8, [x0]
	str	w21, [x8]
Lloh6:
	adrp	x8, _WMI_SET_WMM_TXOP_CMDID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WMI_SET_WMM_TXOP_CMDID@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
Lloh9:
	adrp	x8, _NO_SYNC_WMIFLAG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NO_SYNC_WMIFLAG@GOTPAGEOFF]
Lloh11:
	ldr	w4, [x8]
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ath6kl_wmi_cmd_send
LBB0_3:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_WMI_TXOP_DISABLED,4,2          ; @WMI_TXOP_DISABLED
	.comm	_WMI_TXOP_ENABLED,4,2           ; @WMI_TXOP_ENABLED
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_WMI_SET_WMM_TXOP_CMDID,4,2     ; @WMI_SET_WMM_TXOP_CMDID
	.comm	_NO_SYNC_WMIFLAG,4,2            ; @NO_SYNC_WMIFLAG
.subsections_via_symbols
