	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5k5baf_enum_frame_interval
_s5k5baf_enum_frame_interval:           ## @s5k5baf_enum_frame_interval
	.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	_S5K5BAF_MAX_FR_TIME@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_S5K5BAF_MIN_FR_TIME@GOTPCREL(%rip), %r14
	subq	(%r14), %rax
	cmpq	%rax, (%rdx)
	jg	LBB0_2
## %bb.1:
	movq	%rdx, %rbx
	movq	8(%rdx), %rax
	movq	_PAD_CIS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.3:
	leaq	36(%rbx), %rdi
	movq	_S5K5BAF_WIN_WIDTH_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_S5K5BAF_CIS_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	32(%rbx), %r8
	movq	_S5K5BAF_WIN_HEIGHT_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_S5K5BAF_CIS_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	movl	$1, %ecx
	pushq	$0
	pushq	$1
	pushq	%rax
	callq	_v4l_bound_align_image
	addq	$32, %rsp
	movq	(%rbx), %rax
	addq	(%r14), %rax
	movq	%rax, 24(%rbx)
	movl	$10000, 16(%rbx)                ## imm = 0x2710
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S5K5BAF_MAX_FR_TIME,8,3        ## @S5K5BAF_MAX_FR_TIME
	.comm	_S5K5BAF_MIN_FR_TIME,8,3        ## @S5K5BAF_MIN_FR_TIME
	.comm	_PAD_CIS,8,3                    ## @PAD_CIS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_S5K5BAF_WIN_WIDTH_MIN,4,2      ## @S5K5BAF_WIN_WIDTH_MIN
	.comm	_S5K5BAF_CIS_WIDTH,4,2          ## @S5K5BAF_CIS_WIDTH
	.comm	_S5K5BAF_WIN_HEIGHT_MIN,4,2     ## @S5K5BAF_WIN_HEIGHT_MIN
	.comm	_S5K5BAF_CIS_HEIGHT,4,2         ## @S5K5BAF_CIS_HEIGHT
	.no_dead_strip	_s5k5baf_enum_frame_interval
.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_interval
_s5k5baf_enum_frame_interval:           ; @s5k5baf_enum_frame_interval
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	x8, [x2]
Lloh0:
	adrp	x9, _S5K5BAF_MAX_FR_TIME@GOTPAGE
Lloh1:
	ldr	x9, [x9, _S5K5BAF_MAX_FR_TIME@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x20, _S5K5BAF_MIN_FR_TIME@GOTPAGE
Lloh4:
	ldr	x20, [x20, _S5K5BAF_MIN_FR_TIME@GOTPAGEOFF]
	ldr	x10, [x20]
	sub	x9, x9, x10
	cmp	x8, x9
	b.gt	LBB0_3
; %bb.1:
	mov	x19, x2
	ldr	x8, [x2, #8]
Lloh5:
	adrp	x9, _PAD_CIS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PAD_CIS@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
Lloh8:
	adrp	x8, _S5K5BAF_WIN_WIDTH_MIN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _S5K5BAF_WIN_WIDTH_MIN@GOTPAGEOFF]
	add	x0, x19, #36
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _S5K5BAF_CIS_WIDTH@GOTPAGE
Lloh12:
	ldr	x8, [x8, _S5K5BAF_CIS_WIDTH@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	add	x4, x19, #32
Lloh14:
	adrp	x8, _S5K5BAF_WIN_HEIGHT_MIN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _S5K5BAF_WIN_HEIGHT_MIN@GOTPAGEOFF]
Lloh16:
	ldr	w5, [x8]
Lloh17:
	adrp	x8, _S5K5BAF_CIS_HEIGHT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _S5K5BAF_CIS_HEIGHT@GOTPAGEOFF]
Lloh19:
	ldr	w6, [x8]
	str	wzr, [sp]
	mov	w3, #1
	mov	w7, #1
	bl	_v4l_bound_align_image
	mov	w0, #0
	ldr	x8, [x20]
	ldr	x9, [x19]
	add	x8, x9, x8
	str	x8, [x19, #24]
	mov	w8, #10000
	str	w8, [x19, #16]
	b	LBB0_4
LBB0_3:
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_S5K5BAF_MAX_FR_TIME,8,3        ; @S5K5BAF_MAX_FR_TIME
	.comm	_S5K5BAF_MIN_FR_TIME,8,3        ; @S5K5BAF_MIN_FR_TIME
	.comm	_PAD_CIS,8,3                    ; @PAD_CIS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_S5K5BAF_WIN_WIDTH_MIN,4,2      ; @S5K5BAF_WIN_WIDTH_MIN
	.comm	_S5K5BAF_CIS_WIDTH,4,2          ; @S5K5BAF_CIS_WIDTH
	.comm	_S5K5BAF_WIN_HEIGHT_MIN,4,2     ; @S5K5BAF_WIN_HEIGHT_MIN
	.comm	_S5K5BAF_CIS_HEIGHT,4,2         ; @S5K5BAF_CIS_HEIGHT
	.no_dead_strip	_s5k5baf_enum_frame_interval
.subsections_via_symbols
