	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si4713_s_modulator
_si4713_s_modulator:                    ## @si4713_s_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	callq	_to_si4713_device
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	cmpq	$0, (%rbx)
	jle	LBB0_5
## %bb.4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%rax, %r12
	movl	8(%rbx), %eax
	movq	_V4L2_TUNER_SUB_STEREO@GOTPCREL(%rip), %rcx
	movl	$1, %r14d
	testl	%eax, (%rcx)
	jne	LBB0_8
## %bb.6:
	movq	_V4L2_TUNER_SUB_MONO@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	testl	%eax, (%rcx)
	je	LBB0_7
LBB0_8:
	movq	_V4L2_TUNER_SUB_RDS@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	testl	%eax, (%rcx)
	setne	%r15b
	cmpq	$0, 16(%r12)
	je	LBB0_9
## %bb.10:
	movq	_SI4713_TX_COMPONENT_ENABLE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-36(%rbp), %rdx
	movq	%r12, %rdi
	callq	_si4713_read_property
	testl	%eax, %eax
	js	LBB0_13
## %bb.11:
	movl	-36(%rbp), %edi
	movq	%r14, %rsi
	movl	$1, %edx
	movl	$2, %ecx
	callq	_set_bits
	movl	%eax, -36(%rbp)
	movl	%eax, %edi
	movq	%r15, %rsi
	movl	$2, %edx
	movl	$4, %ecx
	callq	_set_bits
	movl	%eax, -36(%rbp)
	movl	(%rbx), %esi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_si4713_write_property
	testl	%eax, %eax
	jns	LBB0_12
	jmp	LBB0_13
LBB0_9:
	xorl	%eax, %eax
LBB0_12:
	movq	%r14, 8(%r12)
	movq	%r15, (%r12)
	jmp	LBB0_13
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	movl	%r14d, %eax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EINVAL,4,2                     ## @EINVAL
	.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
	.comm	_SI4713_TX_COMPONENT_ENABLE,4,2 ## @SI4713_TX_COMPONENT_ENABLE
	.no_dead_strip	_si4713_s_modulator
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function si4713_s_modulator
_si4713_s_modulator:                    ; @si4713_s_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	x20, x1
	bl	_to_si4713_device
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x20]
	cmp	x8, #1
	b.lt	LBB0_6
LBB0_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	w0, w8
LBB0_5:
	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	x19, x0
	ldr	w8, [x20, #8]
Lloh4:
	adrp	x9, _V4L2_TUNER_SUB_STEREO@GOTPAGE
Lloh5:
	ldr	x9, [x9, _V4L2_TUNER_SUB_STEREO@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	mov	w20, #1
	b	LBB0_10
LBB0_8:
Lloh7:
	adrp	x9, _V4L2_TUNER_SUB_MONO@GOTPAGE
Lloh8:
	ldr	x9, [x9, _V4L2_TUNER_SUB_MONO@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.9:
	mov	x20, #0
LBB0_10:
Lloh10:
	adrp	x9, _V4L2_TUNER_SUB_RDS@GOTPAGE
Lloh11:
	ldr	x9, [x9, _V4L2_TUNER_SUB_RDS@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w21, ne
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_13
; %bb.11:
Lloh13:
	adrp	x22, _SI4713_TX_COMPONENT_ENABLE@GOTPAGE
Lloh14:
	ldr	x22, [x22, _SI4713_TX_COMPONENT_ENABLE@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x2, sp, #12
	mov	x0, x19
	bl	_si4713_read_property
	tbnz	w0, #31, LBB0_5
; %bb.12:
	ldr	w0, [sp, #12]
	mov	x1, x20
	mov	w2, #1
	mov	w3, #2
	bl	_set_bits
	str	w0, [sp, #12]
	mov	x1, x21
	mov	w2, #2
	mov	w3, #4
	bl	_set_bits
	mov	x2, x0
	str	w0, [sp, #12]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_si4713_write_property
	tbz	w0, #31, LBB0_14
	b	LBB0_5
LBB0_13:
	mov	w0, #0
LBB0_14:
	stp	x21, x20, [x19]
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EINVAL,4,2                     ; @EINVAL
	.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
	.comm	_SI4713_TX_COMPONENT_ENABLE,4,2 ; @SI4713_TX_COMPONENT_ENABLE
	.no_dead_strip	_si4713_s_modulator
.subsections_via_symbols
