	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ina209_to_reg
_ina209_to_reg:                         ## @ina209_to_reg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
                                        ## kill: def $edi killed $edi def $rdi
	addl	$-128, %edi
	cmpl	$9, %edi
	ja	LBB0_7
## %bb.1:
	movl	%esi, %ebx
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rdi,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_3:
	movq	%rdx, %rdi
	xorl	%esi, %esi
	movl	$32000, %edx                    ## imm = 0x7D00
	callq	_clamp_val
	movslq	%eax, %rdi
	movl	$4, %esi
	callq	_DIV_ROUND_CLOSEST
                                        ## kill: def $eax killed $eax def $rax
	andl	$7, %ebx
	leal	(%rbx,%rax,8), %eax
	jmp	LBB0_8
LBB0_2:
	movq	%rdx, %rdi
	movl	$-320, %esi                     ## imm = 0xFEC0
	movl	$320, %edx                      ## imm = 0x140
	callq	_clamp_val
	imull	$100, %eax, %eax
	jmp	LBB0_8
LBB0_6:
	movq	%rdx, %rdi
	movl	$20000, %esi                    ## imm = 0x4E20
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_DIV_ROUND_CLOSEST              ## TAILCALL
LBB0_4:
	negq	%rdx
LBB0_5:
	movq	%rdx, %rdi
	xorl	%esi, %esi
	movl	$255, %edx
	callq	_clamp_val
	movl	%eax, %ecx
	shll	$8, %ecx
	movzbl	%bl, %eax
	orl	%ecx, %eax
	jmp	LBB0_8
LBB0_7:
	movq	_EACCES@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_5
	.long	L0_0_set_4
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.comm	_EACCES,4,2                     ## @EACCES
	.no_dead_strip	_ina209_to_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ina209_to_reg
_ina209_to_reg:                         ; @ina209_to_reg
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	sub	w8, w0, #128
	cmp	w8, #9
	b.hi	LBB0_8
; %bb.1:
	mov	x19, x1
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	x0, x2
	mov	w1, #0
	mov	w2, #32000
	bl	_clamp_val
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x0, w0
	mov	w1, #4
	bl	_DIV_ROUND_CLOSEST
	bfi	w19, w0, #3, #29
	b	LBB0_9
LBB0_3:
	mov	x0, x2
	mov	w1, #-320
	mov	w2, #320
	bl	_clamp_val
	mov	w8, #100
	mul	w19, w0, w8
	b	LBB0_9
LBB0_4:
	mov	x0, x2
	mov	w1, #20000
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_DIV_ROUND_CLOSEST
LBB0_5:
	mov	x0, x2
	b	LBB0_7
LBB0_6:
	neg	x0, x2
LBB0_7:
	mov	w1, #0
	mov	w2, #255
	bl	_clamp_val
	bfi	w19, w0, #8, #24
	b	LBB0_9
LBB0_8:
Lloh2:
	adrp	x8, _EACCES@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.comm	_EACCES,4,2                     ; @EACCES
	.no_dead_strip	_ina209_to_reg
.subsections_via_symbols
