	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si4713_s_frequency
_si4713_s_frequency:                    ## @si4713_s_frequency
	.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	%rsi, %r14
	callq	_to_si4713_device
	movq	%rax, %r15
	movl	(%r14), %edi
	callq	_v4l2_to_si4713
	movl	%eax, %ebx
	movq	_FREQ_RANGE_LOW@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jl	LBB0_2
## %bb.1:
	movq	_FREQ_RANGE_HIGH@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jg	LBB0_2
## %bb.3:
	movq	%r15, %r12
	addq	$4, %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	cmpq	$0, 8(%r15)
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_si4713_tx_tune_freq
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_6
LBB0_5:
	movl	%ebx, (%r15)
	movl	%ebx, %edi
	callq	_si4713_to_v4l2
	movl	%eax, (%r14)
	xorl	%ebx, %ebx
LBB0_6:
	movq	%r12, %rdi
	callq	_mutex_unlock
	jmp	LBB0_7
LBB0_2:
	movq	_EDOM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FREQ_RANGE_LOW,4,2             ## @FREQ_RANGE_LOW
	.comm	_FREQ_RANGE_HIGH,4,2            ## @FREQ_RANGE_HIGH
	.comm	_EDOM,4,2                       ## @EDOM
	.no_dead_strip	_si4713_s_frequency
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function si4713_s_frequency
_si4713_s_frequency:                    ; @si4713_s_frequency
	.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
	bl	_to_si4713_device
	mov	x21, x0
	ldr	w0, [x19]
	bl	_v4l2_to_si4713
Lloh0:
	adrp	x8, _FREQ_RANGE_LOW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FREQ_RANGE_LOW@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _FREQ_RANGE_HIGH@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FREQ_RANGE_HIGH@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w0, w8
	ccmp	w0, w9, #0, ge
	b.le	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _EDOM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EDOM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_6
LBB0_2:
	mov	x20, x0
	add	x22, x21, #4
	mov	x0, x22
	bl	_mutex_lock
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x21
	mov	x1, x20
	bl	_si4713_tx_tune_freq
	mov	x20, x0
	tbnz	w0, #31, LBB0_5
LBB0_4:
	str	w20, [x21]
	mov	x0, x20
	bl	_si4713_to_v4l2
	mov	w20, #0
	str	w0, [x19]
LBB0_5:
	mov	x0, x22
	bl	_mutex_unlock
LBB0_6:
	mov	x0, x20
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_FREQ_RANGE_LOW,4,2             ; @FREQ_RANGE_LOW
	.comm	_FREQ_RANGE_HIGH,4,2            ; @FREQ_RANGE_HIGH
	.comm	_EDOM,4,2                       ; @EDOM
	.no_dead_strip	_si4713_s_frequency
.subsections_via_symbols
