	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda1997x_irq_ddc
_tda1997x_irq_ddc:                      ## @tda1997x_irq_ddc
	.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
	movq	%rdi, %r15
	leaq	16(%rdi), %r14
	movq	_REG_INT_FLG_CLR_DDC@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_io_read
	movl	%eax, %ebx
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_io_write
	movq	_MASK_EDID_MTP@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_3
## %bb.1:
	cmpq	$0, 8(%r15)
	je	LBB0_3
## %bb.2:
	movq	$0, 8(%r15)
LBB0_3:
	movq	_MASK_DET_5V@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_4
## %bb.5:
	movl	(%r15), %ebx
	movq	%r14, %rdi
	callq	_tda1997x_detect_tx_5v
	movl	%ebx, %edi
	movl	%eax, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_v4l2_ctrl_s_ctrl               ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_INT_FLG_CLR_DDC,4,2        ## @REG_INT_FLG_CLR_DDC
	.comm	_MASK_EDID_MTP,4,2              ## @MASK_EDID_MTP
	.comm	_MASK_DET_5V,4,2                ## @MASK_DET_5V
	.no_dead_strip	_tda1997x_irq_ddc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda1997x_irq_ddc
_tda1997x_irq_ddc:                      ; @tda1997x_irq_ddc
	.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, x0
	add	x19, x0, #16
Lloh0:
	adrp	x22, _REG_INT_FLG_CLR_DDC@GOTPAGE
Lloh1:
	ldr	x22, [x22, _REG_INT_FLG_CLR_DDC@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_io_read
	mov	x21, x0
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x21
	bl	_io_write
Lloh2:
	adrp	x8, _MASK_EDID_MTP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MASK_EDID_MTP@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_3
; %bb.1:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_3
; %bb.2:
	str	xzr, [x20, #8]
LBB0_3:
Lloh5:
	adrp	x8, _MASK_DET_5V@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MASK_DET_5V@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_5
; %bb.4:
	ldr	w20, [x20]
	mov	x0, x19
	bl	_tda1997x_detect_tx_5v
	mov	x1, x0
	mov	x0, x20
	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
	b	_v4l2_ctrl_s_ctrl
LBB0_5:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_INT_FLG_CLR_DDC,4,2        ; @REG_INT_FLG_CLR_DDC
	.comm	_MASK_EDID_MTP,4,2              ; @MASK_EDID_MTP
	.comm	_MASK_DET_5V,4,2                ; @MASK_DET_5V
	.no_dead_strip	_tda1997x_irq_ddc
.subsections_via_symbols
