	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5k6aa_check_fw_revision
_s5k6aa_check_fw_revision:              ## @s5k6aa_check_fw_revision
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_v4l2_get_subdevdata
	movq	%rax, %r15
	movq	$0, -32(%rbp)
	movq	$0, -40(%rbp)
	movq	%rax, %rdi
	callq	_s5k6aa_set_ahb_address
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movq	_REG_FW_APIVER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	movq	%r15, %rdi
	callq	_s5k6aa_read
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	_REG_FW_REVISION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	movq	%r15, %rdi
	callq	_s5k6aa_read
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_4
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_v4l2_err
LBB0_5:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	-32(%rbp), %rdx
	movq	-40(%rbp), %rcx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_v4l2_info
	movq	-32(%rbp), %rax
	movq	_S5K6AAFX_FW_APIVER@GOTPCREL(%rip), %rcx
	movq	_ENODEV@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	xorl	%ebx, %ebx
	subl	(%rdx), %ebx
	cmpq	(%rcx), %rax
	cmovel	%esi, %ebx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_FW_APIVER,4,2              ## @REG_FW_APIVER
	.comm	_REG_FW_REVISION,4,2            ## @REG_FW_REVISION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FW revision check failed!\n"

L_.str.1:                               ## @.str.1
	.asciz	"FW API ver.: 0x%X, FW rev.: 0x%X\n"

	.comm	_S5K6AAFX_FW_APIVER,8,3         ## @S5K6AAFX_FW_APIVER
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_s5k6aa_check_fw_revision
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5k6aa_check_fw_revision
_s5k6aa_check_fw_revision:              ; @s5k6aa_check_fw_revision
	.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
	bl	_v4l2_get_subdevdata
	mov	x20, x0
	stp	xzr, xzr, [sp]
	bl	_s5k6aa_set_ahb_address
	mov	x21, x0
	cbnz	w0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _REG_FW_APIVER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_FW_APIVER@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x20
	bl	_s5k6aa_read
	mov	x21, x0
	cbnz	w0, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _REG_FW_REVISION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REG_FW_REVISION@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x20
	bl	_s5k6aa_read
	mov	x21, x0
	cbz	w0, LBB0_5
LBB0_3:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_v4l2_err
LBB0_4:
	mov	x0, 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
	ret
LBB0_5:
	ldp	x3, x2, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_v4l2_info
	ldr	x8, [sp, #8]
Lloh10:
	adrp	x9, _S5K6AAFX_FW_APIVER@GOTPAGE
Lloh11:
	ldr	x9, [x9, _S5K6AAFX_FW_APIVER@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
Lloh13:
	adrp	x10, _ENODEV@GOTPAGE
Lloh14:
	ldr	x10, [x10, _ENODEV@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	cmp	x8, x9
	csneg	w21, wzr, w10, eq
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_FW_APIVER,4,2              ; @REG_FW_APIVER
	.comm	_REG_FW_REVISION,4,2            ; @REG_FW_REVISION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FW revision check failed!\n"

l_.str.1:                               ; @.str.1
	.asciz	"FW API ver.: 0x%X, FW rev.: 0x%X\n"

	.comm	_S5K6AAFX_FW_APIVER,8,3         ; @S5K6AAFX_FW_APIVER
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_s5k6aa_check_fw_revision
.subsections_via_symbols
