	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_beacon
_handle_beacon:                         ## @handle_beacon
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_IEEE80211_HDRLEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$4, %rax
	cmpq	%rdx, %rax
	jbe	LBB0_1
## %bb.2:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wpa_printf                     ## TAILCALL
LBB0_1:
	movq	%rcx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	(%rsi), %edi
	subq	%rax, %rdx
	leaq	-40(%rbp), %r12
	movq	%rdx, %rsi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	callq	_ieee802_11_parse_elems
	movl	(%r15), %edi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movq	%r14, %rcx
	callq	_ap_list_process_beacon
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_HDRLEN,4,2           ## @IEEE80211_HDRLEN
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"handle_beacon - too short payload (len=%lu)"

	.no_dead_strip	_handle_beacon
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_beacon
_handle_beacon:                         ; @handle_beacon
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, _IEEE80211_HDRLEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_HDRLEN@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	add	x8, x8, #4
	cmp	x8, x2
	b.ls	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_wpa_printf
LBB0_2:
	mov	x19, x3
	mov	x20, x1
	mov	x21, x0
	ldr	w0, [x1]
	sub	x1, x2, x8
	add	x2, sp, #8
	mov	w3, #0
	bl	_ieee802_11_parse_elems
	ldr	w0, [x21]
	add	x2, sp, #8
	mov	x1, x20
	mov	x3, x19
	bl	_ap_list_process_beacon
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_HDRLEN,4,2           ; @IEEE80211_HDRLEN
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"handle_beacon - too short payload (len=%lu)"

	.no_dead_strip	_handle_beacon
.subsections_via_symbols
