	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __s5k4ecgx_s_params
___s5k4ecgx_s_params:                   ## @__s5k4ecgx_s_params
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	addq	$8, %rdi
	callq	_v4l2_get_subdevdata
	movq	%rax, %r14
	movq	(%r15), %rbx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_s5k4ecgx_set_input_window
	testl	%eax, %eax
	jne	LBB0_16
## %bb.1:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_s5k4ecgx_set_zoom_window
	testl	%eax, %eax
	jne	LBB0_16
## %bb.2:
	movq	_REG_G_INPUTS_CHANGE_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_s5k4ecgx_write
	testl	%eax, %eax
	jne	LBB0_16
## %bb.3:
	movq	%r14, %rdi
	movl	$1879050782, %esi               ## imm = 0x70000A1E
	movl	$40, %edx
	callq	_s5k4ecgx_write
	testl	%eax, %eax
	jne	LBB0_16
## %bb.4:
	movq	%r14, %rdi
	movl	$1879050964, %esi               ## imm = 0x70000AD4
	movl	$60, %edx
	callq	_s5k4ecgx_write
	testl	%eax, %eax
	jne	LBB0_16
## %bb.5:
	movq	%r15, %rdi
	callq	_s5k4ecgx_set_output_framefmt
	testl	%eax, %eax
	jne	LBB0_16
## %bb.6:
	xorl	%edi, %edi
	callq	_REG_P_PVI_MASK
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$82, %edx
	callq	_s5k4ecgx_write
	testl	%eax, %eax
	jne	LBB0_16
## %bb.7:
	xorl	%edi, %edi
	callq	_REG_P_FR_TIME_TYPE
	movq	_FR_TIME_DYNAMIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_s5k4ecgx_write
	testl	%eax, %eax
	jne	LBB0_16
## %bb.8:
	xorl	%edi, %edi
	callq	_REG_P_FR_TIME_Q_TYPE
	movq	_FR_TIME_Q_BEST_FRRATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_s5k4ecgx_write
	testl	%eax, %eax
	jne	LBB0_16
## %bb.9:
	xorl	%edi, %edi
	callq	_REG_P_MIN_FR_TIME
	movl	%eax, %ebx
	movl	$33300, %edi                    ## imm = 0x8214
	callq	_US_TO_FR_TIME
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_s5k4ecgx_write
	testl	%eax, %eax
	jne	LBB0_16
## %bb.10:
	xorl	%edi, %edi
	callq	_REG_P_MAX_FR_TIME
	movl	%eax, %ebx
	movl	$66600, %edi                    ## imm = 0x10428
	callq	_US_TO_FR_TIME
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_s5k4ecgx_write
	testl	%eax, %eax
	jne	LBB0_16
## %bb.11:
	xorl	%edi, %edi
	callq	_REG_P_PREV_MIRROR
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_s5k4ecgx_write
	testl	%eax, %eax
	jne	LBB0_16
## %bb.12:
	xorl	%edi, %edi
	callq	_REG_P_CAP_MIRROR
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_s5k4ecgx_write
	testl	%eax, %eax
	jne	LBB0_16
## %bb.13:
	movq	_REG_G_ACTIVE_PREV_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_s5k4ecgx_write
	testl	%eax, %eax
	jne	LBB0_16
## %bb.14:
	movq	_REG_G_PREV_OPEN_AFTER_CH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_s5k4ecgx_write
	testl	%eax, %eax
	jne	LBB0_16
## %bb.15:
	movq	_REG_G_NEW_CFG_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_s5k4ecgx_write
	testl	%eax, %eax
	je	LBB0_17
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	_REG_G_PREV_CFG_CHG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_s5k4ecgx_write                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_G_INPUTS_CHANGE_REQ,4,2    ## @REG_G_INPUTS_CHANGE_REQ
	.comm	_FR_TIME_DYNAMIC,4,2            ## @FR_TIME_DYNAMIC
	.comm	_FR_TIME_Q_BEST_FRRATE,4,2      ## @FR_TIME_Q_BEST_FRRATE
	.comm	_REG_G_ACTIVE_PREV_CFG,4,2      ## @REG_G_ACTIVE_PREV_CFG
	.comm	_REG_G_PREV_OPEN_AFTER_CH,4,2   ## @REG_G_PREV_OPEN_AFTER_CH
	.comm	_REG_G_NEW_CFG_SYNC,4,2         ## @REG_G_NEW_CFG_SYNC
	.comm	_REG_G_PREV_CFG_CHG,4,2         ## @REG_G_PREV_CFG_CHG
	.no_dead_strip	___s5k4ecgx_s_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __s5k4ecgx_s_params
___s5k4ecgx_s_params:                   ; @__s5k4ecgx_s_params
	.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, x0
	add	x0, x0, #8
	bl	_v4l2_get_subdevdata
	mov	x19, x0
	ldr	x21, [x20]
	mov	x1, x21
	bl	_s5k4ecgx_set_input_window
	cbnz	w0, LBB0_16
; %bb.1:
	mov	x0, x19
	mov	x1, x21
	bl	_s5k4ecgx_set_zoom_window
	cbnz	w0, LBB0_16
; %bb.2:
Lloh0:
	adrp	x8, _REG_G_INPUTS_CHANGE_REQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_G_INPUTS_CHANGE_REQ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_s5k4ecgx_write
	cbnz	w0, LBB0_16
; %bb.3:
	mov	w21, #2590
	movk	w21, #28672, lsl #16
	mov	x0, x19
	mov	w1, #2590
	movk	w1, #28672, lsl #16
	mov	w2, #40
	bl	_s5k4ecgx_write
	cbnz	w0, LBB0_16
; %bb.4:
	add	w1, w21, #182
	mov	x0, x19
	mov	w2, #60
	bl	_s5k4ecgx_write
	cbnz	w0, LBB0_16
; %bb.5:
	mov	x0, x20
	bl	_s5k4ecgx_set_output_framefmt
	cbnz	w0, LBB0_16
; %bb.6:
	bl	_REG_P_PVI_MASK
	mov	x1, x0
	mov	x0, x19
	mov	w2, #82
	bl	_s5k4ecgx_write
	cbnz	w0, LBB0_16
; %bb.7:
	bl	_REG_P_FR_TIME_TYPE
	mov	x1, x0
Lloh3:
	adrp	x8, _FR_TIME_DYNAMIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FR_TIME_DYNAMIC@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_s5k4ecgx_write
	cbnz	w0, LBB0_16
; %bb.8:
	bl	_REG_P_FR_TIME_Q_TYPE
	mov	x1, x0
Lloh6:
	adrp	x8, _FR_TIME_Q_BEST_FRRATE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FR_TIME_Q_BEST_FRRATE@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_s5k4ecgx_write
	cbnz	w0, LBB0_16
; %bb.9:
	bl	_REG_P_MIN_FR_TIME
	mov	x20, x0
	mov	w0, #33300
	bl	_US_TO_FR_TIME
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_s5k4ecgx_write
	cbnz	w0, LBB0_16
; %bb.10:
	bl	_REG_P_MAX_FR_TIME
	mov	x20, x0
	mov	w0, #1064
	movk	w0, #1, lsl #16
	bl	_US_TO_FR_TIME
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_s5k4ecgx_write
	cbnz	w0, LBB0_16
; %bb.11:
	bl	_REG_P_PREV_MIRROR
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_s5k4ecgx_write
	cbnz	w0, LBB0_16
; %bb.12:
	bl	_REG_P_CAP_MIRROR
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_s5k4ecgx_write
	cbnz	w0, LBB0_16
; %bb.13:
Lloh9:
	adrp	x8, _REG_G_ACTIVE_PREV_CFG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REG_G_ACTIVE_PREV_CFG@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_s5k4ecgx_write
	cbnz	w0, LBB0_16
; %bb.14:
Lloh12:
	adrp	x8, _REG_G_PREV_OPEN_AFTER_CH@GOTPAGE
Lloh13:
	ldr	x8, [x8, _REG_G_PREV_OPEN_AFTER_CH@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_s5k4ecgx_write
	cbnz	w0, LBB0_16
; %bb.15:
Lloh15:
	adrp	x8, _REG_G_NEW_CFG_SYNC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _REG_G_NEW_CFG_SYNC@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_s5k4ecgx_write
	cbz	w0, LBB0_17
LBB0_16:
	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_17:
Lloh18:
	adrp	x8, _REG_G_PREV_CFG_CHG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _REG_G_PREV_CFG_CHG@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	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	_s5k4ecgx_write
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_G_INPUTS_CHANGE_REQ,4,2    ; @REG_G_INPUTS_CHANGE_REQ
	.comm	_FR_TIME_DYNAMIC,4,2            ; @FR_TIME_DYNAMIC
	.comm	_FR_TIME_Q_BEST_FRRATE,4,2      ; @FR_TIME_Q_BEST_FRRATE
	.comm	_REG_G_ACTIVE_PREV_CFG,4,2      ; @REG_G_ACTIVE_PREV_CFG
	.comm	_REG_G_PREV_OPEN_AFTER_CH,4,2   ; @REG_G_PREV_OPEN_AFTER_CH
	.comm	_REG_G_NEW_CFG_SYNC,4,2         ; @REG_G_NEW_CFG_SYNC
	.comm	_REG_G_PREV_CFG_CHG,4,2         ; @REG_G_PREV_CFG_CHG
	.no_dead_strip	___s5k4ecgx_s_params
.subsections_via_symbols
