	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5k5baf_hw_find_min_fiv
_s5k5baf_hw_find_min_fiv:               ## @s5k5baf_hw_find_min_fiv
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_REG_G_ACTUAL_P_FR_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_s5k5baf_read
	cmpl	$0, (%rbx)
	jne	LBB0_26
## %bb.1:
	movl	%eax, %r15d
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_s5k5baf_hw_set_fiv
	movq	%rbx, %rdi
	callq	_s5k5baf_get_cfg_error
	cmpl	$0, (%rbx)
	je	LBB0_2
LBB0_26:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	8(%rbx), %r14
	testl	%eax, %eax
	je	LBB0_27
## %bb.3:
	cmpl	$128, %eax
	jne	LBB0_5
## %bb.4:
	incl	%r15d
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_v4l2_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	movl	%r12d, (%rbx)
LBB0_6:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_s5k5baf_hw_set_fiv
	movq	%rbx, %rdi
	callq	_s5k5baf_get_cfg_error
	cmpl	$0, (%rbx)
	jne	LBB0_26
## %bb.7:
	testl	%eax, %eax
	je	LBB0_27
## %bb.8:
	cmpl	$128, %eax
	jne	LBB0_10
## %bb.9:
	incl	%r15d
	jmp	LBB0_11
LBB0_10:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_v4l2_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	movl	%r12d, (%rbx)
LBB0_11:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_s5k5baf_hw_set_fiv
	movq	%rbx, %rdi
	callq	_s5k5baf_get_cfg_error
	cmpl	$0, (%rbx)
	jne	LBB0_26
## %bb.12:
	testl	%eax, %eax
	je	LBB0_27
## %bb.13:
	cmpl	$128, %eax
	jne	LBB0_15
## %bb.14:
	incl	%r15d
	jmp	LBB0_16
LBB0_15:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_v4l2_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	movl	%r12d, (%rbx)
LBB0_16:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_s5k5baf_hw_set_fiv
	movq	%rbx, %rdi
	callq	_s5k5baf_get_cfg_error
	cmpl	$0, (%rbx)
	jne	LBB0_26
## %bb.17:
	testl	%eax, %eax
	je	LBB0_27
## %bb.18:
	cmpl	$128, %eax
	jne	LBB0_20
## %bb.19:
	incl	%r15d
	jmp	LBB0_21
LBB0_20:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_v4l2_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	movl	%r12d, (%rbx)
LBB0_21:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_s5k5baf_hw_set_fiv
	movq	%rbx, %rdi
	callq	_s5k5baf_get_cfg_error
	cmpl	$0, (%rbx)
	jne	LBB0_26
## %bb.22:
	testl	%eax, %eax
	je	LBB0_27
## %bb.23:
	cmpl	$128, %eax
	je	LBB0_25
## %bb.24:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_v4l2_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	movl	%r15d, (%rbx)
LBB0_25:
	leaq	L_.str.2(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_v4l2_err
	movq	_ERANGE@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	movl	%r15d, (%rbx)
	jmp	LBB0_26
LBB0_27:
	movl	%r15d, 4(%rbx)
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_v4l2_info                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_G_ACTUAL_P_FR_TIME,4,2     ## @REG_G_ACTUAL_P_FR_TIME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"found valid frame interval: %d00us\n"

L_.str.1:                               ## @.str.1
	.asciz	"error setting frame interval: %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"cannot find correct frame interval\n"

	.comm	_ERANGE,4,2                     ## @ERANGE
	.no_dead_strip	_s5k5baf_hw_find_min_fiv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5k5baf_hw_find_min_fiv
_s5k5baf_hw_find_min_fiv:               ; @s5k5baf_hw_find_min_fiv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
Lloh0:
	adrp	x8, _REG_G_ACTUAL_P_FR_TIME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_G_ACTUAL_P_FR_TIME@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_s5k5baf_read
	ldr	w8, [x19]
	cbnz	w8, LBB0_2
; %bb.1:
	mov	x21, x0
	mov	x0, x19
	mov	x1, x21
	bl	_s5k5baf_hw_set_fiv
	mov	x0, x19
	bl	_s5k5baf_get_cfg_error
                                        ; kill: def $w0 killed $w0 def $x0
	mov	x20, x19
	ldr	w8, [x20], #8
	cbz	w8, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_3:
	cbz	w0, LBB0_27
; %bb.4:
	cmp	w0, #128
	b.ne	LBB0_6
; %bb.5:
	add	w21, w21, #1
	b	LBB0_7
LBB0_6:
	str	x0, [sp]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_v4l2_err
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x19]
LBB0_7:
	mov	x0, x19
	mov	x1, x21
	bl	_s5k5baf_hw_set_fiv
	mov	x0, x19
	bl	_s5k5baf_get_cfg_error
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x19]
	cbnz	w8, LBB0_2
; %bb.8:
	cbz	w0, LBB0_27
; %bb.9:
	cmp	w0, #128
	b.ne	LBB0_11
; %bb.10:
	add	w21, w21, #1
	b	LBB0_12
LBB0_11:
	str	x0, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_v4l2_err
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x19]
LBB0_12:
	mov	x0, x19
	mov	x1, x21
	bl	_s5k5baf_hw_set_fiv
	mov	x0, x19
	bl	_s5k5baf_get_cfg_error
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x19]
	cbnz	w8, LBB0_2
; %bb.13:
	cbz	w0, LBB0_27
; %bb.14:
	cmp	w0, #128
	b.ne	LBB0_16
; %bb.15:
	add	w21, w21, #1
	b	LBB0_17
LBB0_16:
	str	x0, [sp]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_v4l2_err
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x19]
LBB0_17:
	mov	x0, x19
	mov	x1, x21
	bl	_s5k5baf_hw_set_fiv
	mov	x0, x19
	bl	_s5k5baf_get_cfg_error
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x19]
	cbnz	w8, LBB0_2
; %bb.18:
	cbz	w0, LBB0_27
; %bb.19:
	cmp	w0, #128
	b.ne	LBB0_21
; %bb.20:
	add	w21, w21, #1
	b	LBB0_22
LBB0_21:
	str	x0, [sp]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_v4l2_err
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x19]
LBB0_22:
	mov	x0, x19
	mov	x1, x21
	bl	_s5k5baf_hw_set_fiv
	mov	x0, x19
	bl	_s5k5baf_get_cfg_error
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x19]
	cbnz	w8, LBB0_2
; %bb.23:
	cbz	w0, LBB0_27
; %bb.24:
	cmp	w0, #128
	b.eq	LBB0_26
; %bb.25:
	str	x0, [sp]
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_v4l2_err
Lloh25:
	adrp	x8, _EINVAL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x19]
LBB0_26:
Lloh28:
	adrp	x1, l_.str.2@PAGE
Lloh29:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_v4l2_err
Lloh30:
	adrp	x8, _ERANGE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x19]
	b	LBB0_2
LBB0_27:
	str	w21, [x19, #4]
Lloh33:
	adrp	x1, l_.str@PAGE
Lloh34:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_v4l2_info
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_G_ACTUAL_P_FR_TIME,4,2     ; @REG_G_ACTUAL_P_FR_TIME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"found valid frame interval: %d00us\n"

l_.str.1:                               ; @.str.1
	.asciz	"error setting frame interval: %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"cannot find correct frame interval\n"

	.comm	_ERANGE,4,2                     ; @ERANGE
	.no_dead_strip	_s5k5baf_hw_find_min_fiv
.subsections_via_symbols
