	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si4713_g_modulator
_si4713_g_modulator:                    ## @si4713_g_modulator
	.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	%rsi, %r14
	callq	_to_si4713_device
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	cmpq	$0, (%r14)
	jle	LBB0_5
## %bb.4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%rax, %r15
	movl	32(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	$4, %edx
	callq	_strscpy
	movq	_V4L2_TUNER_CAP_STEREO@GOTPCREL(%rip), %rax
	movq	_V4L2_TUNER_CAP_LOW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_V4L2_TUNER_CAP_RDS@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_V4L2_TUNER_CAP_RDS_CONTROLS@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 8(%r14)
	movq	_FREQ_RANGE_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_si4713_to_v4l2
	movq	%rax, 24(%r14)
	movq	_FREQ_RANGE_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_si4713_to_v4l2
	movq	%rax, 16(%r14)
	cmpq	$0, 16(%r15)
	je	LBB0_6
## %bb.7:
	movl	$0, -28(%rbp)
	movq	_SI4713_TX_COMPONENT_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	movq	%r15, %rdi
	callq	_si4713_read_property
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_16
## %bb.8:
	movl	-28(%rbp), %edi
	movl	$1, %esi
	movl	$2, %edx
	callq	_get_status_bit
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_11
LBB0_10:
	movq	_V4L2_TUNER_SUB_STEREO@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_6:
	movq	8(%r15), %rax
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_10
LBB0_11:
	movq	_V4L2_TUNER_SUB_MONO@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	cmpq	$0, (%r15)
	movq	_V4L2_TUNER_SUB_RDS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	je	LBB0_14
## %bb.13:
	orl	%ecx, %eax
	jmp	LBB0_15
LBB0_14:
	notl	%ecx
	andl	%ecx, %eax
LBB0_15:
	movl	%eax, 12(%r14)
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FM Modulator"

	.comm	_V4L2_TUNER_CAP_STEREO,4,2      ## @V4L2_TUNER_CAP_STEREO
	.comm	_V4L2_TUNER_CAP_LOW,4,2         ## @V4L2_TUNER_CAP_LOW
	.comm	_V4L2_TUNER_CAP_RDS,4,2         ## @V4L2_TUNER_CAP_RDS
	.comm	_V4L2_TUNER_CAP_RDS_CONTROLS,4,2 ## @V4L2_TUNER_CAP_RDS_CONTROLS
	.comm	_FREQ_RANGE_LOW,4,2             ## @FREQ_RANGE_LOW
	.comm	_FREQ_RANGE_HIGH,4,2            ## @FREQ_RANGE_HIGH
	.comm	_SI4713_TX_COMPONENT_ENABLE,4,2 ## @SI4713_TX_COMPONENT_ENABLE
	.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_g_modulator
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function si4713_g_modulator
_si4713_g_modulator:                    ; @si4713_g_modulator
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	bl	_to_si4713_device
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x19]
	cmp	x8, #1
	b.lt	LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_5:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
LBB0_6:
	mov	x20, x0
	ldr	w0, [x19, #32]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #4
	bl	_strscpy
Lloh6:
	adrp	x8, _V4L2_TUNER_CAP_STEREO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V4L2_TUNER_CAP_STEREO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _V4L2_TUNER_CAP_LOW@GOTPAGE
Lloh10:
	ldr	x9, [x9, _V4L2_TUNER_CAP_LOW@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh12:
	adrp	x9, _V4L2_TUNER_CAP_RDS@GOTPAGE
Lloh13:
	ldr	x9, [x9, _V4L2_TUNER_CAP_RDS@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _V4L2_TUNER_CAP_RDS_CONTROLS@GOTPAGE
Lloh16:
	ldr	x9, [x9, _V4L2_TUNER_CAP_RDS_CONTROLS@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19, #8]
Lloh18:
	adrp	x8, _FREQ_RANGE_LOW@GOTPAGE
Lloh19:
	ldr	x8, [x8, _FREQ_RANGE_LOW@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_si4713_to_v4l2
	str	x0, [x19, #24]
Lloh21:
	adrp	x8, _FREQ_RANGE_HIGH@GOTPAGE
Lloh22:
	ldr	x8, [x8, _FREQ_RANGE_HIGH@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_si4713_to_v4l2
	str	x0, [x19, #16]
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_9
; %bb.7:
	str	wzr, [sp, #12]
Lloh24:
	adrp	x8, _SI4713_TX_COMPONENT_ENABLE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SI4713_TX_COMPONENT_ENABLE@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	bl	_si4713_read_property
	mov	x21, x0
	tbnz	w0, #31, LBB0_5
; %bb.8:
	ldr	w0, [sp, #12]
	mov	w1, #1
	mov	w2, #2
	bl	_get_status_bit
	str	x0, [x20, #8]
	b	LBB0_10
LBB0_9:
	mov	w21, #0
	ldr	x0, [x20, #8]
LBB0_10:
Lloh27:
	adrp	x8, _V4L2_TUNER_SUB_MONO@GOTPAGE
Lloh28:
	ldr	x8, [x8, _V4L2_TUNER_SUB_MONO@GOTPAGEOFF]
Lloh29:
	adrp	x9, _V4L2_TUNER_SUB_STEREO@GOTPAGE
Lloh30:
	ldr	x9, [x9, _V4L2_TUNER_SUB_STEREO@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [x19, #12]
	ldr	x10, [x20]
Lloh31:
	adrp	x9, _V4L2_TUNER_SUB_RDS@GOTPAGE
Lloh32:
	ldr	x9, [x9, _V4L2_TUNER_SUB_RDS@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	cbz	x10, LBB0_12
; %bb.11:
	orr	w8, w8, w9
	b	LBB0_13
LBB0_12:
	bic	w8, w8, w9
LBB0_13:
	str	w8, [x19, #12]
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FM Modulator"

	.comm	_V4L2_TUNER_CAP_STEREO,4,2      ; @V4L2_TUNER_CAP_STEREO
	.comm	_V4L2_TUNER_CAP_LOW,4,2         ; @V4L2_TUNER_CAP_LOW
	.comm	_V4L2_TUNER_CAP_RDS,4,2         ; @V4L2_TUNER_CAP_RDS
	.comm	_V4L2_TUNER_CAP_RDS_CONTROLS,4,2 ; @V4L2_TUNER_CAP_RDS_CONTROLS
	.comm	_FREQ_RANGE_LOW,4,2             ; @FREQ_RANGE_LOW
	.comm	_FREQ_RANGE_HIGH,4,2            ; @FREQ_RANGE_HIGH
	.comm	_SI4713_TX_COMPONENT_ENABLE,4,2 ; @SI4713_TX_COMPONENT_ENABLE
	.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_g_modulator
.subsections_via_symbols
