	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adv748x_reset
_adv748x_reset:                         ## @adv748x_reset
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_adv748x_sw_reset
	testl	%eax, %eax
	js	LBB0_10
## %bb.1:
	movq	%r14, %rdi
	callq	_adv748x_set_slave_addresses
	testl	%eax, %eax
	js	LBB0_10
## %bb.2:
	movq	_adv748x_init_hdmi@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_adv748x_write_regs
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.3:
	movq	_adv748x_init_afe@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_adv748x_write_regs
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.4:
	leaq	4(%r14), %r15
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_adv748x_tx_power
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_adv748x_tx_power
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_adv748x_tx_power
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_adv748x_tx_power
	movq	_ADV748X_IO_PD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ADV748X_IO_PD_RX_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_io_write
	movq	%r15, %rdi
	callq	_is_tx_enabled
	movl	$0, %r15d
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_ADV748X_IO_10_CSI4_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_6:
	movq	%r14, %rdi
	callq	_is_tx_enabled
	movl	$0, %edx
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_ADV748X_IO_10_CSI1_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_8:
	orl	%r15d, %edx
	movq	_ADV748X_IO_10@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_io_write
	movq	_ADV748X_CP_CLMP_POS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ADV748X_CP_CLMP_POS_DIS_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	%ecx, %edx
	callq	_cp_clrset
	jmp	LBB0_11
LBB0_10:
	movl	%eax, %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_adv748x_init_hdmi,4,2          ## @adv748x_init_hdmi
	.comm	_adv748x_init_afe,4,2           ## @adv748x_init_afe
	.comm	_ADV748X_IO_PD,4,2              ## @ADV748X_IO_PD
	.comm	_ADV748X_IO_PD_RX_EN,4,2        ## @ADV748X_IO_PD_RX_EN
	.comm	_ADV748X_IO_10_CSI4_EN,4,2      ## @ADV748X_IO_10_CSI4_EN
	.comm	_ADV748X_IO_10_CSI1_EN,4,2      ## @ADV748X_IO_10_CSI1_EN
	.comm	_ADV748X_IO_10,4,2              ## @ADV748X_IO_10
	.comm	_ADV748X_CP_CLMP_POS,4,2        ## @ADV748X_CP_CLMP_POS
	.comm	_ADV748X_CP_CLMP_POS_DIS_AUTO,4,2 ## @ADV748X_CP_CLMP_POS_DIS_AUTO
	.no_dead_strip	_adv748x_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adv748x_reset
_adv748x_reset:                         ; @adv748x_reset
	.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
	bl	_adv748x_sw_reset
	tbnz	w0, #31, LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_adv748x_set_slave_addresses
	tbnz	w0, #31, LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _adv748x_init_hdmi@GOTPAGE
Lloh1:
	ldr	x8, [x8, _adv748x_init_hdmi@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_adv748x_write_regs
	cbnz	w0, LBB0_5
; %bb.3:
Lloh3:
	adrp	x8, _adv748x_init_afe@GOTPAGE
Lloh4:
	ldr	x8, [x8, _adv748x_init_afe@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_adv748x_write_regs
	cbnz	w0, LBB0_5
; %bb.4:
	add	x20, x19, #4
	mov	x0, x20
	mov	w1, #1
	bl	_adv748x_tx_power
	mov	x0, x20
	mov	w1, #0
	bl	_adv748x_tx_power
	mov	x0, x19
	mov	w1, #1
	bl	_adv748x_tx_power
	mov	x0, x19
	mov	w1, #0
	bl	_adv748x_tx_power
Lloh6:
	adrp	x8, _ADV748X_IO_PD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ADV748X_IO_PD@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _ADV748X_IO_PD_RX_EN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ADV748X_IO_PD_RX_EN@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_io_write
	mov	x0, x20
	bl	_is_tx_enabled
Lloh12:
	adrp	x8, _ADV748X_IO_10_CSI4_EN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ADV748X_IO_10_CSI4_EN@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w20, wzr, w8, eq
	mov	x0, x19
	bl	_is_tx_enabled
Lloh15:
	adrp	x8, _ADV748X_IO_10_CSI1_EN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ADV748X_IO_10_CSI1_EN@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w2, w8, w20
Lloh18:
	adrp	x8, _ADV748X_IO_10@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ADV748X_IO_10@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_io_write
Lloh21:
	adrp	x8, _ADV748X_CP_CLMP_POS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ADV748X_CP_CLMP_POS@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x8, _ADV748X_CP_CLMP_POS_DIS_AUTO@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ADV748X_CP_CLMP_POS_DIS_AUTO@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x2
	bl	_cp_clrset
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_adv748x_init_hdmi,4,2          ; @adv748x_init_hdmi
	.comm	_adv748x_init_afe,4,2           ; @adv748x_init_afe
	.comm	_ADV748X_IO_PD,4,2              ; @ADV748X_IO_PD
	.comm	_ADV748X_IO_PD_RX_EN,4,2        ; @ADV748X_IO_PD_RX_EN
	.comm	_ADV748X_IO_10_CSI4_EN,4,2      ; @ADV748X_IO_10_CSI4_EN
	.comm	_ADV748X_IO_10_CSI1_EN,4,2      ; @ADV748X_IO_10_CSI1_EN
	.comm	_ADV748X_IO_10,4,2              ; @ADV748X_IO_10
	.comm	_ADV748X_CP_CLMP_POS,4,2        ; @ADV748X_CP_CLMP_POS
	.comm	_ADV748X_CP_CLMP_POS_DIS_AUTO,4,2 ; @ADV748X_CP_CLMP_POS_DIS_AUTO
	.no_dead_strip	_adv748x_reset
.subsections_via_symbols
