	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si4713_setup
_si4713_setup:                          ## @si4713_setup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	$0, -40(%rbp)
	movq	24(%rdi), %rdi
	testq	%rdi, %rdi
	jne	LBB0_2
## %bb.1:
	movq	_DEFAULT_FREQUENCY@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
LBB0_2:
	callq	_si4713_to_v4l2
	movq	%rax, -48(%rbp)
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_si4713_s_frequency
	movl	%eax, %r14d
	movq	$0, -24(%rbp)
	cmpq	$0, 16(%rbx)
	jne	LBB0_3
## %bb.4:
	movq	_V4L2_TUNER_SUB_MONO@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_V4L2_TUNER_SUB_STEREO@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	cmpq	$0, 8(%rbx)
	je	LBB0_7
## %bb.6:
	movq	_V4L2_TUNER_SUB_RDS@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, -32(%rbp)
LBB0_7:
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_si4713_s_modulator
	movl	%r14d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEFAULT_FREQUENCY,8,3          ## @DEFAULT_FREQUENCY
	.comm	_V4L2_TUNER_SUB_STEREO,4,2      ## @V4L2_TUNER_SUB_STEREO
	.comm	_V4L2_TUNER_SUB_MONO,4,2        ## @V4L2_TUNER_SUB_MONO
	.comm	_V4L2_TUNER_SUB_RDS,4,2         ## @V4L2_TUNER_SUB_RDS
	.no_dead_strip	_si4713_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function si4713_setup
_si4713_setup:                          ; @si4713_setup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
	str	xzr, [sp, #24]
	ldr	x8, [x0, #24]
Lloh0:
	adrp	x9, _DEFAULT_FREQUENCY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DEFAULT_FREQUENCY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, #0
	csel	x0, x9, x8, eq
	bl	_si4713_to_v4l2
	str	x0, [sp, #16]
	add	x1, sp, #16
	mov	x0, x19
	bl	_si4713_s_frequency
	mov	x20, x0
	str	xzr, [sp, #8]
Lloh3:
	adrp	x8, _V4L2_TUNER_SUB_MONO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_TUNER_SUB_MONO@GOTPAGEOFF]
Lloh5:
	adrp	x9, _V4L2_TUNER_SUB_STEREO@GOTPAGE
Lloh6:
	ldr	x9, [x9, _V4L2_TUNER_SUB_STEREO@GOTPAGEOFF]
	ldp	x11, x10, [x19, #8]
	cmp	x10, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [sp]
	cbz	x11, LBB0_2
; %bb.1:
Lloh7:
	adrp	x9, _V4L2_TUNER_SUB_RDS@GOTPAGE
Lloh8:
	ldr	x9, [x9, _V4L2_TUNER_SUB_RDS@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [sp]
LBB0_2:
	mov	x1, sp
	mov	x0, x19
	bl	_si4713_s_modulator
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_DEFAULT_FREQUENCY,8,3          ; @DEFAULT_FREQUENCY
	.comm	_V4L2_TUNER_SUB_STEREO,4,2      ; @V4L2_TUNER_SUB_STEREO
	.comm	_V4L2_TUNER_SUB_MONO,4,2        ; @V4L2_TUNER_SUB_MONO
	.comm	_V4L2_TUNER_SUB_RDS,4,2         ; @V4L2_TUNER_SUB_RDS
	.no_dead_strip	_si4713_setup
.subsections_via_symbols
