	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda1997x_irq_sus
_tda1997x_irq_sus:                      ## @tda1997x_irq_sus
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_REG_INT_FLG_CLR_SUS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_io_read
	movl	%eax, %r15d
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_io_write
	movq	_MASK_MPT@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_3
## %bb.1:
	cmpq	$0, 16(%r14)
	je	LBB0_3
## %bb.2:
	movq	$0, 16(%r14)
LBB0_3:
	movq	_MASK_SUS_END@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_5
## %bb.4:
	movq	_REG_HDMI_INFO_RST@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_io_read
	movl	%eax, %ebx
	movq	_MASK_SR_FIFO_FIFO_CTRL@GOTPCREL(%rip), %r13
	orl	(%r13), %ebx
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_io_write
	movl	(%r13), %edx
	notl	%edx
	andl	%ebx, %edx
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_io_write
	movq	$0, 8(%r14)
LBB0_5:
	movq	_REG_SUS_STATUS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_io_read
	movq	_MASK_SUS_STATUS@GOTPCREL(%rip), %r13
	andl	(%r13), %eax
	movq	_LAST_STATE_REACHED@GOTPCREL(%rip), %r12
	cmpl	(%r12), %eax
	jne	LBB0_8
## %bb.6:
	movq	_MASK_MPT@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_7
LBB0_8:
	movq	_MASK_FMT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	notl	%ecx
	andl	%ecx, %r15d
	jmp	LBB0_9
LBB0_7:
	movq	_MASK_FMT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_9:
	movq	_MASK_SUS_END@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	testl	%r15d, %eax
	je	LBB0_14
## %bb.10:
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_io_read
	andl	(%r13), %eax
	cmpl	(%r12), %eax
	jne	LBB0_15
## %bb.11:
	movq	_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_13
## %bb.12:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_tda1997x_detect_std
LBB0_13:
	movq	_tda1997x_ev_fmt@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_v4l2_subdev_notify_event       ## TAILCALL
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movl	4(%r14), %edi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_v4l_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_INT_FLG_CLR_SUS,4,2        ## @REG_INT_FLG_CLR_SUS
	.comm	_MASK_MPT,4,2                   ## @MASK_MPT
	.comm	_MASK_SUS_END,4,2               ## @MASK_SUS_END
	.comm	_REG_HDMI_INFO_RST,4,2          ## @REG_HDMI_INFO_RST
	.comm	_MASK_SR_FIFO_FIFO_CTRL,4,2     ## @MASK_SR_FIFO_FIFO_CTRL
	.comm	_REG_SUS_STATUS,4,2             ## @REG_SUS_STATUS
	.comm	_MASK_SUS_STATUS,4,2            ## @MASK_SUS_STATUS
	.comm	_LAST_STATE_REACHED,4,2         ## @LAST_STATE_REACHED
	.comm	_MASK_FMT,4,2                   ## @MASK_FMT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BAD SUS STATUS\n"

	.comm	_debug,8,3                      ## @debug
	.comm	_tda1997x_ev_fmt,4,2            ## @tda1997x_ev_fmt
	.no_dead_strip	_tda1997x_irq_sus
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda1997x_irq_sus
_tda1997x_irq_sus:                      ; @tda1997x_irq_sus
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x21, _REG_INT_FLG_CLR_SUS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _REG_INT_FLG_CLR_SUS@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_io_read
	mov	x20, x0
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_io_write
Lloh2:
	adrp	x23, _MASK_MPT@GOTPAGE
Lloh3:
	ldr	x23, [x23, _MASK_MPT@GOTPAGEOFF]
	ldr	w8, [x23]
	tst	w8, w20
	b.eq	LBB0_3
; %bb.1:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_3
; %bb.2:
	str	xzr, [x19, #16]
LBB0_3:
Lloh4:
	adrp	x22, _MASK_SUS_END@GOTPAGE
Lloh5:
	ldr	x22, [x22, _MASK_SUS_END@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w20
	b.eq	LBB0_5
; %bb.4:
Lloh6:
	adrp	x24, _REG_HDMI_INFO_RST@GOTPAGE
Lloh7:
	ldr	x24, [x24, _REG_HDMI_INFO_RST@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_io_read
Lloh8:
	adrp	x25, _MASK_SR_FIFO_FIFO_CTRL@GOTPAGE
Lloh9:
	ldr	x25, [x25, _MASK_SR_FIFO_FIFO_CTRL@GOTPAGEOFF]
	ldr	w8, [x25]
	orr	w21, w8, w0
	ldr	w1, [x24]
	mov	x0, x19
	mov	x2, x21
	bl	_io_write
	ldr	w8, [x25]
	bic	w2, w21, w8
	ldr	w1, [x24]
	mov	x0, x19
	bl	_io_write
	str	xzr, [x19, #8]
LBB0_5:
Lloh10:
	adrp	x21, _REG_SUS_STATUS@GOTPAGE
Lloh11:
	ldr	x21, [x21, _REG_SUS_STATUS@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_io_read
Lloh12:
	adrp	x24, _MASK_SUS_STATUS@GOTPAGE
Lloh13:
	ldr	x24, [x24, _MASK_SUS_STATUS@GOTPAGEOFF]
	ldr	w8, [x24]
	and	w8, w8, w0
Lloh14:
	adrp	x25, _LAST_STATE_REACHED@GOTPAGE
Lloh15:
	ldr	x25, [x25, _LAST_STATE_REACHED@GOTPAGEOFF]
	ldr	w9, [x25]
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.6:
	ldr	w8, [x23]
	tst	w8, w20
	b.eq	LBB0_8
LBB0_7:
Lloh16:
	adrp	x8, _MASK_FMT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MASK_FMT@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	bic	w20, w20, w8
	b	LBB0_9
LBB0_8:
Lloh19:
	adrp	x8, _MASK_FMT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MASK_FMT@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
LBB0_9:
	ldr	w9, [x22]
	orr	w8, w9, w8
	tst	w8, w20
	b.eq	LBB0_14
; %bb.10:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_io_read
	ldr	w8, [x24]
	and	w8, w8, w0
	ldr	w9, [x25]
	cmp	w8, w9
	b.ne	LBB0_15
; %bb.11:
Lloh22:
	adrp	x8, _debug@GOTPAGE
Lloh23:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	cbz	x8, LBB0_13
; %bb.12:
	mov	x0, x19
	mov	x1, #0
	bl	_tda1997x_detect_std
LBB0_13:
Lloh25:
	adrp	x1, _tda1997x_ev_fmt@GOTPAGE
Lloh26:
	ldr	x1, [x1, _tda1997x_ev_fmt@GOTPAGEOFF]
	mov	x0, x19
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_v4l2_subdev_notify_event
LBB0_14:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_15:
	ldr	w0, [x19, #4]
Lloh27:
	adrp	x1, l_.str@PAGE
Lloh28:
	add	x1, x1, l_.str@PAGEOFF
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_v4l_err
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_INT_FLG_CLR_SUS,4,2        ; @REG_INT_FLG_CLR_SUS
	.comm	_MASK_MPT,4,2                   ; @MASK_MPT
	.comm	_MASK_SUS_END,4,2               ; @MASK_SUS_END
	.comm	_REG_HDMI_INFO_RST,4,2          ; @REG_HDMI_INFO_RST
	.comm	_MASK_SR_FIFO_FIFO_CTRL,4,2     ; @MASK_SR_FIFO_FIFO_CTRL
	.comm	_REG_SUS_STATUS,4,2             ; @REG_SUS_STATUS
	.comm	_MASK_SUS_STATUS,4,2            ; @MASK_SUS_STATUS
	.comm	_LAST_STATE_REACHED,4,2         ; @LAST_STATE_REACHED
	.comm	_MASK_FMT,4,2                   ; @MASK_FMT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BAD SUS STATUS\n"

	.comm	_debug,8,3                      ; @debug
	.comm	_tda1997x_ev_fmt,4,2            ; @tda1997x_ev_fmt
	.no_dead_strip	_tda1997x_irq_sus
.subsections_via_symbols
