	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_set_qos_hdr          ## -- Begin function ieee80211_set_qos_hdr
	.p2align	4, 0x90
_ieee80211_set_qos_hdr:                 ## @ieee80211_set_qos_hdr
	.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	%rsi, %r12
	movq	%rdi, %r15
	movq	8(%rsi), %r13
	movq	%rsi, %rdi
	callq	_IEEE80211_SKB_CB
	movq	%rax, %rbx
	movl	(%r13), %edi
	callq	_ieee80211_is_data_qos
	testl	%eax, %eax
	je	LBB0_9
## %bb.1:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_ieee80211_get_qos_ctl
	movq	_IEEE80211_QOS_CTL_TAG1D_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	andl	(%r12), %r14d
	movq	%rax, %r12
	movq	_IEEE80211_QOS_CTL_EOSP@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	(%r12), %ebx
	movl	4(%r13), %edi
	callq	_is_multicast_ether_addr
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movl	(%r15), %r12d
	movl	%r14d, %edi
	callq	_BIT
	testl	%r12d, %eax
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_4
LBB0_3:
	movq	_IEEE80211_QOS_CTL_ACK_POLICY_NOACK@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_IEEE80211_TX_CTL_NO_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	orl	%eax, (%rcx)
LBB0_4:
	orl	%r14d, %ebx
	movl	%ebx, (%r12)
	addq	$4, %r15
	movq	%r15, %rdi
	callq	_ieee80211_vif_is_mesh
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	_IEEE80211_QOS_CTL_RSPI@GOTPCREL(%rip), %rax
	movq	_IEEE80211_QOS_CTL_MESH_PS_LEVEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	sarl	$8, %ecx
	andl	%ecx, 4(%r12)
	movl	(%r13), %edi
	callq	_ieee80211_is_qos_nullfunc
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	movq	_IEEE80211_QOS_CTL_MESH_CONTROL_PRESENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	sarl	$8, %eax
	orl	4(%r12), %eax
	jmp	LBB0_8
LBB0_5:
	xorl	%eax, %eax
LBB0_8:
	movl	%eax, 4(%r12)
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_QOS_CTL_TAG1D_MASK,4,2 ## @IEEE80211_QOS_CTL_TAG1D_MASK
	.comm	_IEEE80211_QOS_CTL_EOSP,4,2     ## @IEEE80211_QOS_CTL_EOSP
	.comm	_IEEE80211_QOS_CTL_ACK_POLICY_NOACK,4,2 ## @IEEE80211_QOS_CTL_ACK_POLICY_NOACK
	.comm	_IEEE80211_TX_CTL_NO_ACK,4,2    ## @IEEE80211_TX_CTL_NO_ACK
	.comm	_IEEE80211_QOS_CTL_RSPI,4,2     ## @IEEE80211_QOS_CTL_RSPI
	.comm	_IEEE80211_QOS_CTL_MESH_PS_LEVEL,4,2 ## @IEEE80211_QOS_CTL_MESH_PS_LEVEL
	.comm	_IEEE80211_QOS_CTL_MESH_CONTROL_PRESENT,4,2 ## @IEEE80211_QOS_CTL_MESH_CONTROL_PRESENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_set_qos_hdr          ; -- Begin function ieee80211_set_qos_hdr
	.p2align	2
_ieee80211_set_qos_hdr:                 ; @ieee80211_set_qos_hdr
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x1
	mov	x21, x0
	ldr	x20, [x1, #8]
	mov	x0, x1
	bl	_IEEE80211_SKB_CB
	mov	x22, x0
	ldr	w0, [x20]
	bl	_ieee80211_is_data_qos
	cbz	w0, LBB0_9
; %bb.1:
	mov	x0, x20
	bl	_ieee80211_get_qos_ctl
	mov	x19, x0
	ldr	w8, [x23]
Lloh0:
	adrp	x9, _IEEE80211_QOS_CTL_TAG1D_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_QOS_CTL_TAG1D_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w23, w9, w8
	ldr	w8, [x0]
Lloh3:
	adrp	x9, _IEEE80211_QOS_CTL_EOSP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEEE80211_QOS_CTL_EOSP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w24, w9, w8
	ldr	w0, [x20, #4]
	bl	_is_multicast_ether_addr
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	w25, [x21]
	mov	x0, x23
	bl	_BIT
	tst	w0, w25
	b.eq	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _IEEE80211_QOS_CTL_ACK_POLICY_NOACK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IEEE80211_QOS_CTL_ACK_POLICY_NOACK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w24, w8, w24
Lloh9:
	adrp	x8, _IEEE80211_TX_CTL_NO_ACK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IEEE80211_TX_CTL_NO_ACK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x22]
	orr	w8, w9, w8
	str	w8, [x22]
LBB0_4:
	orr	w8, w24, w23
	str	w8, [x19]
	add	x0, x21, #4
	bl	_ieee80211_vif_is_mesh
	cbz	x0, LBB0_7
; %bb.5:
Lloh12:
	adrp	x8, _IEEE80211_QOS_CTL_RSPI@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IEEE80211_QOS_CTL_RSPI@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _IEEE80211_QOS_CTL_MESH_PS_LEVEL@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IEEE80211_QOS_CTL_MESH_PS_LEVEL@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x19, #4]
	and	w8, w9, w8, asr #8
	str	w8, [x19, #4]
	ldr	w0, [x20]
	bl	_ieee80211_is_qos_nullfunc
	cbnz	w0, LBB0_9
; %bb.6:
Lloh18:
	adrp	x8, _IEEE80211_QOS_CTL_MESH_CONTROL_PRESENT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IEEE80211_QOS_CTL_MESH_CONTROL_PRESENT@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8, asr #8
	b	LBB0_8
LBB0_7:
	mov	w8, #0
LBB0_8:
	str	w8, [x19, #4]
LBB0_9:
	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
	ldp	x26, x25, [sp], #80             ; 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 AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_QOS_CTL_TAG1D_MASK,4,2 ; @IEEE80211_QOS_CTL_TAG1D_MASK
	.comm	_IEEE80211_QOS_CTL_EOSP,4,2     ; @IEEE80211_QOS_CTL_EOSP
	.comm	_IEEE80211_QOS_CTL_ACK_POLICY_NOACK,4,2 ; @IEEE80211_QOS_CTL_ACK_POLICY_NOACK
	.comm	_IEEE80211_TX_CTL_NO_ACK,4,2    ; @IEEE80211_TX_CTL_NO_ACK
	.comm	_IEEE80211_QOS_CTL_RSPI,4,2     ; @IEEE80211_QOS_CTL_RSPI
	.comm	_IEEE80211_QOS_CTL_MESH_PS_LEVEL,4,2 ; @IEEE80211_QOS_CTL_MESH_PS_LEVEL
	.comm	_IEEE80211_QOS_CTL_MESH_CONTROL_PRESENT,4,2 ; @IEEE80211_QOS_CTL_MESH_CONTROL_PRESENT
.subsections_via_symbols
