	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tvp5150_isr
_tvp5150_isr:                           ## @tvp5150_isr
	.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, %r15
	movq	16(%rsi), %r14
	movl	$0, -40(%rbp)
	movl	$0, -36(%rbp)
	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
	movq	_TVP5150_INT_STATUS_REG_A@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-36(%rbp), %rdx
	movq	%r14, %rdi
	callq	_regmap_read
	movl	-36(%rbp), %edx
	testl	%edx, %edx
	je	LBB0_6
## %bb.1:
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_regmap_write
	movl	-36(%rbp), %eax
	movq	_TVP5150_INT_A_LOCK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.2:
	movq	_TVP5150_INT_A_LOCK_STATUS@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	leaq	8(%r15), %r12
	xorl	%ecx, %ecx
	testl	%eax, %eax
	setne	%cl
	movl	%ecx, (%r15)
	movl	8(%r15), %edi
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %r8
	cmovneq	%rax, %r8
	leaq	L_.str(%rip), %rcx
	movl	$1, %esi
	callq	_dev_dbg_lvl
	movq	_tvp5150_ev_fmt@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	callq	_v4l2_subdev_notify_event
	movq	_TVP5150_MISC_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	cmpl	$0, (%r15)
	je	LBB0_3
## %bb.4:
	movl	4(%r15), %ecx
	jmp	LBB0_5
LBB0_6:
	movq	_TVP5150_INT_ACTIVE_REG_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	movq	%r14, %rdi
	callq	_regmap_read
	cmpl	$0, -40(%rbp)
	je	LBB0_9
## %bb.7:
	movl	$0, -36(%rbp)
	movq	_TVP5150_INT_STATUS_REG_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	movq	%r14, %rdi
	callq	_regmap_read
	movl	-36(%rbp), %edx
	testl	%edx, %edx
	je	LBB0_9
## %bb.8:
	movq	_TVP5150_INT_RESET_REG_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_regmap_write
	jmp	LBB0_9
LBB0_3:
	xorl	%ecx, %ecx
LBB0_5:
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_regmap_update_bits
LBB0_9:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$16, %rsp
	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_STATUS_REG_A,4,2   ## @TVP5150_INT_STATUS_REG_A
	.comm	_TVP5150_INT_A_LOCK,4,2         ## @TVP5150_INT_A_LOCK
	.comm	_TVP5150_INT_A_LOCK_STATUS,4,2  ## @TVP5150_INT_A_LOCK_STATUS
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sync lo%s signal\n"

L_.str.1:                               ## @.str.1
	.asciz	"ck"

L_.str.2:                               ## @.str.2
	.asciz	"ss"

	.comm	_tvp5150_ev_fmt,4,2             ## @tvp5150_ev_fmt
	.comm	_TVP5150_MISC_CTL,4,2           ## @TVP5150_MISC_CTL
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_TVP5150_INT_ACTIVE_REG_B,4,2   ## @TVP5150_INT_ACTIVE_REG_B
	.comm	_TVP5150_INT_STATUS_REG_B,4,2   ## @TVP5150_INT_STATUS_REG_B
	.comm	_TVP5150_INT_RESET_REG_B,4,2    ## @TVP5150_INT_RESET_REG_B
	.no_dead_strip	_tvp5150_isr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tvp5150_isr
_tvp5150_isr:                           ; @tvp5150_isr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x1
	ldr	x19, [x1, #16]
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _TVP5150_MISC_CTL_YCBCR_OE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TVP5150_MISC_CTL_YCBCR_OE@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x8, _TVP5150_MISC_CTL_SYNC_OE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TVP5150_MISC_CTL_SYNC_OE@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
Lloh6:
	adrp	x8, _TVP5150_MISC_CTL_CLOCK_OE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TVP5150_MISC_CTL_CLOCK_OE@GOTPAGEOFF]
Lloh8:
	ldr	w23, [x8]
Lloh9:
	adrp	x24, _TVP5150_INT_STATUS_REG_A@GOTPAGE
Lloh10:
	ldr	x24, [x24, _TVP5150_INT_STATUS_REG_A@GOTPAGEOFF]
	ldr	w1, [x24]
	add	x2, sp, #8
	mov	x0, x19
	bl	_regmap_read
	ldr	w2, [sp, #8]
	cbz	w2, LBB0_4
; %bb.1:
	ldr	w1, [x24]
	mov	x0, x19
	bl	_regmap_write
	ldr	w8, [sp, #8]
Lloh11:
	adrp	x9, _TVP5150_INT_A_LOCK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _TVP5150_INT_A_LOCK@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.2:
	orr	w9, w22, w21
	orr	w21, w9, w23
Lloh14:
	adrp	x9, _TVP5150_INT_A_LOCK_STATUS@GOTPAGE
Lloh15:
	ldr	x9, [x9, _TVP5150_INT_A_LOCK_STATUS@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, ne
	str	w8, [x20]
	mov	x22, x20
	ldr	w0, [x22, #8]!
Lloh17:
	adrp	x8, _debug@GOTPAGE
Lloh18:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
Lloh20:
	adrp	x8, l_.str.2@PAGE
Lloh21:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh22:
	adrp	x9, l_.str.1@PAGE
Lloh23:
	add	x9, x9, l_.str.1@PAGEOFF
	csel	x4, x9, x8, ne
Lloh24:
	adrp	x3, l_.str@PAGE
Lloh25:
	add	x3, x3, l_.str@PAGEOFF
	mov	w1, #1
	bl	_dev_dbg_lvl
Lloh26:
	adrp	x1, _tvp5150_ev_fmt@GOTPAGE
Lloh27:
	ldr	x1, [x1, _tvp5150_ev_fmt@GOTPAGEOFF]
	mov	x0, x22
	bl	_v4l2_subdev_notify_event
Lloh28:
	adrp	x8, _TVP5150_MISC_CTL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _TVP5150_MISC_CTL@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	ldr	w8, [x20]
	cbz	w8, LBB0_7
; %bb.3:
	ldr	w3, [x20, #4]
	b	LBB0_8
LBB0_4:
Lloh31:
	adrp	x8, _TVP5150_INT_ACTIVE_REG_B@GOTPAGE
Lloh32:
	ldr	x8, [x8, _TVP5150_INT_ACTIVE_REG_B@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_regmap_read
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_9
; %bb.5:
	str	wzr, [sp, #8]
Lloh34:
	adrp	x8, _TVP5150_INT_STATUS_REG_B@GOTPAGE
Lloh35:
	ldr	x8, [x8, _TVP5150_INT_STATUS_REG_B@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_regmap_read
	ldr	w2, [sp, #8]
	cbz	w2, LBB0_9
; %bb.6:
Lloh37:
	adrp	x8, _TVP5150_INT_RESET_REG_B@GOTPAGE
Lloh38:
	ldr	x8, [x8, _TVP5150_INT_RESET_REG_B@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_regmap_write
	b	LBB0_9
LBB0_7:
	mov	w3, #0
LBB0_8:
	mov	x0, x19
	mov	x2, x21
	bl	_regmap_update_bits
LBB0_9:
Lloh40:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh41:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.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_STATUS_REG_A,4,2   ; @TVP5150_INT_STATUS_REG_A
	.comm	_TVP5150_INT_A_LOCK,4,2         ; @TVP5150_INT_A_LOCK
	.comm	_TVP5150_INT_A_LOCK_STATUS,4,2  ; @TVP5150_INT_A_LOCK_STATUS
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sync lo%s signal\n"

l_.str.1:                               ; @.str.1
	.asciz	"ck"

l_.str.2:                               ; @.str.2
	.asciz	"ss"

	.comm	_tvp5150_ev_fmt,4,2             ; @tvp5150_ev_fmt
	.comm	_TVP5150_MISC_CTL,4,2           ; @TVP5150_MISC_CTL
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_TVP5150_INT_ACTIVE_REG_B,4,2   ; @TVP5150_INT_ACTIVE_REG_B
	.comm	_TVP5150_INT_STATUS_REG_B,4,2   ; @TVP5150_INT_STATUS_REG_B
	.comm	_TVP5150_INT_RESET_REG_B,4,2    ; @TVP5150_INT_RESET_REG_B
	.no_dead_strip	_tvp5150_isr
.subsections_via_symbols
