	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5c73m3_rom_boot
_s5c73m3_rom_boot:                      ## @s5c73m3_rom_boot
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	$805306372, %esi                ## imm = 0x30000004
	movl	$65535, %edx                    ## imm = 0xFFFF
	callq	_s5c73m3_write
	testl	%eax, %eax
	js	LBB0_13
## %bb.1:
	leaq	4(%r15), %r14
	movl	$400, %edi                      ## imm = 0x190
	movl	$450, %esi                      ## imm = 0x1C2
	callq	_usleep_range
	movq	%r15, %rdi
	movl	$12, %esi
	movl	$100, %edx
	movl	$4, %ecx
	callq	_s5c73m3_system_status_wait
	testl	%eax, %eax
	js	LBB0_4
## %bb.2:
	leaq	_s5c73m3_rom_boot.boot_regs(%rip), %r12
	movq	%r12, %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_8
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%rbx,8), %esi
	movl	4(%r12,%rbx,8), %edx
	movq	%r15, %rdi
	callq	_s5c73m3_write
	testl	%eax, %eax
	js	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	movq	%r12, %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_7
LBB0_8:
	movl	$200, %edi
	callq	_msleep
	movq	%r15, %rdi
	movl	$8974, %esi                     ## imm = 0x230E
	movl	$1000, %edx                     ## imm = 0x3E8
	movl	$150, %ecx
	callq	_s5c73m3_system_status_wait
	testl	%eax, %eax
	js	LBB0_9
## %bb.10:
	movq	%r15, %rdi
	movl	$805306372, %esi                ## imm = 0x30000004
	movl	$65533, %edx                    ## imm = 0xFFFD
	callq	_s5c73m3_write
	testl	%eax, %eax
	js	LBB0_13
## %bb.11:
	movq	%r15, %rdi
	movl	$806355108, %esi                ## imm = 0x301000A4
	movl	$387, %edx                      ## imm = 0x183
	callq	_s5c73m3_write
	testl	%eax, %eax
	js	LBB0_13
## %bb.12:
	movq	%r15, %rdi
	movl	$805306372, %esi                ## imm = 0x30000004
	movl	$65535, %edx                    ## imm = 0xFFFF
	callq	_s5c73m3_write
	testl	%eax, %eax
	js	LBB0_13
## %bb.15:
	movl	$1, (%r15)
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_s5c73m3_read_fw_version        ## TAILCALL
LBB0_13:
	movl	%eax, %r13d
	jmp	LBB0_14
LBB0_4:
	movl	%eax, %r13d
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_5
LBB0_9:
	movl	%eax, %r13d
	leaq	L_.str.1(%rip), %rsi
LBB0_5:
	movq	%r14, %rdi
	movl	%r13d, %edx
	callq	_v4l2_err
LBB0_14:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @s5c73m3_rom_boot.boot_regs
_s5c73m3_rom_boot.boot_regs:
	.long	822083852                       ## 0x3100010c
	.long	68                              ## 0x44
	.long	822083848                       ## 0x31000108
	.long	13                              ## 0xd
	.long	822084356                       ## 0x31000304
	.long	1                               ## 0x1
	.long	65536                           ## 0x10000
	.long	22528                           ## 0x5800
	.long	65538                           ## 0x10002
	.long	2                               ## 0x2
	.long	822083584                       ## 0x31000000
	.long	1                               ## 0x1
	.long	806354964                       ## 0x30100014
	.long	7045                            ## 0x1b85
	.long	806354960                       ## 0x30100010
	.long	8972                            ## 0x230c

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Booting failed: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Binary read failed: %d\n"

	.no_dead_strip	_s5c73m3_rom_boot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5c73m3_rom_boot
_s5c73m3_rom_boot:                      ; @s5c73m3_rom_boot
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	mov	w1, #4
	movk	w1, #12288, lsl #16
	mov	w2, #65535
	bl	_s5c73m3_write
	tbnz	w0, #31, LBB0_11
; %bb.1:
	add	x20, x19, #4
	mov	w0, #400
	mov	w1, #450
	bl	_usleep_range
	mov	x0, x19
	mov	w1, #12
	mov	w2, #100
	mov	w3, #4
	bl	_s5c73m3_system_status_wait
	tbnz	w0, #31, LBB0_12
; %bb.2:
Lloh0:
	adrp	x0, _s5c73m3_rom_boot.boot_regs@PAGE
Lloh1:
	add	x0, x0, _s5c73m3_rom_boot.boot_regs@PAGEOFF
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.3:
	mov	x23, #0
Lloh2:
	adrp	x24, _s5c73m3_rom_boot.boot_regs@PAGE+4
Lloh3:
	add	x24, x24, _s5c73m3_rom_boot.boot_regs@PAGEOFF+4
Lloh4:
	adrp	x22, _s5c73m3_rom_boot.boot_regs@PAGE
Lloh5:
	add	x22, x22, _s5c73m3_rom_boot.boot_regs@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w1, w2, [x24, #-4]
	mov	x0, x19
	bl	_s5c73m3_write
	tbnz	w0, #31, LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	mov	x0, x22
	bl	_ARRAY_SIZE
	add	x24, x24, #8
	cmp	x23, w0, sxtw
	b.lt	LBB0_4
LBB0_6:
	mov	w0, #200
	bl	_msleep
	mov	x0, x19
	mov	w1, #8974
	mov	w2, #1000
	mov	w3, #150
	bl	_s5c73m3_system_status_wait
	tbnz	w0, #31, LBB0_13
; %bb.7:
	mov	x0, x19
	mov	w1, #4
	movk	w1, #12288, lsl #16
	mov	w2, #65533
	bl	_s5c73m3_write
	tbnz	w0, #31, LBB0_11
; %bb.8:
	mov	x0, x19
	mov	w1, #164
	movk	w1, #12304, lsl #16
	mov	w2, #387
	bl	_s5c73m3_write
	tbnz	w0, #31, LBB0_11
; %bb.9:
	mov	x0, x19
	mov	w1, #4
	movk	w1, #12288, lsl #16
	mov	w2, #65535
	bl	_s5c73m3_write
	tbnz	w0, #31, LBB0_11
; %bb.10:
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_s5c73m3_read_fw_version
LBB0_11:
	mov	x21, x0
	b	LBB0_15
LBB0_12:
	mov	x21, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_14
LBB0_13:
	mov	x21, x0
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_14:
	mov	x0, x20
	mov	x2, x21
	bl	_v4l2_err
LBB0_15:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @s5c73m3_rom_boot.boot_regs
_s5c73m3_rom_boot.boot_regs:
	.long	822083852                       ; 0x3100010c
	.long	68                              ; 0x44
	.long	822083848                       ; 0x31000108
	.long	13                              ; 0xd
	.long	822084356                       ; 0x31000304
	.long	1                               ; 0x1
	.long	65536                           ; 0x10000
	.long	22528                           ; 0x5800
	.long	65538                           ; 0x10002
	.long	2                               ; 0x2
	.long	822083584                       ; 0x31000000
	.long	1                               ; 0x1
	.long	806354964                       ; 0x30100014
	.long	7045                            ; 0x1b85
	.long	806354960                       ; 0x30100010
	.long	8972                            ; 0x230c

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Booting failed: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Binary read failed: %d\n"

	.no_dead_strip	_s5c73m3_rom_boot
.subsections_via_symbols
