	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wf_sat_sensor_get
_wf_sat_sensor_get:                     ## @wf_sat_sensor_get
	.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	%rsi, %r14
	callq	_wf_to_sat
	movq	16(%rax), %r13
	cmpq	$0, 24(%r13)
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	leaq	8(%r13), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MAX_AGE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r13), %rsi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r13, %rdi
	callq	_wf_sat_read_cache
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
LBB0_4:
	movslq	(%r12), %rcx
	movq	(%r13), %rdx
	movl	(%rdx,%rcx,8), %eax
	addq	%rcx, %rcx
	shll	$8, %eax
	orl	$1, %ecx
	movslq	%ecx, %rcx
	addl	(%rdx,%rcx,4), %eax
	movb	4(%r12), %cl
	shll	%cl, %eax
	movslq	8(%r12), %rcx
	testq	%rcx, %rcx
	js	LBB0_6
## %bb.5:
	movl	(%rdx,%rcx,8), %esi
	addq	%rcx, %rcx
	shll	$8, %esi
	orl	$1, %ecx
	movslq	%ecx, %rcx
	addl	(%rdx,%rcx,4), %esi
	imull	%eax, %esi
	sarl	$4, %esi
	movl	%esi, %eax
LBB0_6:
	movl	%eax, (%r14)
	xorl	%ebx, %ebx
LBB0_7:
	movq	%r15, %rdi
	callq	_mutex_unlock
	jmp	LBB0_8
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_MAX_AGE,8,3                    ## @MAX_AGE
	.no_dead_strip	_wf_sat_sensor_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wf_sat_sensor_get
_wf_sat_sensor_get:                     ; @wf_sat_sensor_get
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	bl	_wf_to_sat
	ldr	x22, [x0, #16]
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_7
; %bb.1:
	mov	x21, x0
	add	x20, x22, #8
	mov	x0, x20
	bl	_mutex_lock
Lloh0:
	adrp	x8, _jiffies@GOTPAGE
Lloh1:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x8, [x22, #16]
Lloh3:
	adrp	x9, _MAX_AGE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAX_AGE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_time_after
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x22
	bl	_wf_sat_read_cache
	mov	x23, x0
	cbnz	w0, LBB0_6
LBB0_3:
	ldr	x8, [x22]
	ldp	w9, w11, [x21]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	lsl	x10, x9, #3
	ldr	w12, [x8, x10]
	mov	w10, #1
	mov	w13, #1
	bfi	w13, w9, #1, #31
	ldr	w9, [x8, w13, sxtw #2]
	add	w9, w9, w12, lsl #8
	lsl	w9, w9, w11
	ldrsw	x11, [x21, #8]
	tbnz	w11, #31, LBB0_5
; %bb.4:
	lsl	x12, x11, #3
	ldr	w12, [x8, x12]
	bfi	w10, w11, #1, #31
	ldr	w8, [x8, w10, sxtw #2]
	add	w8, w8, w12, lsl #8
	mul	w8, w8, w9
	asr	w9, w8, #4
LBB0_5:
	mov	w23, #0
	str	w9, [x19]
LBB0_6:
	mov	x0, x20
	bl	_mutex_unlock
	b	LBB0_8
LBB0_7:
Lloh6:
	adrp	x8, _ENODEV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_8:
	mov	x0, x23
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_MAX_AGE,8,3                    ; @MAX_AGE
	.no_dead_strip	_wf_sat_sensor_get
.subsections_via_symbols
