	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5k5baf_hw_set_anti_flicker
_s5k5baf_hw_set_anti_flicker:           ## @s5k5baf_hw_set_anti_flicker
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_V4L2_CID_POWER_LINE_FREQUENCY_AUTO@GOTPCREL(%rip), %rcx
	movl	$1, %edx
	cmpl	%esi, (%rcx)
	je	LBB0_2
## %bb.1:
	movl	%esi, %eax
	movq	_REG_SF_FLICKER_QUANT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	movl	$1, %ecx
	callq	_s5k5baf_write_seq
	xorl	%edx, %edx
LBB0_2:
	movq	_AALG_FLICKER_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_s5k5baf_hw_set_alg             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_CID_POWER_LINE_FREQUENCY_AUTO,4,2 ## @V4L2_CID_POWER_LINE_FREQUENCY_AUTO
	.comm	_AALG_FLICKER_EN,4,2            ## @AALG_FLICKER_EN
	.comm	_REG_SF_FLICKER_QUANT,4,2       ## @REG_SF_FLICKER_QUANT
	.no_dead_strip	_s5k5baf_hw_set_anti_flicker
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5k5baf_hw_set_anti_flicker
_s5k5baf_hw_set_anti_flicker:           ; @s5k5baf_hw_set_anti_flicker
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _V4L2_CID_POWER_LINE_FREQUENCY_AUTO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_CID_POWER_LINE_FREQUENCY_AUTO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.1:
	mov	w2, #1
	b	LBB0_3
LBB0_2:
	mov	x2, x1
Lloh3:
	adrp	x8, _REG_SF_FLICKER_QUANT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REG_SF_FLICKER_QUANT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w3, #1
	bl	_s5k5baf_write_seq
	mov	w2, #0
LBB0_3:
Lloh6:
	adrp	x8, _AALG_FLICKER_EN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AALG_FLICKER_EN@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_s5k5baf_hw_set_alg
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_CID_POWER_LINE_FREQUENCY_AUTO,4,2 ; @V4L2_CID_POWER_LINE_FREQUENCY_AUTO
	.comm	_AALG_FLICKER_EN,4,2            ; @AALG_FLICKER_EN
	.comm	_REG_SF_FLICKER_QUANT,4,2       ; @REG_SF_FLICKER_QUANT
	.no_dead_strip	_s5k5baf_hw_set_anti_flicker
.subsections_via_symbols
