	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adv7343_s_ctrl
_adv7343_s_ctrl:                        ## @adv7343_s_ctrl
	.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
	movq	%rdi, %rbx
	callq	_to_sd
	movl	(%rbx), %ecx
	cmpl	$128, %ecx
	je	LBB0_5
## %bb.1:
	cmpl	$129, %ecx
	je	LBB0_6
## %bb.2:
	cmpl	$130, %ecx
	jne	LBB0_7
## %bb.3:
	movq	_ADV7343_SD_BRIGHTNESS_WSS@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_5:
	movq	_ADV7343_SD_HUE_REG@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_6:
	movq	_ADV7343_DAC2_OUTPUT_LEVEL@GOTPCREL(%rip), %rcx
LBB0_4:
	movl	(%rcx), %esi
	movl	4(%rbx), %edx
	movq	%rax, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_adv7343_write                  ## TAILCALL
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADV7343_SD_BRIGHTNESS_WSS,4,2  ## @ADV7343_SD_BRIGHTNESS_WSS
	.comm	_ADV7343_SD_HUE_REG,4,2         ## @ADV7343_SD_HUE_REG
	.comm	_ADV7343_DAC2_OUTPUT_LEVEL,4,2  ## @ADV7343_DAC2_OUTPUT_LEVEL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_adv7343_s_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adv7343_s_ctrl
_adv7343_s_ctrl:                        ; @adv7343_s_ctrl
	.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
	mov	x19, x0
	bl	_to_sd
	ldr	w8, [x19]
	cmp	w8, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #130
	b.ne	LBB0_7
; %bb.3:
Lloh0:
	adrp	x8, _ADV7343_SD_BRIGHTNESS_WSS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADV7343_SD_BRIGHTNESS_WSS@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh2:
	adrp	x8, _ADV7343_SD_HUE_REG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ADV7343_SD_HUE_REG@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh4:
	adrp	x8, _ADV7343_DAC2_OUTPUT_LEVEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ADV7343_DAC2_OUTPUT_LEVEL@GOTPAGEOFF]
LBB0_6:
	ldr	w1, [x8]
	ldr	w2, [x19, #4]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_adv7343_write
LBB0_7:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ADV7343_SD_BRIGHTNESS_WSS,4,2  ; @ADV7343_SD_BRIGHTNESS_WSS
	.comm	_ADV7343_SD_HUE_REG,4,2         ; @ADV7343_SD_HUE_REG
	.comm	_ADV7343_DAC2_OUTPUT_LEVEL,4,2  ; @ADV7343_DAC2_OUTPUT_LEVEL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_adv7343_s_ctrl
.subsections_via_symbols
