	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_mac_get_survey
_iwl_mvm_mac_get_survey:                ## @iwl_mvm_mac_get_survey
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r12d
	callq	_IWL_MAC80211_GET_MVM
	movq	%rax, %r15
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	testl	%r12d, %r12d
	je	LBB0_2
## %bb.1:
	movq	_ENOENT@GOTPCREL(%rip), %rax
LBB0_8:
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_2:
	movq	72(%r15), %rdi
	movq	_IWL_UCODE_TLV_CAPA_RADIO_BEACON_STATS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_fw_has_capa
	testl	%eax, %eax
	je	LBB0_7
## %bb.3:
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	%r15, %rdi
	callq	_iwl_mvm_firmware_running
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_iwl_mvm_request_statistics
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
LBB0_5:
	movq	_SURVEY_INFO_TIME@GOTPCREL(%rip), %rax
	movq	_SURVEY_INFO_TIME_RX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_SURVEY_INFO_TIME_TX@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_SURVEY_INFO_TIME_SCAN@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%r14)
	movq	32(%r15), %rdi
	addq	64(%r15), %rdi
	movq	%rdi, 32(%r14)
	movq	_USEC_PER_MSEC@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_do_div
	movq	24(%r15), %rdi
	addq	56(%r15), %rdi
	movq	%rdi, 24(%r14)
	movl	(%rbx), %esi
	callq	_do_div
	movq	16(%r15), %rdi
	addq	48(%r15), %rdi
	movq	%rdi, 16(%r14)
	movl	(%rbx), %esi
	callq	_do_div
	movq	8(%r15), %rdi
	addq	40(%r15), %rdi
	movq	%rdi, 8(%r14)
	movl	(%rbx), %esi
	callq	_do_div
	xorl	%ebx, %ebx
LBB0_6:
	movq	%r15, %rdi
	callq	_mutex_unlock
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_IWL_UCODE_TLV_CAPA_RADIO_BEACON_STATS,4,2 ## @IWL_UCODE_TLV_CAPA_RADIO_BEACON_STATS
	.comm	_SURVEY_INFO_TIME,4,2           ## @SURVEY_INFO_TIME
	.comm	_SURVEY_INFO_TIME_RX,4,2        ## @SURVEY_INFO_TIME_RX
	.comm	_SURVEY_INFO_TIME_TX,4,2        ## @SURVEY_INFO_TIME_TX
	.comm	_SURVEY_INFO_TIME_SCAN,4,2      ## @SURVEY_INFO_TIME_SCAN
	.comm	_USEC_PER_MSEC,4,2              ## @USEC_PER_MSEC
	.no_dead_strip	_iwl_mvm_mac_get_survey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_mvm_mac_get_survey
_iwl_mvm_mac_get_survey:                ; @iwl_mvm_mac_get_survey
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x2
	mov	x21, x1
	bl	_IWL_MAC80211_GET_MVM
	mov	x19, x0
	mov	x0, x20
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	cbz	w21, LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _ENOENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_7
LBB0_2:
	ldr	x0, [x19, #72]
Lloh3:
	adrp	x8, _IWL_UCODE_TLV_CAPA_RADIO_BEACON_STATS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IWL_UCODE_TLV_CAPA_RADIO_BEACON_STATS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_fw_has_capa
	cbz	w0, LBB0_1
; %bb.3:
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x19
	bl	_iwl_mvm_firmware_running
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x19
	mov	w1, #0
	bl	_iwl_mvm_request_statistics
	mov	x21, x0
	cbnz	w0, LBB0_6
LBB0_5:
Lloh6:
	adrp	x8, _SURVEY_INFO_TIME@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SURVEY_INFO_TIME@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _SURVEY_INFO_TIME_RX@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SURVEY_INFO_TIME_RX@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh12:
	adrp	x9, _SURVEY_INFO_TIME_TX@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SURVEY_INFO_TIME_TX@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _SURVEY_INFO_TIME_SCAN@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SURVEY_INFO_TIME_SCAN@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x20]
	ldr	x8, [x19, #64]
	ldr	x9, [x19, #32]
	add	x0, x9, x8
	str	x0, [x20, #32]
Lloh18:
	adrp	x21, _USEC_PER_MSEC@GOTPAGE
Lloh19:
	ldr	x21, [x21, _USEC_PER_MSEC@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_do_div
	ldr	x8, [x19, #56]
	ldr	x9, [x19, #24]
	add	x0, x9, x8
	str	x0, [x20, #24]
	ldr	w1, [x21]
	bl	_do_div
	ldr	x8, [x19, #48]
	ldr	x9, [x19, #16]
	add	x0, x9, x8
	str	x0, [x20, #16]
	ldr	w1, [x21]
	bl	_do_div
	ldr	x8, [x19, #40]
	ldr	x9, [x19, #8]
	add	x0, x9, x8
	str	x0, [x20, #8]
	ldr	w1, [x21]
	bl	_do_div
	mov	w21, #0
LBB0_6:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_IWL_UCODE_TLV_CAPA_RADIO_BEACON_STATS,4,2 ; @IWL_UCODE_TLV_CAPA_RADIO_BEACON_STATS
	.comm	_SURVEY_INFO_TIME,4,2           ; @SURVEY_INFO_TIME
	.comm	_SURVEY_INFO_TIME_RX,4,2        ; @SURVEY_INFO_TIME_RX
	.comm	_SURVEY_INFO_TIME_TX,4,2        ; @SURVEY_INFO_TIME_TX
	.comm	_SURVEY_INFO_TIME_SCAN,4,2      ; @SURVEY_INFO_TIME_SCAN
	.comm	_USEC_PER_MSEC,4,2              ; @USEC_PER_MSEC
	.no_dead_strip	_iwl_mvm_mac_get_survey
.subsections_via_symbols
