	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adv7182_init
_adv7182_init:                          ## @adv7182_init
	.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, %rbx
	movq	(%rdi), %rax
	movl	(%rax), %eax
	movq	_ADV7180_FLAG_MIPI_CSI2@GOTPCREL(%rip), %r14
	testl	%eax, (%r14)
	je	LBB0_2
## %bb.1:
	movq	_ADV7180_REG_CSI_SLAVE_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ADV7180_DEFAULT_CSI_I2C_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addl	%edx, %edx
	movq	%rbx, %rdi
	callq	_adv7180_write
	movq	(%rbx), %rax
	movl	(%rax), %eax
LBB0_2:
	movq	_ADV7180_FLAG_I2P@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_ADV7180_REG_VPP_SLAVE_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ADV7180_DEFAULT_VPP_I2C_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addl	%edx, %edx
	movq	%rbx, %rdi
	callq	_adv7180_write
	movq	(%rbx), %rax
	movl	(%rax), %eax
LBB0_4:
	movq	_ADV7180_FLAG_V2@GOTPCREL(%rip), %r15
	testl	%eax, (%r15)
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	movl	$128, %esi
	movl	$81, %edx
	callq	_adv7180_write
	movq	%rbx, %rdi
	movl	$129, %esi
	movl	$81, %edx
	callq	_adv7180_write
	movq	%rbx, %rdi
	movl	$130, %esi
	movl	$104, %edx
	callq	_adv7180_write
	movq	(%rbx), %rax
	movl	(%rax), %eax
LBB0_6:
	testl	%eax, (%r14)
	je	LBB0_8
## %bb.7:
	movq	_ADV7180_REG_OUTPUT_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$78, %edx
	callq	_adv7180_write
	movl	$192, %r14d
	movl	$87, %edx
	movq	_ADV7180_REG_EXTENDED_OUTPUT_CONTROL@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	xorl	%edx, %edx
	andl	(%r15), %eax
	setne	%dl
	movq	_ADV7180_REG_EXTENDED_OUTPUT_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$4, %edx
	orl	$7, %edx
	movq	%rbx, %rdi
	callq	_adv7180_write
	movl	$64, %r14d
	movl	$12, %edx
	movq	_ADV7180_REG_OUTPUT_CONTROL@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_adv7180_write
	movq	_ADV7180_REG_CTRL_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_adv7180_write
	movq	%rbx, %rdi
	movl	$19, %esi
	xorl	%edx, %edx
	callq	_adv7180_write
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADV7180_FLAG_MIPI_CSI2,4,2     ## @ADV7180_FLAG_MIPI_CSI2
	.comm	_ADV7180_REG_CSI_SLAVE_ADDR,4,2 ## @ADV7180_REG_CSI_SLAVE_ADDR
	.comm	_ADV7180_DEFAULT_CSI_I2C_ADDR,4,2 ## @ADV7180_DEFAULT_CSI_I2C_ADDR
	.comm	_ADV7180_FLAG_I2P,4,2           ## @ADV7180_FLAG_I2P
	.comm	_ADV7180_REG_VPP_SLAVE_ADDR,4,2 ## @ADV7180_REG_VPP_SLAVE_ADDR
	.comm	_ADV7180_DEFAULT_VPP_I2C_ADDR,4,2 ## @ADV7180_DEFAULT_VPP_I2C_ADDR
	.comm	_ADV7180_FLAG_V2,4,2            ## @ADV7180_FLAG_V2
	.comm	_ADV7180_REG_OUTPUT_CONTROL,4,2 ## @ADV7180_REG_OUTPUT_CONTROL
	.comm	_ADV7180_REG_EXTENDED_OUTPUT_CONTROL,4,2 ## @ADV7180_REG_EXTENDED_OUTPUT_CONTROL
	.comm	_ADV7180_REG_CTRL_2,4,2         ## @ADV7180_REG_CTRL_2
	.no_dead_strip	_adv7182_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adv7182_init
_adv7182_init:                          ; @adv7182_init
	.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	x19, x0
	ldr	x8, [x0]
	ldr	w8, [x8]
Lloh0:
	adrp	x20, _ADV7180_FLAG_MIPI_CSI2@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ADV7180_FLAG_MIPI_CSI2@GOTPAGEOFF]
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _ADV7180_REG_CSI_SLAVE_ADDR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ADV7180_REG_CSI_SLAVE_ADDR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _ADV7180_DEFAULT_CSI_I2C_ADDR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ADV7180_DEFAULT_CSI_I2C_ADDR@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	lsl	w2, w8, #1
	mov	x0, x19
	bl	_adv7180_write
	ldr	x8, [x19]
	ldr	w8, [x8]
LBB0_2:
Lloh8:
	adrp	x9, _ADV7180_FLAG_I2P@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ADV7180_FLAG_I2P@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
Lloh11:
	adrp	x8, _ADV7180_REG_VPP_SLAVE_ADDR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ADV7180_REG_VPP_SLAVE_ADDR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _ADV7180_DEFAULT_VPP_I2C_ADDR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ADV7180_DEFAULT_VPP_I2C_ADDR@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	lsl	w2, w8, #1
	mov	x0, x19
	bl	_adv7180_write
	ldr	x8, [x19]
	ldr	w8, [x8]
LBB0_4:
Lloh17:
	adrp	x21, _ADV7180_FLAG_V2@GOTPAGE
Lloh18:
	ldr	x21, [x21, _ADV7180_FLAG_V2@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x19
	mov	w1, #128
	mov	w2, #81
	bl	_adv7180_write
	mov	x0, x19
	mov	w1, #129
	mov	w2, #81
	bl	_adv7180_write
	mov	x0, x19
	mov	w1, #130
	mov	w2, #104
	bl	_adv7180_write
	ldr	x8, [x19]
	ldr	w8, [x8]
LBB0_6:
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
Lloh19:
	adrp	x8, _ADV7180_REG_OUTPUT_CONTROL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ADV7180_REG_OUTPUT_CONTROL@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #78
	bl	_adv7180_write
	mov	w20, #192
	mov	w2, #87
Lloh22:
	adrp	x8, _ADV7180_REG_EXTENDED_OUTPUT_CONTROL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ADV7180_REG_EXTENDED_OUTPUT_CONTROL@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh24:
	adrp	x9, _ADV7180_REG_EXTENDED_OUTPUT_CONTROL@GOTPAGE
Lloh25:
	ldr	x9, [x9, _ADV7180_REG_EXTENDED_OUTPUT_CONTROL@GOTPAGEOFF]
	ldr	w10, [x21]
Lloh26:
	ldr	w1, [x9]
	tst	w10, w8
	mov	w8, #23
	mov	w9, #7
	csel	w2, w9, w8, eq
	mov	x0, x19
	bl	_adv7180_write
	mov	w20, #64
	mov	w2, #12
Lloh27:
	adrp	x8, _ADV7180_REG_OUTPUT_CONTROL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ADV7180_REG_OUTPUT_CONTROL@GOTPAGEOFF]
LBB0_9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_adv7180_write
Lloh29:
	adrp	x8, _ADV7180_REG_CTRL_2@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ADV7180_REG_CTRL_2@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_adv7180_write
	mov	x0, x19
	mov	w1, #19
	mov	w2, #0
	bl	_adv7180_write
	mov	w0, #0
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_ADV7180_FLAG_MIPI_CSI2,4,2     ; @ADV7180_FLAG_MIPI_CSI2
	.comm	_ADV7180_REG_CSI_SLAVE_ADDR,4,2 ; @ADV7180_REG_CSI_SLAVE_ADDR
	.comm	_ADV7180_DEFAULT_CSI_I2C_ADDR,4,2 ; @ADV7180_DEFAULT_CSI_I2C_ADDR
	.comm	_ADV7180_FLAG_I2P,4,2           ; @ADV7180_FLAG_I2P
	.comm	_ADV7180_REG_VPP_SLAVE_ADDR,4,2 ; @ADV7180_REG_VPP_SLAVE_ADDR
	.comm	_ADV7180_DEFAULT_VPP_I2C_ADDR,4,2 ; @ADV7180_DEFAULT_VPP_I2C_ADDR
	.comm	_ADV7180_FLAG_V2,4,2            ; @ADV7180_FLAG_V2
	.comm	_ADV7180_REG_OUTPUT_CONTROL,4,2 ; @ADV7180_REG_OUTPUT_CONTROL
	.comm	_ADV7180_REG_EXTENDED_OUTPUT_CONTROL,4,2 ; @ADV7180_REG_EXTENDED_OUTPUT_CONTROL
	.comm	_ADV7180_REG_CTRL_2,4,2         ; @ADV7180_REG_CTRL_2
	.no_dead_strip	_adv7182_init
.subsections_via_symbols
