	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si4713_checkrev
_si4713_checkrev:                       ## @si4713_checkrev
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	callq	_v4l2_get_subdevdata
	movq	%rax, %r14
	movq	_SI4713_GETREV_NRESP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	_SI4713_CMD_GET_REV@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	_DEFAULT_TIMEOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	subq	$8, %rsp
	movq	%r15, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%rbx, %r8
	movl	%eax, %r9d
	pushq	%r10
	callq	_si4713_send_command
	addq	$16, %rsp
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	movq	8(%rbx), %rdx
	movq	_SI4713_PRODUCT_NUMBER@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_3
## %bb.2:
	movl	(%r14), %edx
	addl	%edx, %edx
	movq	8(%r14), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_v4l2_info
	jmp	LBB0_4
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_v4l2_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	movl	%r12d, %eax
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SI4713_GETREV_NRESP,4,2        ## @SI4713_GETREV_NRESP
	.comm	_SI4713_CMD_GET_REV,4,2         ## @SI4713_CMD_GET_REV
	.comm	_DEFAULT_TIMEOUT,4,2            ## @DEFAULT_TIMEOUT
	.comm	_SI4713_PRODUCT_NUMBER,8,3      ## @SI4713_PRODUCT_NUMBER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"chip found @ 0x%02x (%s)\n"

L_.str.1:                               ## @.str.1
	.asciz	"Invalid product number 0x%X\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_si4713_checkrev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function si4713_checkrev
_si4713_checkrev:                       ; @si4713_checkrev
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	bl	_v4l2_get_subdevdata
	mov	x20, x0
Lloh3:
	adrp	x8, _SI4713_GETREV_NRESP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SI4713_GETREV_NRESP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x22, x9, x8
	mov	sp, x22
Lloh8:
	adrp	x8, _SI4713_CMD_GET_REV@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SI4713_CMD_GET_REV@GOTPAGEOFF]
Lloh10:
	ldr	w21, [x8]
	mov	x0, x22
	bl	_ARRAY_SIZE
	mov	x5, x0
Lloh11:
	adrp	x8, _DEFAULT_TIMEOUT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DEFAULT_TIMEOUT@GOTPAGEOFF]
Lloh13:
	ldr	w6, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	x2, #0
	mov	w3, #0
	mov	x4, x22
	bl	_si4713_send_command
	mov	x21, x0
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	x2, [x22, #8]
Lloh14:
	adrp	x8, _SI4713_PRODUCT_NUMBER@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SI4713_PRODUCT_NUMBER@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_3
; %bb.2:
	ldr	w8, [x20]
	lsl	w2, w8, #1
	ldr	x8, [x20, #8]
	ldr	w3, [x8]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_v4l2_info
	b	LBB0_4
LBB0_3:
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_v4l2_err
Lloh21:
	adrp	x8, _EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_4:
	ldur	x8, [x29, #-40]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x21
	sub	sp, x29, #32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_SI4713_GETREV_NRESP,4,2        ; @SI4713_GETREV_NRESP
	.comm	_SI4713_CMD_GET_REV,4,2         ; @SI4713_CMD_GET_REV
	.comm	_DEFAULT_TIMEOUT,4,2            ; @DEFAULT_TIMEOUT
	.comm	_SI4713_PRODUCT_NUMBER,8,3      ; @SI4713_PRODUCT_NUMBER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"chip found @ 0x%02x (%s)\n"

l_.str.1:                               ; @.str.1
	.asciz	"Invalid product number 0x%X\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_si4713_checkrev
.subsections_via_symbols
