	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mac80211_hwsim_get_survey
_mac80211_hwsim_get_survey:             ## @mac80211_hwsim_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%esi, %esi
	js	LBB0_2
## %bb.1:
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	(%rdi), %r15
	movq	8(%r15), %rdi
	callq	_ARRAY_SIZE
	cmpl	%ebx, %eax
	jle	LBB0_2
## %bb.3:
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	8(%r15), %rax
	movl	%ebx, %ecx
	leaq	(%rcx,%rcx,2), %rcx
	movl	16(%rax,%rcx,8), %edx
	movl	%edx, 16(%r14)
	testl	%edx, %edx
	je	LBB0_4
## %bb.5:
	movq	_SURVEY_INFO_NOISE_DBM@GOTPCREL(%rip), %rdx
	movq	_SURVEY_INFO_TIME@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rdx), %esi
	movq	_SURVEY_INFO_TIME_BUSY@GOTPCREL(%rip), %rdx
	orl	(%rdx), %esi
	movl	%esi, (%r14)
	movl	$-92, 4(%r14)
	movq	8(%rax,%rcx,8), %rdi
	subq	(%rax,%rcx,8), %rdi
	callq	_jiffies_to_msecs
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, 8(%r14)
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$3, %ecx
	movl	%ecx, 12(%r14)
	movq	%r15, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_4:
	movq	%r15, %rdi
	callq	_mutex_unlock
LBB0_2:
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_SURVEY_INFO_NOISE_DBM,4,2      ## @SURVEY_INFO_NOISE_DBM
	.comm	_SURVEY_INFO_TIME,4,2           ## @SURVEY_INFO_TIME
	.comm	_SURVEY_INFO_TIME_BUSY,4,2      ## @SURVEY_INFO_TIME_BUSY
	.no_dead_strip	_mac80211_hwsim_get_survey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mac80211_hwsim_get_survey
_mac80211_hwsim_get_survey:             ; @mac80211_hwsim_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
	tbnz	w1, #31, LBB0_5
; %bb.1:
	mov	x19, x2
	mov	x21, x1
	ldr	x20, [x0]
	ldr	x0, [x20, #8]
	bl	_ARRAY_SIZE
	cmp	w0, w21
	b.le	LBB0_5
; %bb.2:
	mov	x0, x20
	bl	_mutex_lock
	ldr	x8, [x20, #8]
	mov	w9, #24
	umaddl	x9, w21, w9, x8
	ldr	w9, [x9, #16]
	str	w9, [x19, #16]
	cbz	w9, LBB0_4
; %bb.3:
Lloh0:
	adrp	x9, _SURVEY_INFO_NOISE_DBM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SURVEY_INFO_NOISE_DBM@GOTPAGEOFF]
	mov	w10, w21
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x11, _SURVEY_INFO_TIME@GOTPAGE
Lloh4:
	ldr	x11, [x11, _SURVEY_INFO_TIME@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	orr	w9, w11, w9
Lloh6:
	adrp	x11, _SURVEY_INFO_TIME_BUSY@GOTPAGE
Lloh7:
	ldr	x11, [x11, _SURVEY_INFO_TIME_BUSY@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	orr	w9, w9, w11
	mov	w11, #-92
	stp	w9, w11, [x19]
	mov	w9, #24
	madd	x8, x10, x9, x8
	ldp	x8, x9, [x8]
	sub	x0, x9, x8
	bl	_jiffies_to_msecs
	add	w8, w0, #7
	cmp	w0, #0
	csel	w8, w8, w0, lt
	asr	w8, w8, #3
	stp	w0, w8, [x19, #8]
	mov	x0, x20
	bl	_mutex_unlock
	mov	w0, #0
	b	LBB0_6
LBB0_4:
	mov	x0, x20
	bl	_mutex_unlock
LBB0_5:
Lloh9:
	adrp	x8, _ENOENT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_SURVEY_INFO_NOISE_DBM,4,2      ; @SURVEY_INFO_NOISE_DBM
	.comm	_SURVEY_INFO_TIME,4,2           ; @SURVEY_INFO_TIME
	.comm	_SURVEY_INFO_TIME_BUSY,4,2      ; @SURVEY_INFO_TIME_BUSY
	.no_dead_strip	_mac80211_hwsim_get_survey
.subsections_via_symbols
