	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpas_rrm_beacon_rep_update_last_frame
_wpas_rrm_beacon_rep_update_last_frame: ## @wpas_rrm_beacon_rep_update_last_frame
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%eax, %eax
	cmpq	$32, %rsi
	jl	LBB0_16
## %bb.1:
	leaq	(%rdi,%rsi,4), %rcx
	movq	_WLAN_EID_MEASURE_REPORT@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movq	_MEASURE_TYPE_BEACON@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	xorl	%r8d, %r8d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	movslq	4(%rdi), %rax
	leaq	(%rdi,%rax,4), %rdi
	addq	$8, %rdi
	movq	%rcx, %rax
	subq	%rdi, %rax
	cmpq	$124, %rax
	jle	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r9, 8(%rdi)
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	(%rdi), %rdx
	leaq	(%rdi,%rdx,4), %rdx
	addq	$8, %rdx
	cmpq	%rcx, %rdx
	ja	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rsi, 16(%rdi)
	jne	LBB0_2
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%rdi), %r8
	jmp	LBB0_2
LBB0_7:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movl	$-1, %eax
	popq	%rbp
	retq
LBB0_8:
	xorl	%eax, %eax
	testq	%r8, %r8
	je	LBB0_16
## %bb.9:
	movq	(%r8), %rsi
	leaq	8(%rsi), %r9
	cmpq	%rdx, %r9
	jae	LBB0_16
## %bb.10:
	movq	_WLAN_BEACON_REPORT_SUBELEM_LAST_INDICATION@GOTPCREL(%rip), %rdi
	movl	(%rdi), %r8d
	cmpl	%r8d, (%rsi)
	je	LBB0_13
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movslq	4(%rsi), %rdi
	leaq	(%rsi,%rdi,4), %r9
	addq	$16, %r9
	cmpq	%rdx, %r9
	jae	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	leaq	(%rsi,%rdi,4), %rsi
	addq	$8, %rsi
	cmpl	%r8d, (%rsi)
	jne	LBB0_11
LBB0_13:
	cmpl	$1, 4(%rsi)
	jne	LBB0_16
## %bb.14:
	movq	_BEACON_REPORT_LAST_INDICATION_SUBELEM_LEN@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	leaq	(%rsi,%rdx,4), %rdx
	cmpq	%rcx, %rdx
	ja	LBB0_16
## %bb.15:
	movl	$1, (%r9)
LBB0_16:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WLAN_EID_MEASURE_REPORT,8,3    ## @WLAN_EID_MEASURE_REPORT
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RRM: non-measurement report element in measurement report frame"

	.comm	_MEASURE_TYPE_BEACON,8,3        ## @MEASURE_TYPE_BEACON
	.comm	_WLAN_BEACON_REPORT_SUBELEM_LAST_INDICATION,4,2 ## @WLAN_BEACON_REPORT_SUBELEM_LAST_INDICATION
	.comm	_BEACON_REPORT_LAST_INDICATION_SUBELEM_LEN,4,2 ## @BEACON_REPORT_LAST_INDICATION_SUBELEM_LEN
	.no_dead_strip	_wpas_rrm_beacon_rep_update_last_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpas_rrm_beacon_rep_update_last_frame
_wpas_rrm_beacon_rep_update_last_frame: ; @wpas_rrm_beacon_rep_update_last_frame
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cmp	x1, #32
	b.lt	LBB0_13
; %bb.1:
	mov	x10, #0
	add	x8, x0, x1, lsl #2
Lloh0:
	adrp	x9, _WLAN_EID_MEASURE_REPORT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WLAN_EID_MEASURE_REPORT@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x9]
Lloh3:
	adrp	x9, _MEASURE_TYPE_BEACON@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MEASURE_TYPE_BEACON@GOTPAGEOFF]
Lloh5:
	ldr	x12, [x9]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldrsw	x13, [x0, #4]
	add	x13, x0, x13, lsl #2
	add	x0, x13, #8
	sub	x13, x8, x0
	cmp	x13, #124
	b.le	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x9, [x0]
	mov	x13, x0
	ldr	x14, [x13, #8]!
	add	x9, x13, x9, lsl #2
	cmp	x14, x11
	ccmp	x9, x8, #2, eq
	b.hi	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x13, [x0, #16]
	cmp	x13, x12
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x10, [x0, #24]
	b	LBB0_2
LBB0_6:
Lloh6:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	mov	w0, #-1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_7:
	cbz	x10, LBB0_13
; %bb.8:
	ldr	x11, [x10]
	add	x10, x11, #8
	cmp	x10, x9
	b.hs	LBB0_13
; %bb.9:
Lloh11:
	adrp	x12, _WLAN_BEACON_REPORT_SUBELEM_LAST_INDICATION@GOTPAGE
Lloh12:
	ldr	x12, [x12, _WLAN_BEACON_REPORT_SUBELEM_LAST_INDICATION@GOTPAGEOFF]
Lloh13:
	ldr	w12, [x12]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x11]
	cmp	w13, w12
	b.eq	LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldrsw	x10, [x11, #4]
	add	x11, x11, x10, lsl #2
	add	x10, x11, #16
	cmp	x10, x9
	b.hs	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x11, x11, #8
	b	LBB0_10
LBB0_13:
	mov	w0, #0
LBB0_14:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_15:
	ldr	w9, [x11, #4]
Lloh14:
	adrp	x12, _BEACON_REPORT_LAST_INDICATION_SUBELEM_LEN@GOTPAGE
Lloh15:
	ldr	x12, [x12, _BEACON_REPORT_LAST_INDICATION_SUBELEM_LEN@GOTPAGEOFF]
Lloh16:
	ldrsw	x12, [x12]
	add	x11, x11, x12, lsl #2
	cmp	w9, #1
	mov	w0, #0
	ccmp	x11, x8, #2, eq
	b.hi	LBB0_14
; %bb.16:
	mov	w8, #1
	str	w8, [x10]
	ldp	x29, x30, [sp], #16             ; 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	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_WLAN_EID_MEASURE_REPORT,8,3    ; @WLAN_EID_MEASURE_REPORT
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RRM: non-measurement report element in measurement report frame"

	.comm	_MEASURE_TYPE_BEACON,8,3        ; @MEASURE_TYPE_BEACON
	.comm	_WLAN_BEACON_REPORT_SUBELEM_LAST_INDICATION,4,2 ; @WLAN_BEACON_REPORT_SUBELEM_LAST_INDICATION
	.comm	_BEACON_REPORT_LAST_INDICATION_SUBELEM_LEN,4,2 ; @BEACON_REPORT_LAST_INDICATION_SUBELEM_LEN
	.no_dead_strip	_wpas_rrm_beacon_rep_update_last_frame
.subsections_via_symbols
