	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adv7180_set_power
_adv7180_set_power:                     ## @adv7180_set_power
	.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
	movl	%esi, %ebx
	movq	%rdi, %r15
	testl	%esi, %esi
	jne	LBB0_1
## %bb.2:
	movq	_ADV7180_PWR_MAN_OFF@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_ADV7180_PWR_MAN_ON@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edx
	movq	_ADV7180_REG_PWR_MAN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_adv7180_write
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.4:
	movq	8(%r15), %rax
	movq	_ADV7180_FLAG_MIPI_CSI2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_10
## %bb.5:
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.7:
	movq	%r15, %rdi
	movl	$222, %esi
	movl	$2, %edx
	callq	_adv7180_csi_write
	movq	%r15, %rdi
	movl	$210, %esi
	movl	$247, %edx
	callq	_adv7180_csi_write
	movq	%r15, %rdi
	movl	$216, %esi
	movl	$101, %edx
	callq	_adv7180_csi_write
	movq	%r15, %rdi
	movl	$224, %esi
	movl	$9, %edx
	callq	_adv7180_csi_write
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movl	$44, %esi
	xorl	%edx, %edx
	callq	_adv7180_csi_write
	movq	(%r15), %rax
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	movl	$29, %esi
	movl	$128, %edx
	callq	_adv7180_csi_write
	jmp	LBB0_9
LBB0_6:
	movl	$128, %ebx
LBB0_9:
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_adv7180_csi_write
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADV7180_PWR_MAN_ON,4,2         ## @ADV7180_PWR_MAN_ON
	.comm	_ADV7180_PWR_MAN_OFF,4,2        ## @ADV7180_PWR_MAN_OFF
	.comm	_ADV7180_REG_PWR_MAN,4,2        ## @ADV7180_REG_PWR_MAN
	.comm	_ADV7180_FLAG_MIPI_CSI2,4,2     ## @ADV7180_FLAG_MIPI_CSI2
	.comm	_V4L2_FIELD_NONE,8,3            ## @V4L2_FIELD_NONE
	.no_dead_strip	_adv7180_set_power
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adv7180_set_power
_adv7180_set_power:                     ; @adv7180_set_power
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _ADV7180_PWR_MAN_OFF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADV7180_PWR_MAN_OFF@GOTPAGEOFF]
Lloh2:
	adrp	x9, _ADV7180_PWR_MAN_ON@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ADV7180_PWR_MAN_ON@GOTPAGEOFF]
	cmp	w1, #0
	csel	x8, x8, x9, eq
	ldr	w2, [x8]
Lloh4:
	adrp	x8, _ADV7180_REG_PWR_MAN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ADV7180_REG_PWR_MAN@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_adv7180_write
	mov	x20, x0
	cbnz	w0, LBB0_7
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _ADV7180_FLAG_MIPI_CSI2@GOTPAGE
Lloh8:
	ldr	x9, [x9, _ADV7180_FLAG_MIPI_CSI2@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.2:
	cbz	w21, LBB0_5
; %bb.3:
	mov	x0, x19
	mov	w1, #222
	mov	w2, #2
	bl	_adv7180_csi_write
	mov	x0, x19
	mov	w1, #210
	mov	w2, #247
	bl	_adv7180_csi_write
	mov	x0, x19
	mov	w1, #216
	mov	w2, #101
	bl	_adv7180_csi_write
	mov	x0, x19
	mov	w1, #224
	mov	w2, #9
	bl	_adv7180_csi_write
	mov	x0, x19
	mov	w1, #44
	mov	w2, #0
	bl	_adv7180_csi_write
	mov	w2, #0
	ldr	x8, [x19]
Lloh10:
	adrp	x9, _V4L2_FIELD_NONE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _V4L2_FIELD_NONE@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
	mov	x0, x19
	mov	w1, #29
	mov	w2, #128
	bl	_adv7180_csi_write
	mov	w2, #0
	b	LBB0_6
LBB0_5:
	mov	w2, #128
LBB0_6:
	mov	x0, x19
	mov	w1, #0
	bl	_adv7180_csi_write
LBB0_7:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ADV7180_PWR_MAN_ON,4,2         ; @ADV7180_PWR_MAN_ON
	.comm	_ADV7180_PWR_MAN_OFF,4,2        ; @ADV7180_PWR_MAN_OFF
	.comm	_ADV7180_REG_PWR_MAN,4,2        ; @ADV7180_REG_PWR_MAN
	.comm	_ADV7180_FLAG_MIPI_CSI2,4,2     ; @ADV7180_FLAG_MIPI_CSI2
	.comm	_V4L2_FIELD_NONE,8,3            ; @V4L2_FIELD_NONE
	.no_dead_strip	_adv7180_set_power
.subsections_via_symbols
