	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function il4965_tx_cmd_build_basic
_il4965_tx_cmd_build_basic:             ## @il4965_tx_cmd_build_basic
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r13
	movl	4(%r8), %r15d
	movl	(%rdx), %eax
	movq	_TX_CMD_LIFE_TIME_INFINITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%ecx, 40(%rdx)
	movq	_IEEE80211_TX_CTL_NO_ACK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_TX_CMD_FLG_ACK_MSK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r12d
	testl	%ecx, (%r13)
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.6:
	notl	%r12d
	andl	%r12d, %eax
	movq	_TX_CMD_FLG_SEQ_CTL_MSK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, -44(%rbp)
	movl	%eax, %r12d
LBB0_7:
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	movq	_TX_CMD_FLG_ACK_MSK@GOTPCREL(%rip), %r13
	movl	%r15d, %ebx
	movl	%r15d, %edi
	callq	_ieee80211_is_back_req
	movq	_TX_CMD_FLG_IMM_BA_RSP_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	orl	(%r13), %r15d
	xorl	%r13d, %r13d
	testq	%rax, %rax
	cmovel	%r13d, %r15d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, 4(%rax)
	movl	%ebx, %edi
	callq	_ieee80211_has_morefrags
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_TX_CMD_FLG_MORE_FRAG_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_9:
	orl	%r13d, %r15d
	orl	%r15d, %r12d
	movl	%ebx, %edi
	callq	_ieee80211_is_data_qos
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_ieee80211_get_qos_ctl
	movl	(%rax), %eax
	andl	$15, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 8(%rcx)
	movq	_TX_CMD_FLG_SEQ_CTL_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r12d
	jmp	LBB0_12
LBB0_1:
	movq	%r8, %rbx
	orl	%eax, %r12d
	movl	%r15d, %edi
	callq	_ieee80211_is_mgmt
	xorl	%ecx, %ecx
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_TX_CMD_FLG_SEQ_CTL_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_3:
	orl	%ecx, %r12d
	movl	%r15d, %edi
	callq	_ieee80211_is_probe_resp
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movl	(%rbx), %edi
	callq	_le16_to_cpu
	testb	$15, %al
	jne	LBB0_7
## %bb.5:
	movq	_TX_CMD_FLG_TSF_MSK@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movl	%r12d, -44(%rbp)
	jmp	LBB0_7
LBB0_11:
	movq	_TX_CMD_FLG_SEQ_CTL_MSK@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
LBB0_12:
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, -44(%rbp)
	leaq	-44(%rbp), %rcx
	movl	%ebx, %edx
	callq	_il_tx_cmd_protection
	movq	_TX_CMD_FLG_ANT_SEL_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, -44(%rbp)
	movl	%ebx, %edi
	callq	_ieee80211_is_mgmt
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movl	%ebx, %edi
	callq	_ieee80211_is_assoc_req
	movl	$3, %edi
	testq	%rax, %rax
	jne	LBB0_16
## %bb.15:
	movl	%ebx, %edi
	callq	_ieee80211_is_reassoc_req
	cmpq	$1, %rax
	movl	$3, %edi
	sbbl	$0, %edi
LBB0_16:
	callq	_cpu_to_le16
	jmp	LBB0_17
LBB0_13:
	xorl	%eax, %eax
LBB0_17:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 32(%rcx)
	movl	-44(%rbp), %eax
	movl	%eax, (%rcx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rcx)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TX_CMD_LIFE_TIME_INFINITE,4,2  ## @TX_CMD_LIFE_TIME_INFINITE
	.comm	_IEEE80211_TX_CTL_NO_ACK,4,2    ## @IEEE80211_TX_CTL_NO_ACK
	.comm	_TX_CMD_FLG_ACK_MSK,4,2         ## @TX_CMD_FLG_ACK_MSK
	.comm	_TX_CMD_FLG_SEQ_CTL_MSK,4,2     ## @TX_CMD_FLG_SEQ_CTL_MSK
	.comm	_TX_CMD_FLG_TSF_MSK,4,2         ## @TX_CMD_FLG_TSF_MSK
	.comm	_TX_CMD_FLG_IMM_BA_RSP_MASK,4,2 ## @TX_CMD_FLG_IMM_BA_RSP_MASK
	.comm	_TX_CMD_FLG_MORE_FRAG_MSK,4,2   ## @TX_CMD_FLG_MORE_FRAG_MSK
	.comm	_TX_CMD_FLG_ANT_SEL_MSK,4,2     ## @TX_CMD_FLG_ANT_SEL_MSK
	.no_dead_strip	_il4965_tx_cmd_build_basic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function il4965_tx_cmd_build_basic
_il4965_tx_cmd_build_basic:             ; @il4965_tx_cmd_build_basic
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x24, x5
	mov	x23, x4
	mov	x21, x3
	mov	x19, x2
	mov	x22, x0
	ldr	w20, [x4, #4]
	ldr	w8, [x2]
Lloh0:
	adrp	x9, _TX_CMD_LIFE_TIME_INFINITE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TX_CMD_LIFE_TIME_INFINITE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	str	w9, [x2, #40]
	ldr	w10, [x3]
Lloh3:
	adrp	x9, _IEEE80211_TX_CTL_NO_ACK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEEE80211_TX_CTL_NO_ACK@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x9]
Lloh6:
	adrp	x26, _TX_CMD_FLG_ACK_MSK@GOTPAGE
Lloh7:
	ldr	x26, [x26, _TX_CMD_FLG_ACK_MSK@GOTPAGEOFF]
	ldr	w9, [x26]
Lloh8:
	adrp	x25, _TX_CMD_FLG_SEQ_CTL_MSK@GOTPAGE
Lloh9:
	ldr	x25, [x25, _TX_CMD_FLG_SEQ_CTL_MSK@GOTPAGEOFF]
	tst	w11, w10
	b.eq	LBB0_5
; %bb.1:
	bic	w8, w8, w9
	ldr	w9, [x25]
	orr	w27, w9, w8
LBB0_2:
	str	w27, [sp, #12]
LBB0_3:
	mov	x0, x20
	bl	_ieee80211_is_back_req
	ldr	w8, [x26]
Lloh10:
	adrp	x9, _TX_CMD_FLG_IMM_BA_RSP_MASK@GOTPAGE
Lloh11:
	ldr	x9, [x9, _TX_CMD_FLG_IMM_BA_RSP_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w9, w8
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w26, w27, w8
	str	w24, [x19, #4]
	mov	x0, x20
	bl	_ieee80211_has_morefrags
Lloh13:
	adrp	x8, _TX_CMD_FLG_MORE_FRAG_MSK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TX_CMD_FLG_MORE_FRAG_MSK@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w24, w26, w8
	mov	x0, x20
	bl	_ieee80211_is_data_qos
	cbz	x0, LBB0_8
; %bb.4:
	mov	x0, x23
	bl	_ieee80211_get_qos_ctl
	ldr	w8, [x0]
	and	w8, w8, #0xf
	str	w8, [x19, #8]
	ldr	w8, [x25]
	bic	w8, w24, w8
	b	LBB0_9
LBB0_5:
	orr	w27, w9, w8
	mov	x0, x20
	bl	_ieee80211_is_mgmt
	ldr	w8, [x25]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w27, w27, w8
	mov	x0, x20
	bl	_ieee80211_is_probe_resp
	cbz	x0, LBB0_3
; %bb.6:
	ldr	w0, [x23]
	bl	_le16_to_cpu
	tst	w0, #0xf
	b.ne	LBB0_3
; %bb.7:
Lloh16:
	adrp	x8, _TX_CMD_FLG_TSF_MSK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TX_CMD_FLG_TSF_MSK@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	orr	w27, w27, w8
	b	LBB0_2
LBB0_8:
	ldr	w8, [x25]
	orr	w8, w24, w8
LBB0_9:
	str	w8, [sp, #12]
	add	x3, sp, #12
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_il_tx_cmd_protection
Lloh19:
	adrp	x8, _TX_CMD_FLG_ANT_SEL_MSK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TX_CMD_FLG_ANT_SEL_MSK@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	bic	w8, w9, w8
	str	w8, [sp, #12]
	mov	x0, x20
	bl	_ieee80211_is_mgmt
	cbz	x0, LBB0_14
; %bb.10:
	mov	x0, x20
	bl	_ieee80211_is_assoc_req
	cbz	x0, LBB0_12
; %bb.11:
	mov	w0, #3
	b	LBB0_13
LBB0_12:
	mov	x0, x20
	bl	_ieee80211_is_reassoc_req
	cmp	x0, #0
	mov	w8, #2
	cinc	w0, w8, ne
LBB0_13:
	bl	_cpu_to_le16
LBB0_14:
	stp	xzr, x0, [x19, #24]
	ldr	w8, [sp, #12]
	str	w8, [x19]
	str	xzr, [x19, #16]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_TX_CMD_LIFE_TIME_INFINITE,4,2  ; @TX_CMD_LIFE_TIME_INFINITE
	.comm	_IEEE80211_TX_CTL_NO_ACK,4,2    ; @IEEE80211_TX_CTL_NO_ACK
	.comm	_TX_CMD_FLG_ACK_MSK,4,2         ; @TX_CMD_FLG_ACK_MSK
	.comm	_TX_CMD_FLG_SEQ_CTL_MSK,4,2     ; @TX_CMD_FLG_SEQ_CTL_MSK
	.comm	_TX_CMD_FLG_TSF_MSK,4,2         ; @TX_CMD_FLG_TSF_MSK
	.comm	_TX_CMD_FLG_IMM_BA_RSP_MASK,4,2 ; @TX_CMD_FLG_IMM_BA_RSP_MASK
	.comm	_TX_CMD_FLG_MORE_FRAG_MSK,4,2   ; @TX_CMD_FLG_MORE_FRAG_MSK
	.comm	_TX_CMD_FLG_ANT_SEL_MSK,4,2     ; @TX_CMD_FLG_ANT_SEL_MSK
	.no_dead_strip	_il4965_tx_cmd_build_basic
.subsections_via_symbols
