	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap24xxcam_poweron_reset
_omap24xxcam_poweron_reset:             ## @omap24xxcam_poweron_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_RESET_TIMEOUT_NS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	4(%rdi), %edi
	movq	_CAM_SYSCONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CAM_SYSCONFIG_SOFTRESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_omap24xxcam_reg_out
	movl	4(%r14), %edi
	movq	_CAM_SYSSTATUS@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_omap24xxcam_reg_in
	movq	_CAM_SYSSTATUS_RESETDONE@GOTPCREL(%rip), %r12
	testl	%eax, (%r12)
	jne	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	decl	%ebx
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edi
	callq	_ndelay
	movl	4(%r14), %edi
	movl	(%r15), %esi
	callq	_omap24xxcam_reg_in
	testl	%eax, (%r12)
	je	LBB0_2
LBB0_4:
	movl	4(%r14), %edi
	movl	(%r15), %esi
	callq	_omap24xxcam_reg_in
	testl	%eax, (%r12)
	je	LBB0_6
## %bb.5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RESET_TIMEOUT_NS,4,2           ## @RESET_TIMEOUT_NS
	.comm	_CAM_SYSCONFIG,4,2              ## @CAM_SYSCONFIG
	.comm	_CAM_SYSCONFIG_SOFTRESET,4,2    ## @CAM_SYSCONFIG_SOFTRESET
	.comm	_CAM_SYSSTATUS,4,2              ## @CAM_SYSSTATUS
	.comm	_CAM_SYSSTATUS_RESETDONE,4,2    ## @CAM_SYSSTATUS_RESETDONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"camera soft reset timeout\n"

	.no_dead_strip	_omap24xxcam_poweron_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap24xxcam_poweron_reset
_omap24xxcam_poweron_reset:             ; @omap24xxcam_poweron_reset
	.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
Lloh0:
	adrp	x8, _RESET_TIMEOUT_NS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RESET_TIMEOUT_NS@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	ldr	w0, [x0, #4]
Lloh3:
	adrp	x8, _CAM_SYSCONFIG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CAM_SYSCONFIG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _CAM_SYSCONFIG_SOFTRESET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CAM_SYSCONFIG_SOFTRESET@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	bl	_omap24xxcam_reg_out
	ldr	w0, [x19, #4]
Lloh9:
	adrp	x21, _CAM_SYSSTATUS@GOTPAGE
Lloh10:
	ldr	x21, [x21, _CAM_SYSSTATUS@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_omap24xxcam_reg_in
Lloh11:
	adrp	x22, _CAM_SYSSTATUS_RESETDONE@GOTPAGE
Lloh12:
	ldr	x22, [x22, _CAM_SYSSTATUS_RESETDONE@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22]
	tst	w8, w0
	b.ne	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	subs	w20, w20, #1
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #1
	bl	_ndelay
	ldr	w0, [x19, #4]
	ldr	w1, [x21]
	bl	_omap24xxcam_reg_in
	b	LBB0_1
LBB0_4:
	ldr	w0, [x19, #4]
	ldr	w1, [x21]
	bl	_omap24xxcam_reg_in
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.5:
	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
LBB0_6:
	ldr	w0, [x19]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	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
	b	_dev_err
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_RESET_TIMEOUT_NS,4,2           ; @RESET_TIMEOUT_NS
	.comm	_CAM_SYSCONFIG,4,2              ; @CAM_SYSCONFIG
	.comm	_CAM_SYSCONFIG_SOFTRESET,4,2    ; @CAM_SYSCONFIG_SOFTRESET
	.comm	_CAM_SYSSTATUS,4,2              ; @CAM_SYSSTATUS
	.comm	_CAM_SYSSTATUS_RESETDONE,4,2    ; @CAM_SYSSTATUS_RESETDONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"camera soft reset timeout\n"

	.no_dead_strip	_omap24xxcam_poweron_reset
.subsections_via_symbols
