	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __adv7511_power_on
___adv7511_power_on:                    ## @__adv7511_power_on
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	$-1, (%rdi)
	movl	4(%rdi), %edi
	movq	_ADV7511_REG_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ADV7511_POWER_POWER_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_regmap_update_bits
	movq	8(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movl	4(%rbx), %r14d
	xorl	%edi, %edi
	callq	_ADV7511_REG_INT_ENABLE
	movq	_ADV7511_INT0_EDID_READY@GOTPCREL(%rip), %rcx
	movq	_ADV7511_INT0_HPD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_regmap_write
	movl	4(%rbx), %r14d
	movl	$1, %edi
	callq	_ADV7511_REG_INT_ENABLE
	movq	_ADV7511_INT1_DDC_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%r14d, %edi
	movl	%eax, %esi
	movl	%ecx, %edx
	callq	_regmap_update_bits
LBB0_2:
	movl	4(%rbx), %edi
	movq	_ADV7511_REG_POWER2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ADV7511_REG_POWER2_HPD_SRC_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ADV7511_REG_POWER2_HPD_SRC_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_regmap_update_bits             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ADV7511_REG_POWER,4,2          ## @ADV7511_REG_POWER
	.comm	_ADV7511_POWER_POWER_DOWN,4,2   ## @ADV7511_POWER_POWER_DOWN
	.comm	_ADV7511_INT0_EDID_READY,4,2    ## @ADV7511_INT0_EDID_READY
	.comm	_ADV7511_INT0_HPD,4,2           ## @ADV7511_INT0_HPD
	.comm	_ADV7511_INT1_DDC_ERROR,4,2     ## @ADV7511_INT1_DDC_ERROR
	.comm	_ADV7511_REG_POWER2,4,2         ## @ADV7511_REG_POWER2
	.comm	_ADV7511_REG_POWER2_HPD_SRC_MASK,4,2 ## @ADV7511_REG_POWER2_HPD_SRC_MASK
	.comm	_ADV7511_REG_POWER2_HPD_SRC_NONE,4,2 ## @ADV7511_REG_POWER2_HPD_SRC_NONE
	.no_dead_strip	___adv7511_power_on
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __adv7511_power_on
___adv7511_power_on:                    ; @__adv7511_power_on
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	w8, #-1
	str	w8, [x0]
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x8, _ADV7511_REG_POWER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADV7511_REG_POWER@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _ADV7511_POWER_POWER_DOWN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ADV7511_POWER_POWER_DOWN@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_regmap_update_bits
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w20, [x19, #4]
	mov	w0, #0
	bl	_ADV7511_REG_INT_ENABLE
	mov	x1, x0
Lloh6:
	adrp	x8, _ADV7511_INT0_EDID_READY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ADV7511_INT0_EDID_READY@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _ADV7511_INT0_HPD@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ADV7511_INT0_HPD@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x20
	bl	_regmap_write
	ldr	w20, [x19, #4]
	mov	w0, #1
	bl	_ADV7511_REG_INT_ENABLE
	mov	x1, x0
Lloh12:
	adrp	x8, _ADV7511_INT1_DDC_ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ADV7511_INT1_DDC_ERROR@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, x2
	bl	_regmap_update_bits
LBB0_2:
Lloh15:
	adrp	x8, _ADV7511_REG_POWER2@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ADV7511_REG_POWER2@GOTPAGEOFF]
	ldr	w0, [x19, #4]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _ADV7511_REG_POWER2_HPD_SRC_MASK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ADV7511_REG_POWER2_HPD_SRC_MASK@GOTPAGEOFF]
Lloh20:
	adrp	x9, _ADV7511_REG_POWER2_HPD_SRC_NONE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _ADV7511_REG_POWER2_HPD_SRC_NONE@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
Lloh23:
	ldr	w3, [x9]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_regmap_update_bits
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh22
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ADV7511_REG_POWER,4,2          ; @ADV7511_REG_POWER
	.comm	_ADV7511_POWER_POWER_DOWN,4,2   ; @ADV7511_POWER_POWER_DOWN
	.comm	_ADV7511_INT0_EDID_READY,4,2    ; @ADV7511_INT0_EDID_READY
	.comm	_ADV7511_INT0_HPD,4,2           ; @ADV7511_INT0_HPD
	.comm	_ADV7511_INT1_DDC_ERROR,4,2     ; @ADV7511_INT1_DDC_ERROR
	.comm	_ADV7511_REG_POWER2,4,2         ; @ADV7511_REG_POWER2
	.comm	_ADV7511_REG_POWER2_HPD_SRC_MASK,4,2 ; @ADV7511_REG_POWER2_HPD_SRC_MASK
	.comm	_ADV7511_REG_POWER2_HPD_SRC_NONE,4,2 ; @ADV7511_REG_POWER2_HPD_SRC_NONE
	.no_dead_strip	___adv7511_power_on
.subsections_via_symbols
