	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_hw_fill_survey_time     ## -- Begin function ath10k_hw_fill_survey_time
	.p2align	4, 0x90
_ath10k_hw_fill_survey_time:            ## @ath10k_hw_fill_survey_time
	.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
	movq	%rcx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_SURVEY_INFO_TIME@GOTPCREL(%rip), %rsi
	movq	_SURVEY_INFO_TIME_BUSY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	orl	(%rsi), %eax
	orl	(%r14), %eax
	movl	%eax, (%r14)
	movq	%rdx, %rsi
	subq	%r8, %rsi
	jl	LBB0_2
## %bb.1:
	cmpq	%r9, %rbx
	jge	LBB0_6
LBB0_2:
	movl	(%r15), %edi
	cmpl	$128, %edi
	je	LBB0_9
## %bb.3:
	cmpl	$129, %edi
	jne	LBB0_6
## %bb.4:
	cmpq	%r8, %rdx
	jge	LBB0_6
## %bb.5:
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%r14)
	movl	$2147483647, %eax               ## imm = 0x7FFFFFFF
	jmp	LBB0_7
LBB0_6:
	xorl	%eax, %eax
LBB0_7:
	xorl	%ecx, %ecx
LBB0_8:
	addq	%rax, %rsi
	subq	%r9, %rbx
	addq	%rcx, %rbx
	movq	%r15, %rdi
	callq	_CCNT_TO_MSEC
	movq	%rax, 16(%r14)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_CCNT_TO_MSEC
	movq	%rax, 8(%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	xorl	%ecx, %ecx
	cmpq	%r8, %rdx
	movl	$2147483647, %edx               ## imm = 0x7FFFFFFF
	movl	$0, %eax
	cmovlq	%rdx, %rax
	cmpq	%r9, %rbx
	cmovlq	%rdx, %rcx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_SURVEY_INFO_TIME,4,2           ## @SURVEY_INFO_TIME
	.comm	_SURVEY_INFO_TIME_BUSY,4,2      ## @SURVEY_INFO_TIME_BUSY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_hw_fill_survey_time     ; -- Begin function ath10k_hw_fill_survey_time
	.p2align	2
_ath10k_hw_fill_survey_time:            ; @ath10k_hw_fill_survey_time
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _SURVEY_INFO_TIME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SURVEY_INFO_TIME@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x10, _SURVEY_INFO_TIME_BUSY@GOTPAGE
Lloh4:
	ldr	x10, [x10, _SURVEY_INFO_TIME_BUSY@GOTPAGEOFF]
	ldr	w9, [x10]
	orr	w8, w9, w8
	ldr	w9, [x1]
	orr	w11, w8, w9
	str	w11, [x1]
	subs	x8, x2, x4
	b.lt	LBB0_2
; %bb.1:
	cmp	x3, x5
	b.ge	LBB0_6
LBB0_2:
	ldr	w9, [x20]
	cmp	w9, #128
	b.eq	LBB0_8
; %bb.3:
	cmp	w9, #129
	b.ne	LBB0_6
; %bb.4:
	cmp	x2, x4
	b.ge	LBB0_6
; %bb.5:
	mov	x9, #0
	ldr	w10, [x10]
	bic	w10, w11, w10
	str	w10, [x19]
	mov	w10, #2147483647
	b	LBB0_7
LBB0_6:
	mov	x10, #0
	mov	x9, #0
LBB0_7:
	add	x1, x8, x10
	sub	x8, x3, x5
	add	x21, x8, x9
	mov	x0, x20
	bl	_CCNT_TO_MSEC
	str	x0, [x19, #16]
	mov	x0, x20
	mov	x1, x21
	bl	_CCNT_TO_MSEC
	str	x0, [x19, #8]
	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
LBB0_8:
	mov	w9, #2147483647
	cmp	x2, x4
	csel	x10, x9, xzr, lt
	cmp	x3, x5
	csel	x9, x9, xzr, lt
	b	LBB0_7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SURVEY_INFO_TIME,4,2           ; @SURVEY_INFO_TIME
	.comm	_SURVEY_INFO_TIME_BUSY,4,2      ; @SURVEY_INFO_TIME_BUSY
.subsections_via_symbols
