	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_go7007_update_board            ## -- Begin function go7007_update_board
	.p2align	4, 0x90
_go7007_update_board:                   ## @go7007_update_board
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	32(%rdi), %rax
	movq	_GO7007_SENSOR_TV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_GO7007_STD_NTSC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	_V4L2_STD_NTSC_M@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rdi)
	movl	$30000, %edx                    ## imm = 0x7530
	movl	$480, %esi                      ## imm = 0x1E0
	movl	$720, %ecx                      ## imm = 0x2D0
	jmp	LBB0_3
LBB0_2:
	movq	_GO7007_STD_OTHER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movl	4(%rax), %ecx
	movl	8(%rax), %esi
	movl	12(%rax), %edx
LBB0_3:
	movl	%r8d, 20(%rdi)
	movl	%ecx, (%rdi)
	movl	%esi, 4(%rdi)
	movl	%edx, 8(%rdi)
	movl	20(%rax), %ecx
	movl	%ecx, 16(%rdi)
	movl	16(%rax), %eax
	movl	%eax, 12(%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GO7007_SENSOR_TV,4,2           ## @GO7007_SENSOR_TV
	.comm	_GO7007_STD_NTSC,4,2            ## @GO7007_STD_NTSC
	.comm	_V4L2_STD_NTSC_M,4,2            ## @V4L2_STD_NTSC_M
	.comm	_GO7007_STD_OTHER,4,2           ## @GO7007_STD_OTHER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function go7007_update_board
lCPI0_0:
	.long	720                             ; 0x2d0
	.long	480                             ; 0x1e0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_go7007_update_board
	.p2align	2
_go7007_update_board:                   ; @go7007_update_board
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #32]
	ldr	w9, [x8]
Lloh0:
	adrp	x10, _GO7007_SENSOR_TV@GOTPAGE
Lloh1:
	ldr	x10, [x10, _GO7007_SENSOR_TV@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x9, _GO7007_STD_NTSC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GO7007_STD_NTSC@GOTPAGEOFF]
Lloh5:
	adrp	x10, _V4L2_STD_NTSC_M@GOTPAGE
Lloh6:
	ldr	x10, [x10, _V4L2_STD_NTSC_M@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	ldr	w10, [x10]
	str	w10, [x0, #24]
Lloh9:
	adrp	x10, lCPI0_0@PAGE
Lloh10:
	ldr	d0, [x10, lCPI0_0@PAGEOFF]
	mov	w10, #30000
	b	LBB0_3
LBB0_2:
Lloh11:
	adrp	x9, _GO7007_STD_OTHER@GOTPAGE
Lloh12:
	ldr	x9, [x9, _GO7007_STD_OTHER@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	ldur	d0, [x8, #4]
	ldr	w10, [x8, #12]
LBB0_3:
	str	w9, [x0, #20]
	str	d0, [x0]
	str	w10, [x0, #8]
	ldr	d0, [x8, #16]
	stur	d0, [x0, #12]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_GO7007_SENSOR_TV,4,2           ; @GO7007_SENSOR_TV
	.comm	_GO7007_STD_NTSC,4,2            ; @GO7007_STD_NTSC
	.comm	_V4L2_STD_NTSC_M,4,2            ; @V4L2_STD_NTSC_M
	.comm	_GO7007_STD_OTHER,4,2           ; @GO7007_STD_OTHER
.subsections_via_symbols
