	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sensor_get_hue
_sensor_get_hue:                        ## @sensor_get_hue
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	(%rdi), %eax
	leal	-130(%rax), %ecx
	cmpl	$3, %ecx
	jae	LBB0_2
## %bb.1:
	movq	_OV7610_REG_BLUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	jmp	LBB0_5
LBB0_2:
	cmpl	$128, %eax
	je	LBB0_7
## %bb.3:
	cmpl	$129, %eax
	jne	LBB0_9
## %bb.4:
	movq	%r15, %rdi
	movl	$122, %esi
LBB0_5:
	callq	_i2c_r
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_10
## %bb.6:
	shll	$8, %ebx
	jmp	LBB0_8
LBB0_7:
	movzwl	4(%r15), %ebx
LBB0_8:
	movw	%bx, (%r14)
	movzwl	%bx, %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movl	$3, %edi
	xorl	%eax, %eax
	callq	_PDEBUG
	movzwl	(%r14), %eax
	movw	%ax, 4(%r15)
	jmp	LBB0_10
LBB0_9:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movl	$3, %edi
	xorl	%eax, %eax
	callq	_PDEBUG
	movq	_EPERM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OV7610_REG_BLUE,4,2            ## @OV7610_REG_BLUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported with this sensor"

	.comm	_EPERM,4,2                      ## @EPERM
L_.str.1:                               ## @.str.1
	.asciz	"%d"

	.no_dead_strip	_sensor_get_hue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sensor_get_hue
_sensor_get_hue:                        ; @sensor_get_hue
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x0]
	sub	w9, w8, #130
	cmp	w9, #3
	b.hs	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _OV7610_REG_BLUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OV7610_REG_BLUE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_i2c_r
	tbz	w0, #31, LBB0_5
	b	LBB0_9
LBB0_2:
	cmp	w8, #128
	b.eq	LBB0_6
; %bb.3:
	cmp	w8, #129
	b.ne	LBB0_8
; %bb.4:
	mov	x0, x19
	mov	w1, #122
	bl	_i2c_r
	tbnz	w0, #31, LBB0_9
LBB0_5:
	lsl	w8, w0, #8
	b	LBB0_7
LBB0_6:
	ldrh	w8, [x19, #4]
LBB0_7:
	strh	w8, [x20]
	and	x8, x8, #0xffff
	str	x8, [sp]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #3
	bl	_PDEBUG
	mov	w0, #0
	ldrh	w8, [x20]
	strh	w8, [x19, #4]
	b	LBB0_9
LBB0_8:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #3
	bl	_PDEBUG
Lloh7:
	adrp	x8, _EPERM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_OV7610_REG_BLUE,4,2            ; @OV7610_REG_BLUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported with this sensor"

	.comm	_EPERM,4,2                      ; @EPERM
l_.str.1:                               ; @.str.1
	.asciz	"%d"

	.no_dead_strip	_sensor_get_hue
.subsections_via_symbols
