	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tvp5150_reset
_tvp5150_reset:                         ## @tvp5150_reset
	.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	%rdi, %rbx
	callq	_to_tvp5150
	movq	%rax, %r14
	movq	16(%rax), %r15
	movq	_tvp5150_init_default@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_tvp5150_write_inittab
	cmpq	$0, 8(%r14)
	movq	_TVP5150_CONF_SHARED_PIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	je	LBB0_2
## %bb.1:
	xorl	%edx, %edx
	callq	_regmap_write
	movq	_TVP5150_INT_CONF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TVP5150_VDPOE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	$1, %edx
	movq	%r15, %rdi
	callq	_regmap_write
	movl	$1, %edx
	jmp	LBB0_3
LBB0_2:
	movl	$2, %edx
	callq	_regmap_write
	movq	_TVP5150_INT_CONF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TVP5150_VDPOE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_regmap_write
	xorl	%edx, %edx
LBB0_3:
	movq	_TVP5150_INTT_CONFIG_REG_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_regmap_write
	movq	%rbx, %rdi
	callq	_tvp5150_vdp_init
	movq	%rbx, %rdi
	callq	_tvp5150_selmux
	movq	%r14, %rdi
	callq	_v4l2_ctrl_handler_setup
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tvp5150_init_default,4,2       ## @tvp5150_init_default
	.comm	_TVP5150_CONF_SHARED_PIN,4,2    ## @TVP5150_CONF_SHARED_PIN
	.comm	_TVP5150_INT_CONF,4,2           ## @TVP5150_INT_CONF
	.comm	_TVP5150_VDPOE,4,2              ## @TVP5150_VDPOE
	.comm	_TVP5150_INTT_CONFIG_REG_B,4,2  ## @TVP5150_INTT_CONFIG_REG_B
	.no_dead_strip	_tvp5150_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tvp5150_reset
_tvp5150_reset:                         ; @tvp5150_reset
	.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	x19, x0
	bl	_to_tvp5150
	mov	x20, x0
	ldr	x21, [x0, #16]
Lloh0:
	adrp	x8, _tvp5150_init_default@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tvp5150_init_default@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_tvp5150_write_inittab
	ldr	x8, [x20, #8]
Lloh3:
	adrp	x9, _TVP5150_CONF_SHARED_PIN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TVP5150_CONF_SHARED_PIN@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	mov	x0, x21
	cbz	x8, LBB0_2
; %bb.1:
	mov	w2, #0
	bl	_regmap_write
Lloh6:
	adrp	x8, _TVP5150_INT_CONF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TVP5150_INT_CONF@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _TVP5150_VDPOE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TVP5150_VDPOE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	orr	w2, w8, #0x1
	mov	x0, x21
	bl	_regmap_write
	mov	w2, #1
	b	LBB0_3
LBB0_2:
	mov	w2, #2
	bl	_regmap_write
Lloh12:
	adrp	x8, _TVP5150_INT_CONF@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TVP5150_INT_CONF@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _TVP5150_VDPOE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TVP5150_VDPOE@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_regmap_write
	mov	w2, #0
LBB0_3:
Lloh18:
	adrp	x8, _TVP5150_INTT_CONFIG_REG_B@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TVP5150_INTT_CONFIG_REG_B@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_regmap_write
	mov	x0, x19
	bl	_tvp5150_vdp_init
	mov	x0, x19
	bl	_tvp5150_selmux
	mov	x0, x20
	bl	_v4l2_ctrl_handler_setup
	mov	w0, #0
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_tvp5150_init_default,4,2       ; @tvp5150_init_default
	.comm	_TVP5150_CONF_SHARED_PIN,4,2    ; @TVP5150_CONF_SHARED_PIN
	.comm	_TVP5150_INT_CONF,4,2           ; @TVP5150_INT_CONF
	.comm	_TVP5150_VDPOE,4,2              ; @TVP5150_VDPOE
	.comm	_TVP5150_INTT_CONFIG_REG_B,4,2  ; @TVP5150_INTT_CONFIG_REG_B
	.no_dead_strip	_tvp5150_reset
.subsections_via_symbols
