	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si476x_radio_g_frequency
_si476x_radio_g_frequency:              ## @si476x_radio_g_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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	callq	_video_drvdata
	cmpq	$0, (%r15)
	jne	LBB0_2
## %bb.1:
	movq	%rax, %r14
	movq	8(%r15), %rax
	movq	_V4L2_TUNER_RADIO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.3:
	movl	(%r14), %edi
	callq	_si476x_core_lock
	movq	8(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.4:
	movl	l___const.si476x_radio_g_frequency.args+16(%rip), %eax
	movl	%eax, -48(%rbp)
	movups	l___const.si476x_radio_g_frequency.args(%rip), %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	8(%r14), %rax
	movl	(%r14), %edi
	leaq	-64(%rbp), %rsi
	leaq	-32(%rbp), %rdx
	callq	*(%rax)
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	movl	(%r14), %edi
	movl	-32(%rbp), %esi
	callq	_si476x_to_v4l2
	movl	%eax, 16(%r15)
	jmp	LBB0_7
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	(%r14), %edi
	callq	_si476x_core_unlock
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_TUNER_RADIO,8,3           ## @V4L2_TUNER_RADIO
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__const
	.p2align	2                               ## @__const.si476x_radio_g_frequency.args
l___const.si476x_radio_g_frequency.args:
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	0                               ## 0x0

	.no_dead_strip	_si476x_radio_g_frequency
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function si476x_radio_g_frequency
_si476x_radio_g_frequency:              ; @si476x_radio_g_frequency
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	bl	_video_drvdata
	ldr	x8, [x20]
	cbnz	x8, LBB0_5
; %bb.1:
	ldr	x8, [x20, #8]
Lloh0:
	adrp	x9, _V4L2_TUNER_RADIO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_TUNER_RADIO@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	mov	x19, x0
	ldr	w0, [x0]
	bl	_si476x_core_lock
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.3:
Lloh3:
	adrp	x8, l___const.si476x_radio_g_frequency.args@PAGE
Lloh4:
	add	x8, x8, l___const.si476x_radio_g_frequency.args@PAGEOFF
	ldr	q0, [x8]
	str	q0, [sp]
	ldr	w8, [x8, #16]
	str	w8, [sp, #16]
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w0, [x19]
	mov	x1, sp
	add	x2, sp, #24
	blr	x8
	mov	x21, x0
	cbnz	w0, LBB0_8
; %bb.4:
	ldr	w0, [x19]
	ldr	w1, [sp, #24]
	bl	_si476x_to_v4l2
	str	w0, [x20, #16]
	b	LBB0_8
LBB0_5:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_7:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_8:
	ldr	w0, [x19]
	bl	_si476x_core_unlock
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_TUNER_RADIO,8,3           ; @V4L2_TUNER_RADIO
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__const
	.p2align	2                               ; @__const.si476x_radio_g_frequency.args
l___const.si476x_radio_g_frequency.args:
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	0                               ; 0x0

	.no_dead_strip	_si476x_radio_g_frequency
.subsections_via_symbols
