	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5k6aa_enum_frame_size
_s5k6aa_enum_frame_size:                ## @s5k6aa_enum_frame_size
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rbx
	movq	_s5k6aa_formats@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	cmpq	$0, (%rbx)
	jle	LBB0_1
## %bb.7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_1:
	movq	(%r14), %rcx
	cltq
	leal	-1(%rax), %edx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	subl	$1, %edx
	jb	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rdi
	leaq	-1(%rax), %rsi
	cmpq	-8(%rcx,%rax,8), %rdi
	movq	%rsi, %rax
	jne	LBB0_2
	jmp	LBB0_5
LBB0_3:
	xorl	%esi, %esi
LBB0_5:
	movslq	%esi, %rax
	movq	(%rcx,%rax,8), %rax
	movq	%rax, 8(%rbx)
	movq	_S5K6AA_WIN_WIDTH_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_S5K6AA_WIN_WIDTH_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_S5K6AA_WIN_HEIGHT_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_S5K6AA_WIN_HEIGHT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_s5k6aa_formats,8,3             ## @s5k6aa_formats
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_S5K6AA_WIN_WIDTH_MIN,4,2       ## @S5K6AA_WIN_WIDTH_MIN
	.comm	_S5K6AA_WIN_WIDTH_MAX,4,2       ## @S5K6AA_WIN_WIDTH_MAX
	.comm	_S5K6AA_WIN_HEIGHT_MIN,4,2      ## @S5K6AA_WIN_HEIGHT_MIN
	.comm	_S5K6AA_WIN_HEIGHT_MAX,4,2      ## @S5K6AA_WIN_HEIGHT_MAX
	.no_dead_strip	_s5k6aa_enum_frame_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5k6aa_enum_frame_size
_s5k6aa_enum_frame_size:                ; @s5k6aa_enum_frame_size
	.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, x2
Lloh0:
	adrp	x20, _s5k6aa_formats@GOTPAGE
Lloh1:
	ldr	x20, [x20, _s5k6aa_formats@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x19]
	cmp	x8, #0
	b.le	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_2:
	ldr	x8, [x20]
	sxtw	x9, w0
	sub	x10, x8, #8
	sub	w11, w0, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w11, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x12, [x19, #8]
	ldr	x13, [x10, x9, lsl #3]
	sub	w11, w11, #1
	sub	x9, x9, #1
	cmp	x12, x13
	b.ne	LBB0_3
	b	LBB0_6
LBB0_5:
	mov	x9, #0
LBB0_6:
	mov	w0, #0
	sbfiz	x9, x9, #3, #32
	ldr	x8, [x8, x9]
	str	x8, [x19, #8]
Lloh5:
	adrp	x8, _S5K6AA_WIN_WIDTH_MIN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _S5K6AA_WIN_WIDTH_MIN@GOTPAGEOFF]
Lloh7:
	adrp	x9, _S5K6AA_WIN_WIDTH_MAX@GOTPAGE
Lloh8:
	ldr	x9, [x9, _S5K6AA_WIN_WIDTH_MAX@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #24]
Lloh11:
	adrp	x8, _S5K6AA_WIN_HEIGHT_MIN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _S5K6AA_WIN_HEIGHT_MIN@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _S5K6AA_WIN_HEIGHT_MAX@GOTPAGE
Lloh15:
	ldr	x9, [x9, _S5K6AA_WIN_HEIGHT_MAX@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #16]
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_s5k6aa_formats,8,3             ; @s5k6aa_formats
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_S5K6AA_WIN_WIDTH_MIN,4,2       ; @S5K6AA_WIN_WIDTH_MIN
	.comm	_S5K6AA_WIN_WIDTH_MAX,4,2       ; @S5K6AA_WIN_WIDTH_MAX
	.comm	_S5K6AA_WIN_HEIGHT_MIN,4,2      ; @S5K6AA_WIN_HEIGHT_MIN
	.comm	_S5K6AA_WIN_HEIGHT_MAX,4,2      ; @S5K6AA_WIN_HEIGHT_MAX
	.no_dead_strip	_s5k6aa_enum_frame_size
.subsections_via_symbols
