	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5k6aa_presets_data_init
_s5k6aa_presets_data_init:              ## @s5k6aa_presets_data_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %r8
	movq	_S5K6AA_MAX_PRESETS@GOTPCREL(%rip), %r9
	cmpl	$0, (%r9)
	jle	LBB0_3
## %bb.1:
	movq	_s5k6aa_formats@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	leaq	24(%r8), %rsi
	xorl	%eax, %eax
	movq	_S5K6AA_OUT_WIDTH_DEF@GOTPCREL(%rip), %r10
	movq	_S5K6AA_OUT_HEIGHT_DEF@GOTPCREL(%rip), %r11
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r10), %ecx
	movl	%ecx, (%rsi)
	movl	(%r11), %ecx
	movl	%ecx, -4(%rsi)
	movl	%edx, -8(%rsi)
	movl	%eax, -24(%rsi)
	movq	$0, -16(%rsi)
	incl	%eax
	addq	$32, %rsi
	cmpl	(%r9), %eax
	jl	LBB0_2
LBB0_3:
	movq	_s5k6aa_intervals@GOTPCREL(%rip), %rax
	movq	_S5K6AA_INTERVAL_DEF_INDEX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	shlq	$2, %rcx
	addq	(%rax), %rcx
	movq	%rcx, 16(%rdi)
	movq	%r8, 8(%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S5K6AA_MAX_PRESETS,4,2         ## @S5K6AA_MAX_PRESETS
	.comm	_S5K6AA_OUT_WIDTH_DEF,4,2       ## @S5K6AA_OUT_WIDTH_DEF
	.comm	_S5K6AA_OUT_HEIGHT_DEF,4,2      ## @S5K6AA_OUT_HEIGHT_DEF
	.comm	_s5k6aa_formats,8,3             ## @s5k6aa_formats
	.comm	_s5k6aa_intervals,8,3           ## @s5k6aa_intervals
	.comm	_S5K6AA_INTERVAL_DEF_INDEX,8,3  ## @S5K6AA_INTERVAL_DEF_INDEX
	.no_dead_strip	_s5k6aa_presets_data_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5k6aa_presets_data_init
_s5k6aa_presets_data_init:              ; @s5k6aa_presets_data_init
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _S5K6AA_MAX_PRESETS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _S5K6AA_MAX_PRESETS@GOTPAGEOFF]
	ldr	w10, [x9]
	cmp	w10, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w10, #0
Lloh2:
	adrp	x11, _s5k6aa_formats@GOTPAGE
Lloh3:
	ldr	x11, [x11, _s5k6aa_formats@GOTPAGEOFF]
Lloh4:
	ldr	x11, [x11]
	ldr	w11, [x11]
	add	x12, x8, #24
Lloh5:
	adrp	x13, _S5K6AA_OUT_WIDTH_DEF@GOTPAGE
Lloh6:
	ldr	x13, [x13, _S5K6AA_OUT_WIDTH_DEF@GOTPAGEOFF]
Lloh7:
	adrp	x14, _S5K6AA_OUT_HEIGHT_DEF@GOTPAGE
Lloh8:
	ldr	x14, [x14, _S5K6AA_OUT_HEIGHT_DEF@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w15, [x13]
	str	w15, [x12]
	ldr	w15, [x14]
	stp	w11, w15, [x12, #-8]
	stur	w10, [x12, #-24]
	stur	xzr, [x12, #-16]
	add	w10, w10, #1
	ldr	w15, [x9]
	add	x12, x12, #32
	cmp	w10, w15
	b.lt	LBB0_2
LBB0_3:
Lloh9:
	adrp	x9, _s5k6aa_intervals@GOTPAGE
Lloh10:
	ldr	x9, [x9, _s5k6aa_intervals@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
Lloh12:
	adrp	x10, _S5K6AA_INTERVAL_DEF_INDEX@GOTPAGE
Lloh13:
	ldr	x10, [x10, _S5K6AA_INTERVAL_DEF_INDEX@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	add	x9, x9, x10, lsl #2
	stp	x8, x9, [x0, #8]
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_S5K6AA_MAX_PRESETS,4,2         ; @S5K6AA_MAX_PRESETS
	.comm	_S5K6AA_OUT_WIDTH_DEF,4,2       ; @S5K6AA_OUT_WIDTH_DEF
	.comm	_S5K6AA_OUT_HEIGHT_DEF,4,2      ; @S5K6AA_OUT_HEIGHT_DEF
	.comm	_s5k6aa_formats,8,3             ; @s5k6aa_formats
	.comm	_s5k6aa_intervals,8,3           ; @s5k6aa_intervals
	.comm	_S5K6AA_INTERVAL_DEF_INDEX,8,3  ; @S5K6AA_INTERVAL_DEF_INDEX
	.no_dead_strip	_s5k6aa_presets_data_init
.subsections_via_symbols
