	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tvp5150_s_stream
_tvp5150_s_stream:                      ## @tvp5150_s_stream
	.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, %r12d
	movq	%rdi, %r15
	callq	_to_tvp5150
	movq	%rax, %r14
	movq	_TVP5150_MISC_CTL_YCBCR_OE@GOTPCREL(%rip), %rax
	movq	_TVP5150_MISC_CTL_SYNC_OE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_TVP5150_MISC_CTL_CLOCK_OE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	testl	%r12d, %r12d
	je	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	callq	_tvp5150_enable
	cmpq	$0, 8(%r14)
	je	LBB0_5
## %bb.3:
	cmpq	$0, 24(%r14)
	je	LBB0_4
LBB0_5:
	movl	(%r14), %r12d
	jmp	LBB0_6
LBB0_1:
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	jmp	LBB0_7
LBB0_4:
	xorl	%r12d, %r12d
LBB0_6:
	movq	_TVP5150_INT_A_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r14, %rdi
	addq	$16, %rdi
	movq	_tvp5150_ev_fmt@GOTPCREL(%rip), %rsi
	callq	_v4l2_subdev_notify_event
LBB0_7:
	movl	4(%r14), %edi
	movq	_TVP5150_MISC_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	movl	%r12d, %ecx
	callq	_regmap_update_bits
	cmpq	$0, 8(%r14)
	je	LBB0_9
## %bb.8:
	movl	4(%r14), %edi
	movq	_TVP5150_INT_ENABLE_REG_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TVP5150_INT_A_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %ecx
	callq	_regmap_update_bits
LBB0_9:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TVP5150_MISC_CTL_YCBCR_OE,4,2  ## @TVP5150_MISC_CTL_YCBCR_OE
	.comm	_TVP5150_MISC_CTL_SYNC_OE,4,2   ## @TVP5150_MISC_CTL_SYNC_OE
	.comm	_TVP5150_MISC_CTL_CLOCK_OE,4,2  ## @TVP5150_MISC_CTL_CLOCK_OE
	.comm	_TVP5150_INT_A_LOCK,4,2         ## @TVP5150_INT_A_LOCK
	.comm	_tvp5150_ev_fmt,4,2             ## @tvp5150_ev_fmt
	.comm	_TVP5150_MISC_CTL,4,2           ## @TVP5150_MISC_CTL
	.comm	_TVP5150_INT_ENABLE_REG_A,4,2   ## @TVP5150_INT_ENABLE_REG_A
	.no_dead_strip	_tvp5150_s_stream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tvp5150_s_stream
_tvp5150_s_stream:                      ; @tvp5150_s_stream
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x1
	mov	x21, x0
	bl	_to_tvp5150
	mov	x19, x0
Lloh0:
	adrp	x8, _TVP5150_MISC_CTL_YCBCR_OE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TVP5150_MISC_CTL_YCBCR_OE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _TVP5150_MISC_CTL_SYNC_OE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TVP5150_MISC_CTL_SYNC_OE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _TVP5150_MISC_CTL_CLOCK_OE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TVP5150_MISC_CTL_CLOCK_OE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w20, w8, w9
Lloh9:
	adrp	x23, _TVP5150_INT_A_LOCK@GOTPAGE
Lloh10:
	ldr	x23, [x23, _TVP5150_INT_A_LOCK@GOTPAGEOFF]
	cbz	w22, LBB0_4
; %bb.1:
	mov	x0, x21
	bl	_tvp5150_enable
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_5
LBB0_3:
	ldr	w22, [x19]
	b	LBB0_6
LBB0_4:
	mov	w21, #0
	b	LBB0_7
LBB0_5:
	mov	w22, #0
LBB0_6:
	ldr	w21, [x23]
	add	x0, x19, #16
Lloh11:
	adrp	x1, _tvp5150_ev_fmt@GOTPAGE
Lloh12:
	ldr	x1, [x1, _tvp5150_ev_fmt@GOTPAGEOFF]
	bl	_v4l2_subdev_notify_event
LBB0_7:
	ldr	w0, [x19, #4]
Lloh13:
	adrp	x8, _TVP5150_MISC_CTL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TVP5150_MISC_CTL@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x2, x20
	mov	x3, x22
	bl	_regmap_update_bits
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	w0, [x19, #4]
Lloh16:
	adrp	x8, _TVP5150_INT_ENABLE_REG_A@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TVP5150_INT_ENABLE_REG_A@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	ldr	w2, [x23]
	mov	x3, x21
	bl	_regmap_update_bits
LBB0_9:
	mov	w0, #0
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_TVP5150_MISC_CTL_YCBCR_OE,4,2  ; @TVP5150_MISC_CTL_YCBCR_OE
	.comm	_TVP5150_MISC_CTL_SYNC_OE,4,2   ; @TVP5150_MISC_CTL_SYNC_OE
	.comm	_TVP5150_MISC_CTL_CLOCK_OE,4,2  ; @TVP5150_MISC_CTL_CLOCK_OE
	.comm	_TVP5150_INT_A_LOCK,4,2         ; @TVP5150_INT_A_LOCK
	.comm	_tvp5150_ev_fmt,4,2             ; @tvp5150_ev_fmt
	.comm	_TVP5150_MISC_CTL,4,2           ; @TVP5150_MISC_CTL
	.comm	_TVP5150_INT_ENABLE_REG_A,4,2   ; @TVP5150_INT_ENABLE_REG_A
	.no_dead_strip	_tvp5150_s_stream
.subsections_via_symbols
