	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwlagn_tx_cmd_build_basic
_iwlagn_tx_cmd_build_basic:             ## @iwlagn_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movl	(%r8), %ebx
	movl	(%rdx), %eax
	movq	_TX_CMD_LIFE_TIME_INFINITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 40(%rdx)
	movq	_IEEE80211_TX_CTL_NO_ACK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%r15), %ecx
	movq	_TX_CMD_FLG_ACK_MSK@GOTPCREL(%rip), %r13
	movl	(%r13), %r12d
	movl	%r12d, %edx
	orl	%eax, %edx
	notl	%r12d
	andl	%eax, %r12d
	testl	%ecx, %ecx
	cmovel	%edx, %r12d
	movl	%ebx, %edi
	callq	_ieee80211_is_probe_resp
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_TX_CMD_FLG_TSF_MSK@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movl	%r12d, -48(%rbp)
	jmp	LBB0_13
LBB0_3:
	movl	%ebx, %edi
	callq	_ieee80211_is_back_req
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_TX_CMD_FLG_IMM_BA_RSP_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%r13), %eax
	orl	%eax, %r12d
	movl	%r12d, -48(%rbp)
	jmp	LBB0_13
LBB0_5:
	movq	8(%r15), %rax
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.6:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.7:
	cmpq	$0, (%rax)
	je	LBB0_13
## %bb.8:
	movl	%ebx, %edi
	callq	_ieee80211_is_auth
	testq	%rax, %rax
	jne	LBB0_12
## %bb.9:
	movl	%ebx, %edi
	callq	_ieee80211_is_assoc_req
	testq	%rax, %rax
	jne	LBB0_12
## %bb.10:
	movl	%ebx, %edi
	callq	_ieee80211_is_reassoc_req
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:
	movq	_IEEE80211_TX_CTRL_PORT_CTRL_PROTO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%r15)
	je	LBB0_13
LBB0_12:
	movq	_TX_CMD_FLG_IGNORE_BT@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
LBB0_13:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%r14)
	movl	%ebx, %edi
	callq	_ieee80211_has_morefrags
	xorl	%ecx, %ecx
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	_TX_CMD_FLG_MORE_FRAG_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_15:
	orl	%ecx, %r12d
	movl	%ebx, %edi
	callq	_ieee80211_is_data_qos
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_ieee80211_get_qos_ctl
	movl	(%rax), %eax
	andl	$15, %eax
	movl	%eax, 8(%r14)
	movq	_TX_CMD_FLG_SEQ_CTL_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_17:
	notl	%eax
	andl	%eax, %r12d
	jmp	LBB0_20
LBB0_18:
	movq	_IWL_TID_NON_QOS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	_IEEE80211_TX_CTL_ASSIGN_SEQ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_TX_CMD_FLG_SEQ_CTL_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%ecx, (%r15)
	je	LBB0_17
## %bb.19:
	orl	%eax, %r12d
LBB0_20:
	movl	%r12d, -48(%rbp)
	leaq	-48(%rbp), %rcx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_iwlagn_tx_cmd_protection
	movq	_TX_CMD_FLG_ANT_SEL_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, -48(%rbp)
	movl	%ebx, %edi
	callq	_ieee80211_is_mgmt
	testq	%rax, %rax
	je	LBB0_21
## %bb.22:
	movl	%ebx, %edi
	callq	_ieee80211_is_assoc_req
	movl	$3, %edi
	testq	%rax, %rax
	jne	LBB0_24
## %bb.23:
	movl	%ebx, %edi
	callq	_ieee80211_is_reassoc_req
	cmpq	$1, %rax
	movl	$3, %edi
	sbbl	$0, %edi
LBB0_24:
	callq	_cpu_to_le16
	jmp	LBB0_25
LBB0_21:
	xorl	%eax, %eax
LBB0_25:
	movq	%rax, 32(%r14)
	movl	-48(%rbp), %eax
	movl	%eax, (%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r14)
	addq	$24, %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_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	_NL80211_BAND_2GHZ,8,3          ## @NL80211_BAND_2GHZ
	.comm	_IEEE80211_TX_CTRL_PORT_CTRL_PROTO,4,2 ## @IEEE80211_TX_CTRL_PORT_CTRL_PROTO
	.comm	_TX_CMD_FLG_IGNORE_BT,4,2       ## @TX_CMD_FLG_IGNORE_BT
	.comm	_TX_CMD_FLG_MORE_FRAG_MSK,4,2   ## @TX_CMD_FLG_MORE_FRAG_MSK
	.comm	_TX_CMD_FLG_SEQ_CTL_MSK,4,2     ## @TX_CMD_FLG_SEQ_CTL_MSK
	.comm	_IWL_TID_NON_QOS,4,2            ## @IWL_TID_NON_QOS
	.comm	_IEEE80211_TX_CTL_ASSIGN_SEQ,4,2 ## @IEEE80211_TX_CTL_ASSIGN_SEQ
	.comm	_TX_CMD_FLG_ANT_SEL_MSK,4,2     ## @TX_CMD_FLG_ANT_SEL_MSK
	.no_dead_strip	_iwlagn_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 iwlagn_tx_cmd_build_basic
_iwlagn_tx_cmd_build_basic:             ; @iwlagn_tx_cmd_build_basic
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x24, x5
	mov	x23, x4
	mov	x21, x3
	mov	x19, x2
	mov	x22, x0
	ldr	w20, [x4]
	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	w9, [x3]
Lloh3:
	adrp	x10, _IEEE80211_TX_CTL_NO_ACK@GOTPAGE
Lloh4:
	ldr	x10, [x10, _IEEE80211_TX_CTL_NO_ACK@GOTPAGEOFF]
Lloh5:
	adrp	x26, _TX_CMD_FLG_ACK_MSK@GOTPAGE
Lloh6:
	ldr	x26, [x26, _TX_CMD_FLG_ACK_MSK@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	ldr	w11, [x26]
	orr	w12, w11, w8
	bic	w8, w8, w11
	tst	w10, w9
	csel	w25, w12, w8, eq
	mov	x0, x20
	bl	_ieee80211_is_probe_resp
	cbz	x0, LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _TX_CMD_FLG_TSF_MSK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TX_CMD_FLG_TSF_MSK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	orr	w25, w25, w8
	str	w25, [sp, #12]
	b	LBB0_12
LBB0_2:
	mov	x0, x20
	bl	_ieee80211_is_back_req
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w8, [x26]
Lloh11:
	adrp	x9, _TX_CMD_FLG_IMM_BA_RSP_MASK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _TX_CMD_FLG_IMM_BA_RSP_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
	orr	w25, w8, w25
	str	w25, [sp, #12]
	b	LBB0_12
LBB0_4:
	ldr	x8, [x21, #8]
Lloh14:
	adrp	x9, _NL80211_BAND_2GHZ@GOTPAGE
Lloh15:
	ldr	x9, [x9, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.5:
	ldr	x8, [x22]
	ldr	x8, [x8]
	cbz	x8, LBB0_12
; %bb.6:
	ldr	x8, [x8]
	cbz	x8, LBB0_12
; %bb.7:
	mov	x0, x20
	bl	_ieee80211_is_auth
	cbnz	x0, LBB0_11
; %bb.8:
	mov	x0, x20
	bl	_ieee80211_is_assoc_req
	cbnz	x0, LBB0_11
; %bb.9:
	mov	x0, x20
	bl	_ieee80211_is_reassoc_req
	cbnz	x0, LBB0_11
; %bb.10:
	ldr	w8, [x21, #16]
Lloh17:
	adrp	x9, _IEEE80211_TX_CTRL_PORT_CTRL_PROTO@GOTPAGE
Lloh18:
	ldr	x9, [x9, _IEEE80211_TX_CTRL_PORT_CTRL_PROTO@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
LBB0_11:
Lloh20:
	adrp	x8, _TX_CMD_FLG_IGNORE_BT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TX_CMD_FLG_IGNORE_BT@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	orr	w25, w25, w8
LBB0_12:
	str	w24, [x19, #4]
	mov	x0, x20
	bl	_ieee80211_has_morefrags
Lloh23:
	adrp	x8, _TX_CMD_FLG_MORE_FRAG_MSK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _TX_CMD_FLG_MORE_FRAG_MSK@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w24, w25, w8
	mov	x0, x20
	bl	_ieee80211_is_data_qos
	cbz	x0, LBB0_15
; %bb.13:
	mov	x0, x23
	bl	_ieee80211_get_qos_ctl
	ldr	w8, [x0]
	and	w8, w8, #0xf
	str	w8, [x19, #8]
Lloh26:
	adrp	x8, _TX_CMD_FLG_SEQ_CTL_MSK@GOTPAGE
Lloh27:
	ldr	x8, [x8, _TX_CMD_FLG_SEQ_CTL_MSK@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
LBB0_14:
	bic	w8, w24, w8
	b	LBB0_17
LBB0_15:
Lloh29:
	adrp	x8, _IWL_TID_NON_QOS@GOTPAGE
Lloh30:
	ldr	x8, [x8, _IWL_TID_NON_QOS@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	str	w8, [x19, #8]
Lloh32:
	adrp	x8, _IEEE80211_TX_CTL_ASSIGN_SEQ@GOTPAGE
Lloh33:
	ldr	x8, [x8, _IEEE80211_TX_CTL_ASSIGN_SEQ@GOTPAGEOFF]
	ldr	w9, [x21]
Lloh34:
	ldr	w10, [x8]
Lloh35:
	adrp	x8, _TX_CMD_FLG_SEQ_CTL_MSK@GOTPAGE
Lloh36:
	ldr	x8, [x8, _TX_CMD_FLG_SEQ_CTL_MSK@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	tst	w10, w9
	b.eq	LBB0_14
; %bb.16:
	orr	w8, w24, w8
LBB0_17:
	str	w8, [sp, #12]
	add	x3, sp, #12
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_iwlagn_tx_cmd_protection
Lloh38:
	adrp	x8, _TX_CMD_FLG_ANT_SEL_MSK@GOTPAGE
Lloh39:
	ldr	x8, [x8, _TX_CMD_FLG_ANT_SEL_MSK@GOTPAGEOFF]
Lloh40:
	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_22
; %bb.18:
	mov	x0, x20
	bl	_ieee80211_is_assoc_req
	cbz	x0, LBB0_20
; %bb.19:
	mov	w0, #3
	b	LBB0_21
LBB0_20:
	mov	x0, x20
	bl	_ieee80211_is_reassoc_req
	cmp	x0, #0
	mov	w8, #2
	cinc	w0, w8, ne
LBB0_21:
	bl	_cpu_to_le16
LBB0_22:
	stp	xzr, x0, [x19, #24]
	ldr	w8, [sp, #12]
	str	w8, [x19]
	str	xzr, [x19, #16]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.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_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	_NL80211_BAND_2GHZ,8,3          ; @NL80211_BAND_2GHZ
	.comm	_IEEE80211_TX_CTRL_PORT_CTRL_PROTO,4,2 ; @IEEE80211_TX_CTRL_PORT_CTRL_PROTO
	.comm	_TX_CMD_FLG_IGNORE_BT,4,2       ; @TX_CMD_FLG_IGNORE_BT
	.comm	_TX_CMD_FLG_MORE_FRAG_MSK,4,2   ; @TX_CMD_FLG_MORE_FRAG_MSK
	.comm	_TX_CMD_FLG_SEQ_CTL_MSK,4,2     ; @TX_CMD_FLG_SEQ_CTL_MSK
	.comm	_IWL_TID_NON_QOS,4,2            ; @IWL_TID_NON_QOS
	.comm	_IEEE80211_TX_CTL_ASSIGN_SEQ,4,2 ; @IEEE80211_TX_CTL_ASSIGN_SEQ
	.comm	_TX_CMD_FLG_ANT_SEL_MSK,4,2     ; @TX_CMD_FLG_ANT_SEL_MSK
	.no_dead_strip	_iwlagn_tx_cmd_build_basic
.subsections_via_symbols
