	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5k5baf_hw_set_config
_s5k5baf_hw_set_config:                 ## @s5k5baf_hw_set_config
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_s5k5baf_formats@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rdi), %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%edi, %edi
	callq	_REG_P_OUT_WIDTH
	movl	16(%rbx), %edx
	movl	8(%rbx), %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	12(%rbx), %ecx
	movq	_PCLK_MAX_FREQ@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r9d
	sarl	$2, %r9d
	movq	_PCLK_MIN_FREQ@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r10d
	sarl	$2, %r10d
	movq	_PVI_MASK_MIPI@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r15d
	movq	_CLK_MIPI_INDEX@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r12d
	movq	_FR_RATE_FIXED@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r13d
	movq	_FR_RATE_Q_DYNAMIC@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r14d
	movq	_S5K5BAF_MIN_FR_TIME@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r11d
	subq	$8, %rsp
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	pushq	%r11
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%r15
	pushq	%r10
	callq	_s5k5baf_write_seq
	addq	$64, %rsp
	movq	%rbx, %rdi
	callq	_s5k5baf_hw_sync_cfg
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_s5k5baf_hw_validate_cfg        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_s5k5baf_formats,8,3            ## @s5k5baf_formats
	.comm	_PCLK_MAX_FREQ,4,2              ## @PCLK_MAX_FREQ
	.comm	_PCLK_MIN_FREQ,4,2              ## @PCLK_MIN_FREQ
	.comm	_PVI_MASK_MIPI,4,2              ## @PVI_MASK_MIPI
	.comm	_CLK_MIPI_INDEX,4,2             ## @CLK_MIPI_INDEX
	.comm	_FR_RATE_FIXED,4,2              ## @FR_RATE_FIXED
	.comm	_FR_RATE_Q_DYNAMIC,4,2          ## @FR_RATE_Q_DYNAMIC
	.comm	_S5K5BAF_MIN_FR_TIME,4,2        ## @S5K5BAF_MIN_FR_TIME
	.no_dead_strip	_s5k5baf_hw_set_config
.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_config
_s5k5baf_hw_set_config:                 ; @s5k5baf_hw_set_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
Lloh0:
	adrp	x8, _s5k5baf_formats@GOTPAGE
Lloh1:
	ldr	x8, [x8, _s5k5baf_formats@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x0]
	ldr	w20, [x8, x9, lsl #2]
	mov	w0, #0
	bl	_REG_P_OUT_WIDTH
	mov	x1, x0
Lloh3:
	adrp	x8, _PCLK_MAX_FREQ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCLK_MAX_FREQ@GOTPAGEOFF]
	ldp	w3, w2, [x19, #12]
Lloh5:
	ldr	w8, [x8]
	asr	w5, w8, #2
Lloh6:
	adrp	x8, _PCLK_MIN_FREQ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCLK_MIN_FREQ@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	asr	w6, w8, #2
Lloh9:
	adrp	x8, _PVI_MASK_MIPI@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PVI_MASK_MIPI@GOTPAGEOFF]
Lloh11:
	ldr	w7, [x8]
Lloh12:
	adrp	x8, _CLK_MIPI_INDEX@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CLK_MIPI_INDEX@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _FR_RATE_FIXED@GOTPAGE
Lloh16:
	ldr	x9, [x9, _FR_RATE_FIXED@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
Lloh18:
	adrp	x10, _FR_RATE_Q_DYNAMIC@GOTPAGE
Lloh19:
	ldr	x10, [x10, _FR_RATE_Q_DYNAMIC@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	ldr	w11, [x19, #8]
Lloh21:
	adrp	x12, _S5K5BAF_MIN_FR_TIME@GOTPAGE
Lloh22:
	ldr	x12, [x12, _S5K5BAF_MIN_FR_TIME@GOTPAGEOFF]
Lloh23:
	ldr	w12, [x12]
	stp	w11, w12, [sp, #12]
	stp	w9, w10, [sp, #4]
	str	w8, [sp]
	mov	x0, x19
	mov	x4, x20
	bl	_s5k5baf_write_seq
	mov	x0, x19
	bl	_s5k5baf_hw_sync_cfg
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_s5k5baf_hw_validate_cfg
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_s5k5baf_formats,8,3            ; @s5k5baf_formats
	.comm	_PCLK_MAX_FREQ,4,2              ; @PCLK_MAX_FREQ
	.comm	_PCLK_MIN_FREQ,4,2              ; @PCLK_MIN_FREQ
	.comm	_PVI_MASK_MIPI,4,2              ; @PVI_MASK_MIPI
	.comm	_CLK_MIPI_INDEX,4,2             ; @CLK_MIPI_INDEX
	.comm	_FR_RATE_FIXED,4,2              ; @FR_RATE_FIXED
	.comm	_FR_RATE_Q_DYNAMIC,4,2          ; @FR_RATE_Q_DYNAMIC
	.comm	_S5K5BAF_MIN_FR_TIME,4,2        ; @S5K5BAF_MIN_FR_TIME
	.no_dead_strip	_s5k5baf_hw_set_config
.subsections_via_symbols
