	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda1997x_manual_hpd
_tda1997x_manual_hpd:                   ## @tda1997x_manual_hpd
	.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
	movl	%esi, %r13d
	movq	%rdi, %r14
	movq	_REG_HPD_AUTO_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_io_read
	movl	%eax, %ebx
	movq	_REG_HPD_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_io_read
	movl	%eax, %r12d
	movq	_REG_HPD_MAN_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_io_read
	addl	$-128, %r13d
	cmpl	$4, %r13d
	ja	LBB0_8
## %bb.1:
	movl	%ebx, %r8d
	movq	_HPD_MAN_CTRL_HPD_PULSE@GOTPCREL(%rip), %rdx
	movq	_HPD_MAN_CTRL_5VEN@GOTPCREL(%rip), %rsi
	movq	_HPD_MAN_CTRL_HPD_B@GOTPCREL(%rip), %rdi
	movq	_HPD_MAN_CTRL_HPD_A@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdi), %ecx
	movl	(%rdx), %ebx
	orl	%ecx, %ebx
	orl	(%rsi), %ebx
	andl	%eax, %ebx
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r13,4), %rdx
	addq	%rax, %rdx
	jmpq	*%rdx
LBB0_6:
	notl	%ecx
	andl	%ecx, %ebx
	jmp	LBB0_7
LBB0_4:
	notl	%ecx
	andl	%ecx, %ebx
	movq	_HPD_AUTO_HP_OTHER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movl	%r8d, %edx
	andl	%eax, %edx
	movq	_REG_HPD_AUTO_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_io_write
	jmp	LBB0_7
LBB0_2:
	movq	_HPD_POWER_BP_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r12d
	notl	%ecx
	andl	%ecx, %ebx
	movq	_REG_HPD_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_io_write
	jmp	LBB0_7
LBB0_5:
	movq	_HPD_AUTO_HP_OTHER@GOTPCREL(%rip), %rax
	movl	%r8d, %ebx
	orl	(%rax), %ebx
	movq	_REG_HPD_AUTO_CTRL@GOTPCREL(%rip), %r15
	jmp	LBB0_7
LBB0_3:
	movq	_HPD_POWER_BP_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r12d
	movq	_HPD_POWER_BP_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	btsl	%eax, %r12d
	movq	_REG_HPD_POWER@GOTPCREL(%rip), %r15
	movl	%r12d, %ebx
LBB0_7:
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_io_write
LBB0_8:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_4
	.long	L0_0_set_2
	.long	L0_0_set_5
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.comm	_REG_HPD_AUTO_CTRL,4,2          ## @REG_HPD_AUTO_CTRL
	.comm	_REG_HPD_POWER,4,2              ## @REG_HPD_POWER
	.comm	_REG_HPD_MAN_CTRL,4,2           ## @REG_HPD_MAN_CTRL
	.comm	_HPD_MAN_CTRL_HPD_PULSE,4,2     ## @HPD_MAN_CTRL_HPD_PULSE
	.comm	_HPD_MAN_CTRL_5VEN,4,2          ## @HPD_MAN_CTRL_5VEN
	.comm	_HPD_MAN_CTRL_HPD_B,4,2         ## @HPD_MAN_CTRL_HPD_B
	.comm	_HPD_MAN_CTRL_HPD_A,4,2         ## @HPD_MAN_CTRL_HPD_A
	.comm	_HPD_POWER_BP_MASK,4,2          ## @HPD_POWER_BP_MASK
	.comm	_HPD_POWER_BP_SHIFT,4,2         ## @HPD_POWER_BP_SHIFT
	.comm	_HPD_AUTO_HP_OTHER,4,2          ## @HPD_AUTO_HP_OTHER
	.no_dead_strip	_tda1997x_manual_hpd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda1997x_manual_hpd
_tda1997x_manual_hpd:                   ; @tda1997x_manual_hpd
	.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	x19, x0
Lloh0:
	adrp	x23, _REG_HPD_AUTO_CTRL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _REG_HPD_AUTO_CTRL@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_io_read
	mov	x21, x0
Lloh2:
	adrp	x24, _REG_HPD_POWER@GOTPAGE
Lloh3:
	ldr	x24, [x24, _REG_HPD_POWER@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_io_read
	mov	x20, x0
Lloh4:
	adrp	x8, _REG_HPD_MAN_CTRL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _REG_HPD_MAN_CTRL@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_io_read
	sub	w8, w22, #128
	cmp	w8, #4
	b.hi	LBB0_10
; %bb.1:
Lloh7:
	adrp	x9, _HPD_MAN_CTRL_HPD_PULSE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _HPD_MAN_CTRL_HPD_PULSE@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x9]
Lloh10:
	adrp	x9, _HPD_MAN_CTRL_5VEN@GOTPAGE
Lloh11:
	ldr	x9, [x9, _HPD_MAN_CTRL_5VEN@GOTPAGEOFF]
Lloh12:
	adrp	x11, _HPD_MAN_CTRL_HPD_B@GOTPAGE
Lloh13:
	ldr	x11, [x11, _HPD_MAN_CTRL_HPD_B@GOTPAGEOFF]
Lloh14:
	ldr	w12, [x9]
Lloh15:
	ldr	w9, [x11]
Lloh16:
	adrp	x11, _HPD_MAN_CTRL_HPD_A@GOTPAGE
Lloh17:
	ldr	x11, [x11, _HPD_MAN_CTRL_HPD_A@GOTPAGEOFF]
Lloh18:
	ldr	w11, [x11]
	orr	w9, w11, w9
	orr	w10, w9, w10
	orr	w10, w10, w12
	and	w10, w10, w0
Lloh19:
	adrp	x11, lJTI0_0@PAGE
Lloh20:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_2
	ldrb	w13, [x11, x8]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_2:
	bic	w20, w10, w9
	b	LBB0_6
LBB0_3:
	bic	w20, w10, w9
Lloh21:
	adrp	x8, _HPD_AUTO_HP_OTHER@GOTPAGE
Lloh22:
	ldr	x8, [x8, _HPD_AUTO_HP_OTHER@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	bic	w2, w21, w8
	ldr	w1, [x23]
	b	LBB0_5
LBB0_4:
Lloh24:
	adrp	x8, _HPD_POWER_BP_MASK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _HPD_POWER_BP_MASK@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	bic	w2, w20, w8
	bic	w20, w10, w9
	ldr	w1, [x24]
LBB0_5:
	mov	x0, x19
	bl	_io_write
LBB0_6:
Lloh27:
	adrp	x8, _REG_HPD_MAN_CTRL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _REG_HPD_MAN_CTRL@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh29:
	adrp	x8, _HPD_AUTO_HP_OTHER@GOTPAGE
Lloh30:
	ldr	x8, [x8, _HPD_AUTO_HP_OTHER@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	orr	w20, w8, w21
Lloh32:
	adrp	x8, _REG_HPD_AUTO_CTRL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _REG_HPD_AUTO_CTRL@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh34:
	adrp	x8, _HPD_POWER_BP_MASK@GOTPAGE
Lloh35:
	ldr	x8, [x8, _HPD_POWER_BP_MASK@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	bic	w8, w20, w8
Lloh37:
	adrp	x9, _HPD_POWER_BP_SHIFT@GOTPAGE
Lloh38:
	ldr	x9, [x9, _HPD_POWER_BP_SHIFT@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	mov	w10, #1
	lsl	w9, w10, w9
	orr	w20, w9, w8
Lloh40:
	adrp	x8, _REG_HPD_POWER@GOTPAGE
Lloh41:
	ldr	x8, [x8, _REG_HPD_POWER@GOTPAGEOFF]
LBB0_9:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_io_write
LBB0_10:
	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 AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh14
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
                                        ; -- End function
	.comm	_REG_HPD_AUTO_CTRL,4,2          ; @REG_HPD_AUTO_CTRL
	.comm	_REG_HPD_POWER,4,2              ; @REG_HPD_POWER
	.comm	_REG_HPD_MAN_CTRL,4,2           ; @REG_HPD_MAN_CTRL
	.comm	_HPD_MAN_CTRL_HPD_PULSE,4,2     ; @HPD_MAN_CTRL_HPD_PULSE
	.comm	_HPD_MAN_CTRL_5VEN,4,2          ; @HPD_MAN_CTRL_5VEN
	.comm	_HPD_MAN_CTRL_HPD_B,4,2         ; @HPD_MAN_CTRL_HPD_B
	.comm	_HPD_MAN_CTRL_HPD_A,4,2         ; @HPD_MAN_CTRL_HPD_A
	.comm	_HPD_POWER_BP_MASK,4,2          ; @HPD_POWER_BP_MASK
	.comm	_HPD_POWER_BP_SHIFT,4,2         ; @HPD_POWER_BP_SHIFT
	.comm	_HPD_AUTO_HP_OTHER,4,2          ; @HPD_AUTO_HP_OTHER
	.no_dead_strip	_tda1997x_manual_hpd
.subsections_via_symbols
