	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpas_rrm_build_lci_report
_wpas_rrm_build_lci_report:             ## @wpas_rrm_build_lci_report
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movslq	8(%rsi), %rbx
	movl	$-1, %r13d
	cmpq	$3, %rbx
	je	LBB0_17
## %bb.1:
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	cmpl	$0, 4(%rdi)
	je	LBB0_13
## %bb.2:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	(%r12), %r14
	movq	(%r14), %r15
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_LOCATION_SUBJECT_REMOTE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_3
## %bb.4:
	addq	$-4, %rbx
	addq	$8, %r14
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	callq	_wpa_hexdump
	movq	_LCI_REQ_SUBELEM_MAX_AGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_get_ie
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	cmpq	$2, 8(%rax)
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_8
## %bb.7:
	addq	$16, %rax
	movq	%rax, %rdi
	callq	_WPA_GET_LE16
	movl	%eax, %ebx
	jmp	LBB0_8
LBB0_3:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_17
LBB0_5:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_8:
	leaq	-72(%rbp), %rdi
	callq	_os_get_reltime
	testq	%rax, %rax
	je	LBB0_9
LBB0_13:
	movl	(%r15), %edi
	callq	_is_multicast_ether_addr
	xorl	%r13d, %r13d
	testl	%eax, %eax
	jne	LBB0_17
## %bb.14:
	movl	12(%r12), %ecx
	movl	16(%r12), %esi
	movq	_MEASUREMENT_REPORT_MODE_REJECT_INCAPABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r13d, %r13d
	movq	%r14, %rdi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_wpas_rrm_report_elem
	testq	%rax, %rax
	jns	LBB0_17
## %bb.15:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_16
LBB0_9:
	leaq	8(%r15), %rsi
	leaq	-72(%rbp), %rdi
	leaq	-64(%rbp), %rdx
	callq	_os_reltime_sub
	cmpl	$65535, %ebx                    ## imm = 0xFFFF
	je	LBB0_11
## %bb.10:
	movl	-64(%rbp), %eax
	leal	(%rax,%rax,4), %eax
	movslq	-60(%rbp), %rcx
	imulq	$351843721, %rcx, %rcx          ## imm = 0x14F8B589
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$45, %rcx
	addl	%edx, %ecx
	leal	(%rcx,%rax,2), %eax
	cmpl	%eax, %ebx
	jb	LBB0_13
LBB0_11:
	movq	%r14, %r13
	movl	12(%r12), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	16(%r12), %r14d
	movq	_MEASUREMENT_REPORT_MODE_ACCEPT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	4(%r15), %edi
	callq	_wpabuf_head_u8
	movq	%rax, %rbx
	movl	4(%r15), %edi
	callq	_wpabuf_len
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movq	%rbx, %r8
	movl	%eax, %r9d
	callq	_wpas_rrm_report_elem
	xorl	%r13d, %r13d
	testq	%rax, %rax
	jns	LBB0_17
## %bb.12:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
LBB0_16:
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$-1, %r13d
LBB0_17:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Measurement request location subject=%u"

	.comm	_LOCATION_SUBJECT_REMOTE,8,3    ## @LOCATION_SUBJECT_REMOTE
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.1:                               ## @.str.1
	.asciz	"Not building LCI report - bad location subject"

L_.str.2:                               ## @.str.2
	.asciz	"LCI request subelements"

	.comm	_LCI_REQ_SUBELEM_MAX_AGE,4,2    ## @LCI_REQ_SUBELEM_MAX_AGE
	.comm	_MEASUREMENT_REPORT_MODE_ACCEPT,4,2 ## @MEASUREMENT_REPORT_MODE_ACCEPT
L_.str.3:                               ## @.str.3
	.asciz	"Failed to add LCI report element"

	.comm	_MEASUREMENT_REPORT_MODE_REJECT_INCAPABLE,4,2 ## @MEASUREMENT_REPORT_MODE_REJECT_INCAPABLE
L_.str.4:                               ## @.str.4
	.asciz	"RRM: Failed to add report element"

	.no_dead_strip	_wpas_rrm_build_lci_report
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpas_rrm_build_lci_report
_wpas_rrm_build_lci_report:             ; @wpas_rrm_build_lci_report
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	ldrsw	x22, [x1, #8]
	cmp	w22, #3
	b.ne	LBB0_2
LBB0_1:
	mov	w0, #-1
	b	LBB0_12
LBB0_2:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_10
; %bb.3:
	ldr	x23, [x20]
	ldr	x24, [x23]
Lloh0:
	adrp	x25, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x25, [x25, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x25]
	str	x24, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
Lloh4:
	adrp	x8, _LOCATION_SUBJECT_REMOTE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _LOCATION_SUBJECT_REMOTE@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x24, x8
	b.ne	LBB0_7
; %bb.4:
	sub	x22, x22, #4
	add	x23, x23, #8
	ldr	w0, [x25]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x23
	mov	x3, x22
	bl	_wpa_hexdump
Lloh9:
	adrp	x8, _LCI_REQ_SUBELEM_MAX_AGE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LCI_REQ_SUBELEM_MAX_AGE@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x23
	mov	x1, x22
	bl	_get_ie
	cbz	x0, LBB0_8
; %bb.5:
	ldr	x8, [x0, #8]
	cmp	x8, #2
	b.ne	LBB0_8
; %bb.6:
	add	x0, x0, #16
	bl	_WPA_GET_LE16
	mov	x22, x0
	b	LBB0_9
LBB0_7:
Lloh12:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	b	LBB0_11
LBB0_8:
	mov	w22, #0
LBB0_9:
	add	x0, sp, #24
	bl	_os_get_reltime
	cbz	x0, LBB0_15
LBB0_10:
	ldr	w0, [x21]
	bl	_is_multicast_ether_addr
	cbz	w0, LBB0_13
LBB0_11:
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_13:
Lloh17:
	adrp	x8, _MEASUREMENT_REPORT_MODE_REJECT_INCAPABLE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MEASUREMENT_REPORT_MODE_REJECT_INCAPABLE@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	ldp	w3, w1, [x20, #12]
	mov	x0, x19
	mov	x4, #0
	mov	w5, #0
	bl	_wpas_rrm_report_elem
	mov	x8, x0
	mov	w0, #0
	tbz	x8, #63, LBB0_12
; %bb.14:
Lloh20:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x1, l_.str.4@PAGE
Lloh24:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_19
LBB0_15:
	add	x1, x21, #8
	add	x0, sp, #24
	add	x2, sp, #16
	bl	_os_reltime_sub
	mov	w8, #65535
	cmp	w22, w8
	b.eq	LBB0_17
; %bb.16:
	mov	w8, #10
	ldp	w9, w10, [sp, #16]
                                        ; kill: def $w10 killed $w10 def $x10
	sxtw	x10, w10
	mov	w11, #46473
	movk	w11, #5368, lsl #16
	mul	x10, x10, x11
	lsr	x11, x10, #63
	asr	x10, x10, #45
	add	w10, w10, w11
	madd	w8, w9, w8, w10
	cmp	w22, w8
	b.lo	LBB0_10
LBB0_17:
Lloh25:
	adrp	x8, _MEASUREMENT_REPORT_MODE_ACCEPT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MEASUREMENT_REPORT_MODE_ACCEPT@GOTPAGEOFF]
Lloh27:
	ldr	w22, [x8]
	ldp	w20, w23, [x20, #12]
	ldr	w0, [x21, #4]
	bl	_wpabuf_head_u8
	mov	x24, x0
	ldr	w0, [x21, #4]
	bl	_wpabuf_len
	mov	x5, x0
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	mov	x3, x20
	mov	x4, x24
	bl	_wpas_rrm_report_elem
	tbz	x0, #63, LBB0_11
; %bb.18:
	ldr	w0, [x25]
Lloh28:
	adrp	x1, l_.str.3@PAGE
Lloh29:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_19:
	bl	_wpa_printf
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Measurement request location subject=%u"

	.comm	_LOCATION_SUBJECT_REMOTE,8,3    ; @LOCATION_SUBJECT_REMOTE
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.1:                               ; @.str.1
	.asciz	"Not building LCI report - bad location subject"

l_.str.2:                               ; @.str.2
	.asciz	"LCI request subelements"

	.comm	_LCI_REQ_SUBELEM_MAX_AGE,4,2    ; @LCI_REQ_SUBELEM_MAX_AGE
	.comm	_MEASUREMENT_REPORT_MODE_ACCEPT,4,2 ; @MEASUREMENT_REPORT_MODE_ACCEPT
l_.str.3:                               ; @.str.3
	.asciz	"Failed to add LCI report element"

	.comm	_MEASUREMENT_REPORT_MODE_REJECT_INCAPABLE,4,2 ; @MEASUREMENT_REPORT_MODE_REJECT_INCAPABLE
l_.str.4:                               ; @.str.4
	.asciz	"RRM: Failed to add report element"

	.no_dead_strip	_wpas_rrm_build_lci_report
.subsections_via_symbols
