	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wnm_add_nei_rep
_wnm_add_nei_rep:                       ## @wnm_add_nei_rep
	.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
	pushq	%rax
	.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
	movl	%r8d, %r15d
	movl	%ecx, %r13d
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	callq	_wpabuf_len
	addq	$18, %rax
	movq	_IEEE80211_MAX_MMPDU_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_IEEE80211_HDRLEN@GOTPCREL(%rip), %rdx
	subq	(%rdx), %rcx
	cmpq	%rcx, %rax
	jle	LBB0_3
## %bb.1:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_3:
	movq	%rbx, %rdi
	movl	$18, %esi
	callq	_wpabuf_resize
	testq	%rax, %rax
	js	LBB0_4
## %bb.5:
	movq	(%rbx), %rdi
	movq	_WLAN_EID_NEIGHBOR_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_wpabuf_put_u8
	movq	(%rbx), %rdi
	movl	$16, %esi
	callq	_wpabuf_put_u8
	movq	(%rbx), %rdi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_wpabuf_put_data
	movq	(%rbx), %rdi
	movl	%r12d, %esi
	callq	_wpabuf_put_le32
	movq	(%rbx), %rdi
	movl	%r13d, %esi
	callq	_wpabuf_put_u8
	movq	(%rbx), %rdi
	movl	%r15d, %esi
	callq	_wpabuf_put_u8
	movq	(%rbx), %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_wpabuf_put_u8
	movq	(%rbx), %rdi
	movq	_WNM_NEIGHBOR_BSS_TRANSITION_CANDIDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_wpabuf_put_u8
	movq	(%rbx), %rdi
	movl	$1, %esi
	callq	_wpabuf_put_u8
	movq	(%rbx), %rdi
	movl	16(%rbp), %esi
	callq	_wpabuf_put_u8
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_4:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	callq	_wpa_printf
	movl	$-1, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_MAX_MMPDU_SIZE,8,3   ## @IEEE80211_MAX_MMPDU_SIZE
	.comm	_IEEE80211_HDRLEN,8,3           ## @IEEE80211_HDRLEN
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WNM: No room in frame for Neighbor Report element"

L_.str.1:                               ## @.str.1
	.asciz	"WNM: Failed to allocate memory for Neighbor Report element"

	.comm	_WLAN_EID_NEIGHBOR_REPORT,4,2   ## @WLAN_EID_NEIGHBOR_REPORT
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_WNM_NEIGHBOR_BSS_TRANSITION_CANDIDATE,4,2 ## @WNM_NEIGHBOR_BSS_TRANSITION_CANDIDATE
	.no_dead_strip	_wnm_add_nei_rep
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wnm_add_nei_rep
_wnm_add_nei_rep:                       ; @wnm_add_nei_rep
	.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	x19, x6
	mov	x21, x5
	mov	x22, x4
	mov	x23, x3
	mov	x24, x2
	mov	x25, x1
	mov	x20, x0
	ldr	x0, [x0]
	bl	_wpabuf_len
	add	x8, x0, #18
Lloh0:
	adrp	x9, _IEEE80211_MAX_MMPDU_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_MAX_MMPDU_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _IEEE80211_HDRLEN@GOTPAGE
Lloh4:
	ldr	x10, [x10, _IEEE80211_HDRLEN@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	sub	x9, x9, x10
	cmp	x8, x9
	b.le	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_5
LBB0_2:
	mov	x0, x20
	mov	w1, #18
	bl	_wpabuf_resize
	tbnz	x0, #63, LBB0_4
; %bb.3:
	ldr	x0, [x20]
Lloh11:
	adrp	x8, _WLAN_EID_NEIGHBOR_REPORT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WLAN_EID_NEIGHBOR_REPORT@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_wpabuf_put_u8
	ldr	x0, [x20]
	mov	w1, #16
	bl	_wpabuf_put_u8
	ldr	x0, [x20]
Lloh14:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x1, x25
	bl	_wpabuf_put_data
	ldr	x0, [x20]
	mov	x1, x24
	bl	_wpabuf_put_le32
	ldr	x0, [x20]
	mov	x1, x23
	bl	_wpabuf_put_u8
	ldr	x0, [x20]
	mov	x1, x22
	bl	_wpabuf_put_u8
	ldr	x0, [x20]
	mov	x1, x21
	bl	_wpabuf_put_u8
	ldr	x0, [x20]
Lloh17:
	adrp	x8, _WNM_NEIGHBOR_BSS_TRANSITION_CANDIDATE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _WNM_NEIGHBOR_BSS_TRANSITION_CANDIDATE@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_wpabuf_put_u8
	ldr	x0, [x20]
	mov	w1, #1
	bl	_wpabuf_put_u8
	ldr	x0, [x20]
	mov	x1, x19
	bl	_wpabuf_put_u8
	mov	w0, #0
	b	LBB0_6
LBB0_4:
Lloh20:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	bl	_wpa_printf
	mov	w0, #-1
LBB0_6:
	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 AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_MAX_MMPDU_SIZE,8,3   ; @IEEE80211_MAX_MMPDU_SIZE
	.comm	_IEEE80211_HDRLEN,8,3           ; @IEEE80211_HDRLEN
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WNM: No room in frame for Neighbor Report element"

l_.str.1:                               ; @.str.1
	.asciz	"WNM: Failed to allocate memory for Neighbor Report element"

	.comm	_WLAN_EID_NEIGHBOR_REPORT,4,2   ; @WLAN_EID_NEIGHBOR_REPORT
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_WNM_NEIGHBOR_BSS_TRANSITION_CANDIDATE,4,2 ; @WNM_NEIGHBOR_BSS_TRANSITION_CANDIDATE
	.no_dead_strip	_wnm_add_nei_rep
.subsections_via_symbols
