	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpas_rrm_handle_msr_req_element
_wpas_rrm_handle_msr_req_element:       ## @wpas_rrm_handle_msr_req_element
	.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
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movl	(%rsi), %edx
	movl	8(%rsi), %ecx
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	4(%rbx), %ecx
	movq	_MEASUREMENT_REQUEST_MODE_ENABLE@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_2
## %bb.1:
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_17
LBB0_2:
	movq	_MEASUREMENT_REQUEST_MODE_PARALLEL@GOTPCREL(%rip), %rax
	movl	(%rbx), %edx
	testl	%ecx, (%rax)
	je	LBB0_6
## %bb.3:
	movq	_MEASURE_TYPE_RPI_HIST@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jle	LBB0_6
## %bb.4:
	movl	(%r13), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_5:
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_14
LBB0_6:
	movq	_MEASUREMENT_REQUEST_MODE_DURATION_MANDATORY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%eax, %eax
	testl	%ecx, %edi
	setne	%sil
	cmpl	$129, %edx
	je	LBB0_9
## %bb.7:
	cmpl	$128, %edx
	jne	LBB0_13
## %bb.8:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wpas_rrm_build_lci_report      ## TAILCALL
LBB0_9:
	testl	%ecx, %edi
	je	LBB0_12
## %bb.10:
	movq	_WPA_DRIVER_FLAGS_SUPPORT_SET_SCAN_DWELL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r12)
	je	LBB0_11
LBB0_12:
	movb	%sil, %al
	movq	16(%rbx), %rcx
	movl	8(%rbx), %esi
	movl	12(%rbx), %r8d
	addl	$-3, %r8d
	movq	%r12, %rdi
	movl	%eax, %edx
	movq	%r14, %r9
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wpas_rm_handle_beacon_req      ## TAILCALL
LBB0_13:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_14:
	movl	4(%r12), %edi
	callq	_is_multicast_ether_addr
	testl	%eax, %eax
	jne	LBB0_17
## %bb.15:
	movl	(%rbx), %ecx
	movl	8(%rbx), %esi
	movq	_MEASUREMENT_REPORT_MODE_REJECT_INCAPABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_wpas_rrm_report_elem
	testq	%rax, %rax
	jns	LBB0_17
## %bb.16:
	movl	(%r13), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$-1, %r15d
LBB0_17:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	(%r13), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Measurement request type %d token %d"

	.comm	_MEASUREMENT_REQUEST_MODE_ENABLE,4,2 ## @MEASUREMENT_REQUEST_MODE_ENABLE
L_.str.1:                               ## @.str.1
	.asciz	"RRM: Enable bit not supported, ignore"

	.comm	_MEASUREMENT_REQUEST_MODE_PARALLEL,4,2 ## @MEASUREMENT_REQUEST_MODE_PARALLEL
	.comm	_MEASURE_TYPE_RPI_HIST,4,2      ## @MEASURE_TYPE_RPI_HIST
L_.str.2:                               ## @.str.2
	.asciz	"RRM: Parallel measurements are not supported, reject"

	.comm	_MEASUREMENT_REQUEST_MODE_DURATION_MANDATORY,4,2 ## @MEASUREMENT_REQUEST_MODE_DURATION_MANDATORY
	.comm	_WPA_DRIVER_FLAGS_SUPPORT_SET_SCAN_DWELL,4,2 ## @WPA_DRIVER_FLAGS_SUPPORT_SET_SCAN_DWELL
L_.str.3:                               ## @.str.3
	.asciz	"RRM: Driver does not support dwell time configuration - reject beacon report with mandatory duration"

	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.4:                               ## @.str.4
	.asciz	"RRM: Unsupported radio measurement type %u"

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

	.no_dead_strip	_wpas_rrm_handle_msr_req_element
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpas_rrm_handle_msr_req_element
_wpas_rrm_handle_msr_req_element:       ; @wpas_rrm_handle_msr_req_element
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x22, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x22]
	ldr	w8, [x1]
	ldr	w9, [x1, #8]
	stp	x8, x9, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	ldr	w9, [x20, #4]
Lloh4:
	adrp	x8, _MEASUREMENT_REQUEST_MODE_ENABLE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MEASUREMENT_REQUEST_MODE_ENABLE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x22]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	mov	w0, #0
	b	LBB0_16
LBB0_2:
Lloh9:
	adrp	x8, _MEASUREMENT_REQUEST_MODE_PARALLEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MEASUREMENT_REQUEST_MODE_PARALLEL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	and	w10, w8, w9
	ldr	w8, [x20]
Lloh12:
	adrp	x11, _MEASURE_TYPE_RPI_HIST@GOTPAGE
Lloh13:
	ldr	x11, [x11, _MEASURE_TYPE_RPI_HIST@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	cmp	w10, #0
	ccmp	w8, w11, #4, ne
	b.gt	LBB0_6
; %bb.3:
Lloh15:
	adrp	x10, _MEASUREMENT_REQUEST_MODE_DURATION_MANDATORY@GOTPAGE
Lloh16:
	ldr	x10, [x10, _MEASUREMENT_REQUEST_MODE_DURATION_MANDATORY@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	ands	w9, w10, w9
	cset	w2, ne
	cmp	w8, #129
	b.eq	LBB0_7
; %bb.4:
	cmp	w8, #128
	b.ne	LBB0_10
; %bb.5:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	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	_wpas_rrm_build_lci_report
LBB0_6:
	ldr	w0, [x22]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_12
LBB0_7:
	cbz	w9, LBB0_9
; %bb.8:
	ldr	w8, [x21]
Lloh20:
	adrp	x9, _WPA_DRIVER_FLAGS_SUPPORT_SET_SCAN_DWELL@GOTPAGE
Lloh21:
	ldr	x9, [x9, _WPA_DRIVER_FLAGS_SUPPORT_SET_SCAN_DWELL@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
LBB0_9:
	ldr	x3, [x20, #16]
	ldp	w1, w8, [x20, #8]
	sub	w4, w8, #3
	mov	x0, x21
	mov	x5, x19
	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	_wpas_rm_handle_beacon_req
LBB0_10:
Lloh23:
	adrp	x9, _MSG_INFO@GOTPAGE
Lloh24:
	ldr	x9, [x9, _MSG_INFO@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x9]
	str	x8, [sp]
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_12
LBB0_11:
	ldr	w0, [x22]
Lloh28:
	adrp	x1, l_.str.3@PAGE
Lloh29:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_12:
	bl	_wpa_printf
	ldr	w0, [x21, #4]
	bl	_is_multicast_ether_addr
	cbz	w0, LBB0_14
; %bb.13:
	mov	w0, #0
	b	LBB0_16
LBB0_14:
	ldr	w1, [x20, #8]
Lloh30:
	adrp	x8, _MEASUREMENT_REPORT_MODE_REJECT_INCAPABLE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _MEASUREMENT_REPORT_MODE_REJECT_INCAPABLE@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	ldr	w3, [x20]
	mov	x0, x19
	mov	x4, #0
	mov	w5, #0
	bl	_wpas_rrm_report_elem
	mov	x8, x0
	mov	w0, #0
	tbz	x8, #63, LBB0_16
; %bb.15:
	ldr	w0, [x22]
Lloh33:
	adrp	x1, l_.str.5@PAGE
Lloh34:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_wpa_printf
	mov	w0, #-1
LBB0_16:
	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	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Measurement request type %d token %d"

	.comm	_MEASUREMENT_REQUEST_MODE_ENABLE,4,2 ; @MEASUREMENT_REQUEST_MODE_ENABLE
l_.str.1:                               ; @.str.1
	.asciz	"RRM: Enable bit not supported, ignore"

	.comm	_MEASUREMENT_REQUEST_MODE_PARALLEL,4,2 ; @MEASUREMENT_REQUEST_MODE_PARALLEL
	.comm	_MEASURE_TYPE_RPI_HIST,4,2      ; @MEASURE_TYPE_RPI_HIST
l_.str.2:                               ; @.str.2
	.asciz	"RRM: Parallel measurements are not supported, reject"

	.comm	_MEASUREMENT_REQUEST_MODE_DURATION_MANDATORY,4,2 ; @MEASUREMENT_REQUEST_MODE_DURATION_MANDATORY
	.comm	_WPA_DRIVER_FLAGS_SUPPORT_SET_SCAN_DWELL,4,2 ; @WPA_DRIVER_FLAGS_SUPPORT_SET_SCAN_DWELL
l_.str.3:                               ; @.str.3
	.asciz	"RRM: Driver does not support dwell time configuration - reject beacon report with mandatory duration"

	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.4:                               ; @.str.4
	.asciz	"RRM: Unsupported radio measurement type %u"

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

	.no_dead_strip	_wpas_rrm_handle_msr_req_element
.subsections_via_symbols
