	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5k5baf_enum_frame_size
_s5k5baf_enum_frame_size:               ## @s5k5baf_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
	cmpq	$0, (%rdx)
	jle	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
LBB0_2:
	movq	%rdx, %rbx
	movq	8(%rdx), %rax
	movq	_PAD_CIS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_MEDIA_BUS_FMT_FIXED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movq	_S5K5BAF_CIS_WIDTH@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 48(%rbx)
	movq	%rax, 40(%rbx)
	movq	_S5K5BAF_CIS_HEIGHT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movq	%rax, 32(%rbx)
	jmp	LBB0_9
LBB0_4:
	movq	_s5k5baf_formats@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	movq	(%r14), %rcx
	cltq
	leal	-1(%rax), %edx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	subl	$1, %edx
	jb	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%rbx), %rdi
	leaq	-1(%rax), %rsi
	cmpq	-8(%rcx,%rax,8), %rdi
	movq	%rsi, %rax
	jne	LBB0_5
	jmp	LBB0_8
LBB0_6:
	xorl	%esi, %esi
LBB0_8:
	movslq	%esi, %rax
	movq	(%rcx,%rax,8), %rax
	movq	%rax, 16(%rbx)
	movq	_S5K5BAF_WIN_WIDTH_MIN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 48(%rbx)
	movq	_S5K5BAF_CIS_WIDTH@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%rbx)
	movq	_S5K5BAF_WIN_HEIGHT_MIN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%rbx)
	movq	_S5K5BAF_CIS_HEIGHT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PAD_CIS,8,3                    ## @PAD_CIS
	.comm	_MEDIA_BUS_FMT_FIXED,8,3        ## @MEDIA_BUS_FMT_FIXED
	.comm	_S5K5BAF_CIS_WIDTH,8,3          ## @S5K5BAF_CIS_WIDTH
	.comm	_S5K5BAF_CIS_HEIGHT,8,3         ## @S5K5BAF_CIS_HEIGHT
	.comm	_s5k5baf_formats,8,3            ## @s5k5baf_formats
	.comm	_S5K5BAF_WIN_WIDTH_MIN,8,3      ## @S5K5BAF_WIN_WIDTH_MIN
	.comm	_S5K5BAF_WIN_HEIGHT_MIN,8,3     ## @S5K5BAF_WIN_HEIGHT_MIN
	.no_dead_strip	_s5k5baf_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 s5k5baf_enum_frame_size
_s5k5baf_enum_frame_size:               ; @s5k5baf_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
	ldr	x8, [x2]
	cmp	x8, #1
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_2:
	mov	x19, x2
	ldr	x8, [x2, #8]
Lloh3:
	adrp	x9, _PAD_CIS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PAD_CIS@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #0
Lloh6:
	adrp	x8, _MEDIA_BUS_FMT_FIXED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MEDIA_BUS_FMT_FIXED@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _S5K5BAF_CIS_WIDTH@GOTPAGE
Lloh10:
	ldr	x9, [x9, _S5K5BAF_CIS_WIDTH@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
Lloh12:
	adrp	x10, _S5K5BAF_CIS_HEIGHT@GOTPAGE
Lloh13:
	ldr	x10, [x10, _S5K5BAF_CIS_HEIGHT@GOTPAGEOFF]
	stp	x9, x9, [x19, #40]
Lloh14:
	ldr	x10, [x10]
	stp	x8, x10, [x19, #16]
	str	x10, [x19, #32]
	b	LBB0_9
LBB0_4:
Lloh15:
	adrp	x20, _s5k5baf_formats@GOTPAGE
Lloh16:
	ldr	x20, [x20, _s5k5baf_formats@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x20]
	sxtw	x9, w0
	sub	x10, x8, #8
	sub	w11, w0, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w11, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x12, [x19, #16]
	ldr	x13, [x10, x9, lsl #3]
	sub	w11, w11, #1
	sub	x9, x9, #1
	cmp	x12, x13
	b.ne	LBB0_5
	b	LBB0_8
LBB0_7:
	mov	x9, #0
LBB0_8:
	mov	w0, #0
	sbfiz	x9, x9, #3, #32
	ldr	x8, [x8, x9]
Lloh17:
	adrp	x9, _S5K5BAF_WIN_WIDTH_MIN@GOTPAGE
Lloh18:
	ldr	x9, [x9, _S5K5BAF_WIN_WIDTH_MIN@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
Lloh20:
	adrp	x10, _S5K5BAF_CIS_WIDTH@GOTPAGE
Lloh21:
	ldr	x10, [x10, _S5K5BAF_CIS_WIDTH@GOTPAGEOFF]
	str	x9, [x19, #48]
Lloh22:
	ldr	x9, [x10]
Lloh23:
	adrp	x10, _S5K5BAF_WIN_HEIGHT_MIN@GOTPAGE
Lloh24:
	ldr	x10, [x10, _S5K5BAF_WIN_HEIGHT_MIN@GOTPAGEOFF]
Lloh25:
	ldr	x10, [x10]
	stp	x10, x9, [x19, #32]
Lloh26:
	adrp	x9, _S5K5BAF_CIS_HEIGHT@GOTPAGE
Lloh27:
	ldr	x9, [x9, _S5K5BAF_CIS_HEIGHT@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	stp	x8, x9, [x19, #16]
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PAD_CIS,8,3                    ; @PAD_CIS
	.comm	_MEDIA_BUS_FMT_FIXED,8,3        ; @MEDIA_BUS_FMT_FIXED
	.comm	_S5K5BAF_CIS_WIDTH,8,3          ; @S5K5BAF_CIS_WIDTH
	.comm	_S5K5BAF_CIS_HEIGHT,8,3         ; @S5K5BAF_CIS_HEIGHT
	.comm	_s5k5baf_formats,8,3            ; @s5k5baf_formats
	.comm	_S5K5BAF_WIN_WIDTH_MIN,8,3      ; @S5K5BAF_WIN_WIDTH_MIN
	.comm	_S5K5BAF_WIN_HEIGHT_MIN,8,3     ; @S5K5BAF_WIN_HEIGHT_MIN
	.no_dead_strip	_s5k5baf_enum_frame_size
.subsections_via_symbols
