	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov5640_set_ctrl_light_freq
_ov5640_set_ctrl_light_freq:            ## @ov5640_set_ctrl_light_freq
	.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
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_OV5640_REG_HZ5060_CTRL01@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	$7, %edi
	callq	_BIT
	movl	%eax, %ebx
	movq	_V4L2_CID_POWER_LINE_FREQUENCY_AUTO@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpl	%r15d, (%rax)
	je	LBB0_2
## %bb.1:
	movl	$7, %edi
	callq	_BIT
	movl	%eax, %ecx
LBB0_2:
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	callq	_ov5640_mod_reg
	testl	%eax, %eax
	je	LBB0_3
## %bb.6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_OV5640_REG_HZ5060_CTRL00@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	$2, %edi
	callq	_BIT
	movl	%eax, %ebx
	movq	_V4L2_CID_POWER_LINE_FREQUENCY_50HZ@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpl	%r15d, (%rax)
	jne	LBB0_5
## %bb.4:
	movl	$2, %edi
	callq	_BIT
	movl	%eax, %ecx
LBB0_5:
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ov5640_mod_reg                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_OV5640_REG_HZ5060_CTRL01,4,2   ## @OV5640_REG_HZ5060_CTRL01
	.comm	_V4L2_CID_POWER_LINE_FREQUENCY_AUTO,4,2 ## @V4L2_CID_POWER_LINE_FREQUENCY_AUTO
	.comm	_OV5640_REG_HZ5060_CTRL00,4,2   ## @OV5640_REG_HZ5060_CTRL00
	.comm	_V4L2_CID_POWER_LINE_FREQUENCY_50HZ,4,2 ## @V4L2_CID_POWER_LINE_FREQUENCY_50HZ
	.no_dead_strip	_ov5640_set_ctrl_light_freq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov5640_set_ctrl_light_freq
_ov5640_set_ctrl_light_freq:            ; @ov5640_set_ctrl_light_freq
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _OV5640_REG_HZ5060_CTRL01@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OV5640_REG_HZ5060_CTRL01@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	mov	w0, #7
	bl	_BIT
	mov	x22, x0
Lloh3:
	adrp	x8, _V4L2_CID_POWER_LINE_FREQUENCY_AUTO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_CID_POWER_LINE_FREQUENCY_AUTO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_2
; %bb.1:
	mov	w3, #0
	b	LBB0_3
LBB0_2:
	mov	w0, #7
	bl	_BIT
	mov	x3, x0
LBB0_3:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_ov5640_mod_reg
	cbz	w0, LBB0_5
; %bb.4:
	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_5:
Lloh6:
	adrp	x8, _OV5640_REG_HZ5060_CTRL00@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OV5640_REG_HZ5060_CTRL00@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
	mov	w0, #2
	bl	_BIT
	mov	x22, x0
Lloh9:
	adrp	x8, _V4L2_CID_POWER_LINE_FREQUENCY_50HZ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _V4L2_CID_POWER_LINE_FREQUENCY_50HZ@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_7
; %bb.6:
	mov	w0, #2
	bl	_BIT
	mov	x3, x0
	b	LBB0_8
LBB0_7:
	mov	w3, #0
LBB0_8:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	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	_ov5640_mod_reg
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_OV5640_REG_HZ5060_CTRL01,4,2   ; @OV5640_REG_HZ5060_CTRL01
	.comm	_V4L2_CID_POWER_LINE_FREQUENCY_AUTO,4,2 ; @V4L2_CID_POWER_LINE_FREQUENCY_AUTO
	.comm	_OV5640_REG_HZ5060_CTRL00,4,2   ; @OV5640_REG_HZ5060_CTRL00
	.comm	_V4L2_CID_POWER_LINE_FREQUENCY_50HZ,4,2 ; @V4L2_CID_POWER_LINE_FREQUENCY_50HZ
	.no_dead_strip	_ov5640_set_ctrl_light_freq
.subsections_via_symbols
