	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl2832_slave_ts_ctrl
_rtl2832_slave_ts_ctrl:                 ## @rtl2832_slave_ts_ctrl
	.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
	movl	%esi, %r14d
	movq	%rdi, %r12
	callq	_i2c_get_clientdata
	movq	%rax, %r15
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_dev_dbg
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.1:
	movq	_DVBT_SOFT_RST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_rtl2832_wr_demod_reg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.2:
	movl	4(%r15), %edi
	leaq	L_.str.1(%rip), %rdx
	movl	$268, %esi                      ## imm = 0x10C
	movl	$2, %ecx
	callq	_regmap_bulk_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.3:
	movq	_DVBT_PIP_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_rtl2832_wr_demod_reg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.4:
	movl	4(%r15), %edi
	leaq	L_.str.2(%rip), %rdx
	movl	$188, %esi
	movl	$1, %ecx
	callq	_regmap_bulk_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.5:
	movl	4(%r15), %edi
	leaq	L_.str.3(%rip), %rdx
	movl	$402, %esi                      ## imm = 0x192
	movl	$3, %ecx
	callq	_regmap_bulk_write
	jmp	LBB0_11
LBB0_6:
	movl	4(%r15), %edi
	leaq	L_.str.4(%rip), %rdx
	movl	$402, %esi                      ## imm = 0x192
	movl	$3, %ecx
	callq	_regmap_bulk_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.7:
	movl	4(%r15), %edi
	leaq	L_.str.5(%rip), %rdx
	movl	$188, %esi
	movl	$1, %ecx
	callq	_regmap_bulk_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.8:
	movq	_DVBT_PIP_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_rtl2832_wr_demod_reg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.9:
	movl	4(%r15), %edi
	leaq	l_.str.6(%rip), %rdx
	movl	$268, %esi                      ## imm = 0x10C
	movl	$2, %ecx
	callq	_regmap_bulk_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.10:
	movq	_DVBT_SOFT_RST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_rtl2832_wr_demod_reg
LBB0_11:
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_12
LBB0_13:
	leaq	L_.str.7(%rip), %rsi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_dev_dbg
LBB0_14:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	%r14d, (%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"enable=%d\n"

	.comm	_DVBT_SOFT_RST,4,2              ## @DVBT_SOFT_RST
L_.str.1:                               ## @.str.1
	.asciz	"_\377"

	.comm	_DVBT_PIP_ON,4,2                ## @DVBT_PIP_ON
L_.str.2:                               ## @.str.2
	.asciz	"\030"

L_.str.3:                               ## @.str.3
	.asciz	"\177\367\377"

	.section	__TEXT,__literal4,4byte_literals
L_.str.4:                               ## @.str.4
	.asciz	"\000\017\377"

	.section	__TEXT,__cstring,cstring_literals
L_.str.5:                               ## @.str.5
	.asciz	"\b"

	.section	__TEXT,__const
l_.str.6:                               ## @.str.6
	.space	3

	.section	__TEXT,__cstring,cstring_literals
L_.str.7:                               ## @.str.7
	.asciz	"failed=%d\n"

	.no_dead_strip	_rtl2832_slave_ts_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl2832_slave_ts_ctrl
_rtl2832_slave_ts_ctrl:                 ; @rtl2832_slave_ts_ctrl
	.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	x20, x1
	mov	x19, x0
	bl	_i2c_get_clientdata
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_dbg
	cbz	w20, LBB0_6
; %bb.1:
Lloh2:
	adrp	x8, _DVBT_SOFT_RST@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DVBT_SOFT_RST@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	bl	_rtl2832_wr_demod_reg
	mov	x22, x0
	cbnz	w0, LBB0_12
; %bb.2:
	ldr	w0, [x21, #4]
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w1, #268
	mov	w3, #2
	bl	_regmap_bulk_write
	mov	x22, x0
	cbnz	w0, LBB0_12
; %bb.3:
Lloh7:
	adrp	x8, _DVBT_PIP_ON@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DVBT_PIP_ON@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #1
	bl	_rtl2832_wr_demod_reg
	mov	x22, x0
	cbnz	w0, LBB0_12
; %bb.4:
	ldr	w0, [x21, #4]
Lloh10:
	adrp	x2, l_.str.2@PAGE
Lloh11:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w1, #188
	mov	w3, #1
	bl	_regmap_bulk_write
	mov	x22, x0
	cbnz	w0, LBB0_12
; %bb.5:
	ldr	w0, [x21, #4]
Lloh12:
	adrp	x2, l_.str.3@PAGE
Lloh13:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	w1, #402
	mov	w3, #3
	bl	_regmap_bulk_write
	b	LBB0_11
LBB0_6:
	ldr	w0, [x21, #4]
Lloh14:
	adrp	x2, l_.str.4@PAGE
Lloh15:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	w1, #402
	mov	w3, #3
	bl	_regmap_bulk_write
	mov	x22, x0
	cbnz	w0, LBB0_12
; %bb.7:
	ldr	w0, [x21, #4]
Lloh16:
	adrp	x2, l_.str.5@PAGE
Lloh17:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	w1, #188
	mov	w3, #1
	bl	_regmap_bulk_write
	mov	x22, x0
	cbnz	w0, LBB0_12
; %bb.8:
Lloh18:
	adrp	x8, _DVBT_PIP_ON@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DVBT_PIP_ON@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	bl	_rtl2832_wr_demod_reg
	mov	x22, x0
	cbnz	w0, LBB0_12
; %bb.9:
	ldr	w0, [x21, #4]
Lloh21:
	adrp	x2, l_.str.6@PAGE
Lloh22:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	w1, #268
	mov	w3, #2
	bl	_regmap_bulk_write
	mov	x22, x0
	cbnz	w0, LBB0_12
; %bb.10:
Lloh23:
	adrp	x8, _DVBT_SOFT_RST@GOTPAGE
Lloh24:
	ldr	x8, [x8, _DVBT_SOFT_RST@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #1
	bl	_rtl2832_wr_demod_reg
LBB0_11:
	mov	x22, x0
	cbz	w0, LBB0_14
LBB0_12:
Lloh26:
	adrp	x1, l_.str.7@PAGE
Lloh27:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_dev_dbg
LBB0_13:
	mov	x0, x22
	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
LBB0_14:
	mov	w22, #0
	str	w20, [x21]
	b	LBB0_13
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"enable=%d\n"

	.comm	_DVBT_SOFT_RST,4,2              ; @DVBT_SOFT_RST
l_.str.1:                               ; @.str.1
	.asciz	"_\377"

	.comm	_DVBT_PIP_ON,4,2                ; @DVBT_PIP_ON
l_.str.2:                               ; @.str.2
	.asciz	"\030"

l_.str.3:                               ; @.str.3
	.asciz	"\177\367\377"

	.section	__TEXT,__literal4,4byte_literals
l_.str.4:                               ; @.str.4
	.asciz	"\000\017\377"

	.section	__TEXT,__cstring,cstring_literals
l_.str.5:                               ; @.str.5
	.asciz	"\b"

	.section	__TEXT,__const
l_.str.6:                               ; @.str.6
	.space	3

	.section	__TEXT,__cstring,cstring_literals
l_.str.7:                               ; @.str.7
	.asciz	"failed=%d\n"

	.no_dead_strip	_rtl2832_slave_ts_ctrl
.subsections_via_symbols
