	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_new_mesh_header      ## -- Begin function ieee80211_new_mesh_header
	.p2align	4, 0x90
_ieee80211_new_mesh_header:             ## @ieee80211_new_mesh_header
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %rbx
	testq	%rdx, %rdx
	sete	%al
	testq	%rcx, %rcx
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_WARN_ON
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_8
## %bb.1:
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$20, %edx
	callq	_memset
	movl	4(%rbx), %eax
	movl	%eax, 16(%r15)
	movl	(%rbx), %edi
	callq	_cpu_to_le32
	leaq	12(%r15), %rsi
	movl	%eax, %edi
	callq	_put_unaligned
	incl	(%rbx)
	testq	%r12, %r12
	je	LBB0_4
## %bb.2:
	testq	%r14, %r14
	jne	LBB0_4
## %bb.3:
	movq	_MESH_FLAGS_AE_A4@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r15)
	movl	4(%r15), %edi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r12, %rsi
	callq	_memcpy
	movl	(%rbx), %eax
	addl	%eax, %eax
	jmp	LBB0_8
LBB0_4:
	testq	%r12, %r12
	je	LBB0_7
## %bb.5:
	testq	%r14, %r14
	je	LBB0_7
## %bb.6:
	movq	_MESH_FLAGS_AE_A5_A6@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r15)
	movl	4(%r15), %edi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r12, %rsi
	callq	_memcpy
	movl	(%r15), %edi
	movl	(%rbx), %edx
	movq	%r14, %rsi
	callq	_memcpy
	movl	(%rbx), %eax
	leal	(%rax,%rax,2), %eax
	jmp	LBB0_8
LBB0_7:
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MESH_FLAGS_AE_A4,4,2           ## @MESH_FLAGS_AE_A4
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_MESH_FLAGS_AE_A5_A6,4,2        ## @MESH_FLAGS_AE_A5_A6
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_new_mesh_header      ; -- Begin function ieee80211_new_mesh_header
	.p2align	2
_ieee80211_new_mesh_header:             ; @ieee80211_new_mesh_header
	.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
	mov	x21, x3
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	cmp	x3, #0
	ccmp	x2, #0, #0, ne
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_9
LBB0_2:
	mov	x0, x20
	mov	w1, #0
	mov	w2, #20
	bl	_memset
	ldp	w0, w8, [x22]
	str	w8, [x20, #16]
	bl	_cpu_to_le32
	add	x1, x20, #12
	bl	_put_unaligned
	ldr	w8, [x22]
	add	w8, w8, #1
	str	w8, [x22]
	cbz	x19, LBB0_5
; %bb.3:
	cbnz	x21, LBB0_5
; %bb.4:
Lloh0:
	adrp	x8, _MESH_FLAGS_AE_A4@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MESH_FLAGS_AE_A4@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldp	w0, w9, [x20, #4]
	orr	w8, w9, w8
	str	w8, [x20, #8]
Lloh3:
	adrp	x20, _ETH_ALEN@GOTPAGE
Lloh4:
	ldr	x20, [x20, _ETH_ALEN@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	x1, x19
	bl	_memcpy
	ldr	w8, [x20]
	lsl	w0, w8, #1
	b	LBB0_9
LBB0_5:
	cbz	x19, LBB0_8
; %bb.6:
	cbz	x21, LBB0_8
; %bb.7:
Lloh5:
	adrp	x8, _MESH_FLAGS_AE_A5_A6@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MESH_FLAGS_AE_A5_A6@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldp	w0, w9, [x20, #4]
	orr	w8, w9, w8
	str	w8, [x20, #8]
Lloh8:
	adrp	x22, _ETH_ALEN@GOTPAGE
Lloh9:
	ldr	x22, [x22, _ETH_ALEN@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x1, x19
	bl	_memcpy
	ldr	w0, [x20]
	ldr	w2, [x22]
	mov	x1, x21
	bl	_memcpy
	ldr	w8, [x22]
	add	w0, w8, w8, lsl #1
	b	LBB0_9
LBB0_8:
Lloh10:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
LBB0_9:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MESH_FLAGS_AE_A4,4,2           ; @MESH_FLAGS_AE_A4
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_MESH_FLAGS_AE_A5_A6,4,2        ; @MESH_FLAGS_AE_A5_A6
.subsections_via_symbols
