	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mesh_add_rsn_ie                ## -- Begin function mesh_add_rsn_ie
	.p2align	4, 0x90
_mesh_add_rsn_ie:                       ## @mesh_add_rsn_ie
	.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	(%rdi), %rbx
	xorl	%r14d, %r14d
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.1:
	movslq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	testl	%eax, %eax
	jle	LBB0_10
## %bb.3:
	movq	%rsi, %r15
	leaq	(%rbx,%rax,8), %rax
	movq	_WLAN_EID_RSN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rcx, (%rbx)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	$8, %rbx
	cmpq	%rax, %rbx
	jb	LBB0_4
	jmp	LBB0_10
LBB0_6:
	movq	8(%rbx), %r12
	addq	$2, %r12
	je	LBB0_10
## %bb.7:
	movq	%r15, %rdi
	callq	_skb_tailroom
	cmpq	%r12, %rax
	jge	LBB0_9
## %bb.8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_10
LBB0_9:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_skb_put
	movl	%eax, %edi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_memcpy
LBB0_10:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WLAN_EID_RSN,8,3               ## @WLAN_EID_RSN
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mesh_add_rsn_ie                ; -- Begin function mesh_add_rsn_ie
	.p2align	2
_mesh_add_rsn_ie:                       ; @mesh_add_rsn_ie
	.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
	ldr	x19, [x0]
	cbz	x19, LBB0_10
; %bb.1:
	ldrsw	x8, [x0, #8]
	cbz	w8, LBB0_10
; %bb.2:
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.3:
	mov	x20, x1
	add	x8, x19, x8, lsl #3
Lloh0:
	adrp	x9, _WLAN_EID_RSN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WLAN_EID_RSN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	mov	x10, x19
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10], #8
	cmp	x11, x9
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x19, x10
	cmp	x10, x8
	b.lo	LBB0_4
	b	LBB0_10
LBB0_6:
	ldr	x8, [x19, #8]
	adds	x21, x8, #2
	b.eq	LBB0_10
; %bb.7:
	mov	x0, x20
	bl	_skb_tailroom
	cmp	x0, x21
	b.ge	LBB0_9
; %bb.8:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_9:
	mov	x0, x20
	mov	x1, x21
	bl	_skb_put
	mov	x1, x19
	mov	x2, x21
	bl	_memcpy
LBB0_10:
	mov	w0, #0
LBB0_11:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_WLAN_EID_RSN,8,3               ; @WLAN_EID_RSN
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
