	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ths7303_setval
_ths7303_setval:                        ## @ths7303_setval
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_v4l2_get_subdevdata
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_to_state
	testq	%r15, %r15
	je	LBB0_1
## %bb.2:
	addl	$-128, %ebx
	cmpl	$3, %ebx
	ja	LBB0_8
## %bb.3:
	movq	(%rax), %r15
	movslq	%ebx, %rax
	leaq	L_switch.table.ths7303_setval(%rip), %rcx
	movl	(%rcx,%rax,4), %r12d
	movl	(%r15), %edx
	andl	$39, %edx
	orl	%r12d, %edx
	movq	_THS7303_CHANNEL_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ths7303_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.4:
	movl	4(%r15), %edx
	andl	$39, %edx
	orl	%r12d, %edx
	movq	_THS7303_CHANNEL_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ths7303_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.5:
	movl	8(%r15), %r15d
	andl	$39, %r15d
	orl	%r12d, %r15d
	jmp	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_8:
	movq	_THS7303_CHANNEL_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_ths7303_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.11:
	movq	_THS7303_CHANNEL_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_ths7303_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
LBB0_6:
	movq	_THS7303_CHANNEL_3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_ths7303_write
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_7
LBB0_9:
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_THS7303_CHANNEL_1,4,2          ## @THS7303_CHANNEL_1
	.comm	_THS7303_CHANNEL_2,4,2          ## @THS7303_CHANNEL_2
	.comm	_THS7303_CHANNEL_3,4,2          ## @THS7303_CHANNEL_3
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"write byte data failed\n"

	.no_dead_strip	_ths7303_setval
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ## @switch.table.ths7303_setval
L_switch.table.ths7303_setval:
	.long	144                             ## 0x90
	.long	72                              ## 0x48
	.long	0                               ## 0x0
	.long	216                             ## 0xd8

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ths7303_setval
_ths7303_setval:                        ; @ths7303_setval
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	bl	_v4l2_get_subdevdata
	mov	x21, x0
	mov	x0, x19
	bl	_to_state
	cbz	x21, LBB0_5
; %bb.1:
	sub	w8, w20, #128
	cmp	w8, #3
	b.hi	LBB0_6
; %bb.2:
	ldr	x21, [x0]
Lloh0:
	adrp	x9, l_switch.table.ths7303_setval@PAGE
Lloh1:
	add	x9, x9, l_switch.table.ths7303_setval@PAGEOFF
	ldr	w22, [x9, w8, sxtw #2]
	ldr	w8, [x21]
	mov	w23, #39
	and	w8, w8, w23
	orr	w2, w22, w8
Lloh2:
	adrp	x8, _THS7303_CHANNEL_1@GOTPAGE
Lloh3:
	ldr	x8, [x8, _THS7303_CHANNEL_1@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ths7303_write
	mov	x20, x0
	cbnz	w0, LBB0_10
; %bb.3:
	ldr	w8, [x21, #4]
	and	w8, w8, w23
	orr	w2, w8, w22
Lloh5:
	adrp	x8, _THS7303_CHANNEL_2@GOTPAGE
Lloh6:
	ldr	x8, [x8, _THS7303_CHANNEL_2@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ths7303_write
	mov	x20, x0
	cbnz	w0, LBB0_10
; %bb.4:
	ldr	w8, [x21, #8]
	mov	w9, #39
	and	w8, w8, w9
	orr	w2, w8, w22
	b	LBB0_9
LBB0_5:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_11
LBB0_6:
Lloh11:
	adrp	x8, _THS7303_CHANNEL_1@GOTPAGE
Lloh12:
	ldr	x8, [x8, _THS7303_CHANNEL_1@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_ths7303_write
	mov	x20, x0
	cbnz	w0, LBB0_10
; %bb.7:
Lloh14:
	adrp	x8, _THS7303_CHANNEL_2@GOTPAGE
Lloh15:
	ldr	x8, [x8, _THS7303_CHANNEL_2@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_ths7303_write
	mov	x20, x0
	cbnz	w0, LBB0_10
; %bb.8:
	mov	w2, #0
LBB0_9:
Lloh17:
	adrp	x8, _THS7303_CHANNEL_3@GOTPAGE
Lloh18:
	ldr	x8, [x8, _THS7303_CHANNEL_3@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ths7303_write
	mov	x20, x0
	cbz	w0, LBB0_11
LBB0_10:
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
LBB0_11:
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_THS7303_CHANNEL_1,4,2          ; @THS7303_CHANNEL_1
	.comm	_THS7303_CHANNEL_2,4,2          ; @THS7303_CHANNEL_2
	.comm	_THS7303_CHANNEL_3,4,2          ; @THS7303_CHANNEL_3
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"write byte data failed\n"

	.no_dead_strip	_ths7303_setval
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @switch.table.ths7303_setval
l_switch.table.ths7303_setval:
	.long	144                             ; 0x90
	.long	72                              ; 0x48
	.long	0                               ; 0x0
	.long	216                             ; 0xd8

.subsections_via_symbols
