	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_rrm_handle_link_measurement_request ## -- Begin function wpas_rrm_handle_link_measurement_request
	.p2align	4, 0x90
_wpas_rrm_handle_link_measurement_request: ## @wpas_rrm_handle_link_measurement_request
	.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
	movq	%rdx, %r12
	movq	(%rdi), %rax
	movq	_WPA_COMPLETED@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_1
## %bb.3:
	movq	%rdi, %rbx
	cmpl	$0, 24(%rdi)
	je	LBB0_4
## %bb.5:
	movq	_WPA_DRIVER_FLAGS_TX_POWER_INSERTION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_6
## %bb.7:
	cmpq	$3, %rcx
	ja	LBB0_9
## %bb.8:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_2
LBB0_1:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
LBB0_6:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_2:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wpa_printf                     ## TAILCALL
LBB0_9:
	movl	%r8d, %r15d
	movq	%rsi, %r14
	leaq	-64(%rbp), %rdi
	xorl	%esi, %esi
	movl	$20, %edx
	callq	_os_memset
	movl	(%r12), %eax
	movl	%eax, -48(%rbp)
	movq	_WLAN_EID_TPC_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movl	$2, -56(%rbp)
	movl	$255, -64(%rbp)
	movl	%r15d, %edi
	callq	_rssi_to_rcpi
	movl	%eax, -60(%rbp)
	movl	$22, %edi
	callq	_wpabuf_alloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%rax, %r15
	movq	_WLAN_ACTION_RADIO_MEASUREMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_wpabuf_put_u8
	movq	_WLAN_RRM_LINK_MEASUREMENT_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_wpabuf_put_u8
	leaq	-64(%rbp), %rsi
	movq	%r15, %rdi
	movl	$20, %edx
	callq	_wpabuf_put_data
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdx
	callq	_wpa_hexdump_buf
	movl	20(%rbx), %r12d
	movl	12(%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	16(%rbx), %r13d
	movq	%r15, %rdi
	callq	_wpabuf_head
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_wpabuf_len
                                        ## kill: def $eax killed $eax def $rax
	subq	$8, %rsp
	movq	%rbx, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	movq	%r14, %rcx
	movl	%r13d, %r8d
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	pushq	$0
	pushq	%rax
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	callq	_wpa_drv_send_action
	addq	$32, %rsp
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	callq	_wpa_printf
LBB0_13:
	movq	%r15, %rdi
	callq	_wpabuf_free
	jmp	LBB0_14
LBB0_10:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_wpa_printf
LBB0_14:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WPA_COMPLETED,8,3              ## @WPA_COMPLETED
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RRM: Ignoring link measurement request. Not associated"

L_.str.1:                               ## @.str.1
	.asciz	"RRM: Ignoring link measurement request. Not RRM network"

	.comm	_WPA_DRIVER_FLAGS_TX_POWER_INSERTION,4,2 ## @WPA_DRIVER_FLAGS_TX_POWER_INSERTION
L_.str.2:                               ## @.str.2
	.asciz	"RRM: Measurement report failed. TX power insertion not supported"

L_.str.3:                               ## @.str.3
	.asciz	"RRM: Link measurement report failed. Request too short"

	.comm	_WLAN_EID_TPC_REPORT,4,2        ## @WLAN_EID_TPC_REPORT
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
L_.str.4:                               ## @.str.4
	.asciz	"RRM: Link measurement report failed. Buffer allocation failed"

	.comm	_WLAN_ACTION_RADIO_MEASUREMENT,4,2 ## @WLAN_ACTION_RADIO_MEASUREMENT
	.comm	_WLAN_RRM_LINK_MEASUREMENT_REPORT,4,2 ## @WLAN_RRM_LINK_MEASUREMENT_REPORT
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.5:                               ## @.str.5
	.asciz	"RRM: Link measurement report"

L_.str.6:                               ## @.str.6
	.asciz	"RRM: Link measurement report failed. Send action failed"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_rrm_handle_link_measurement_request ; -- Begin function wpas_rrm_handle_link_measurement_request
	.p2align	2
_wpas_rrm_handle_link_measurement_request: ; @wpas_rrm_handle_link_measurement_request
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _WPA_COMPLETED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WPA_COMPLETED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	mov	x20, x0
	ldr	w8, [x0, #24]
	cbz	w8, LBB0_6
; %bb.2:
	ldr	w8, [x20, #8]
Lloh3:
	adrp	x9, _WPA_DRIVER_FLAGS_TX_POWER_INSERTION@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WPA_DRIVER_FLAGS_TX_POWER_INSERTION@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.3:
	cmp	x3, #3
	b.hi	LBB0_9
; %bb.4:
Lloh6:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_8
LBB0_5:
Lloh11:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_8
LBB0_6:
Lloh16:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh21:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x1, l_.str.2@PAGE
Lloh25:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_8:
	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
	b	_wpa_printf
LBB0_9:
	mov	x21, x4
	mov	x22, x2
	mov	x19, x1
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #20
	bl	_os_memset
	ldr	w8, [x22]
Lloh26:
	adrp	x9, _WLAN_EID_TPC_REPORT@GOTPAGE
Lloh27:
	ldr	x9, [x9, _WLAN_EID_TPC_REPORT@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #20]
	mov	w8, #2
	mov	w9, #255
	str	w8, [sp, #16]
	str	w9, [sp, #8]
	mov	x0, x21
	bl	_rssi_to_rcpi
	str	w0, [sp, #12]
	mov	w0, #22
	bl	_wpabuf_alloc
	cbz	x0, LBB0_13
; %bb.10:
	mov	x21, x0
Lloh29:
	adrp	x8, _WLAN_ACTION_RADIO_MEASUREMENT@GOTPAGE
Lloh30:
	ldr	x8, [x8, _WLAN_ACTION_RADIO_MEASUREMENT@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	bl	_wpabuf_put_u8
Lloh32:
	adrp	x8, _WLAN_RRM_LINK_MEASUREMENT_REPORT@GOTPAGE
Lloh33:
	ldr	x8, [x8, _WLAN_RRM_LINK_MEASUREMENT_REPORT@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_wpabuf_put_u8
	add	x1, sp, #8
	mov	x0, x21
	mov	w2, #20
	bl	_wpabuf_put_data
Lloh35:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh36:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
Lloh38:
	adrp	x1, l_.str.5@PAGE
Lloh39:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x2, x21
	bl	_wpa_hexdump_buf
	ldp	w23, w22, [x20, #16]
	ldr	w24, [x20, #12]
	mov	x0, x21
	bl	_wpabuf_head
	mov	x25, x0
	mov	x0, x21
	bl	_wpabuf_len
	mov	x7, x0
	str	wzr, [sp]
	mov	x0, x20
	mov	x1, x22
	mov	w2, #0
	mov	x3, x19
	mov	x4, x23
	mov	x5, x24
	mov	x6, x25
	bl	_wpa_drv_send_action
	cbz	x0, LBB0_12
; %bb.11:
Lloh40:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh41:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
Lloh43:
	adrp	x1, l_.str.6@PAGE
Lloh44:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_wpa_printf
LBB0_12:
	mov	x0, x21
	bl	_wpabuf_free
	b	LBB0_14
LBB0_13:
Lloh45:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh46:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh47:
	ldr	w0, [x8]
Lloh48:
	adrp	x1, l_.str.4@PAGE
Lloh49:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
LBB0_14:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_WPA_COMPLETED,8,3              ; @WPA_COMPLETED
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RRM: Ignoring link measurement request. Not associated"

l_.str.1:                               ; @.str.1
	.asciz	"RRM: Ignoring link measurement request. Not RRM network"

	.comm	_WPA_DRIVER_FLAGS_TX_POWER_INSERTION,4,2 ; @WPA_DRIVER_FLAGS_TX_POWER_INSERTION
l_.str.2:                               ; @.str.2
	.asciz	"RRM: Measurement report failed. TX power insertion not supported"

l_.str.3:                               ; @.str.3
	.asciz	"RRM: Link measurement report failed. Request too short"

	.comm	_WLAN_EID_TPC_REPORT,4,2        ; @WLAN_EID_TPC_REPORT
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
l_.str.4:                               ; @.str.4
	.asciz	"RRM: Link measurement report failed. Buffer allocation failed"

	.comm	_WLAN_ACTION_RADIO_MEASUREMENT,4,2 ; @WLAN_ACTION_RADIO_MEASUREMENT
	.comm	_WLAN_RRM_LINK_MEASUREMENT_REPORT,4,2 ; @WLAN_RRM_LINK_MEASUREMENT_REPORT
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.5:                               ; @.str.5
	.asciz	"RRM: Link measurement report"

l_.str.6:                               ; @.str.6
	.asciz	"RRM: Link measurement report failed. Send action failed"

.subsections_via_symbols
