	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adv7393_s_ctrl
_adv7393_s_ctrl:                        ## @adv7393_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_4
## %bb.1:
	cmpl	$129, %ecx
	je	LBB0_5
## %bb.2:
	cmpl	$130, %ecx
	jne	LBB0_7
## %bb.3:
	movq	_ADV7393_SD_BRIGHTNESS_WSS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_SD_BRIGHTNESS_VALUE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	4(%rbx), %edx
	jmp	LBB0_6
LBB0_4:
	movq	_ADV7393_SD_HUE_ADJUST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	4(%rbx), %edx
	movq	_ADV7393_HUE_MIN@GOTPCREL(%rip), %rcx
	subl	(%rcx), %edx
	jmp	LBB0_6
LBB0_5:
	movq	_ADV7393_DAC123_OUTPUT_LEVEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	4(%rbx), %edx
LBB0_6:
	movq	%rax, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_adv7393_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	_ADV7393_SD_BRIGHTNESS_WSS,4,2  ## @ADV7393_SD_BRIGHTNESS_WSS
	.comm	_SD_BRIGHTNESS_VALUE_MASK,4,2   ## @SD_BRIGHTNESS_VALUE_MASK
	.comm	_ADV7393_SD_HUE_ADJUST,4,2      ## @ADV7393_SD_HUE_ADJUST
	.comm	_ADV7393_HUE_MIN,4,2            ## @ADV7393_HUE_MIN
	.comm	_ADV7393_DAC123_OUTPUT_LEVEL,4,2 ## @ADV7393_DAC123_OUTPUT_LEVEL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_adv7393_s_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adv7393_s_ctrl
_adv7393_s_ctrl:                        ; @adv7393_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, _ADV7393_SD_BRIGHTNESS_WSS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADV7393_SD_BRIGHTNESS_WSS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _SD_BRIGHTNESS_VALUE_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SD_BRIGHTNESS_VALUE_MASK@GOTPAGEOFF]
	ldr	w9, [x19, #4]
Lloh5:
	ldr	w8, [x8]
	and	w2, w8, w9
	b	LBB0_6
LBB0_4:
Lloh6:
	adrp	x8, _ADV7393_SD_HUE_ADJUST@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ADV7393_SD_HUE_ADJUST@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _ADV7393_HUE_MIN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ADV7393_HUE_MIN@GOTPAGEOFF]
	ldr	w9, [x19, #4]
Lloh11:
	ldr	w8, [x8]
	sub	w2, w9, w8
	b	LBB0_6
LBB0_5:
Lloh12:
	adrp	x8, _ADV7393_DAC123_OUTPUT_LEVEL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ADV7393_DAC123_OUTPUT_LEVEL@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	w2, [x19, #4]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_adv7393_write
LBB0_7:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ADV7393_SD_BRIGHTNESS_WSS,4,2  ; @ADV7393_SD_BRIGHTNESS_WSS
	.comm	_SD_BRIGHTNESS_VALUE_MASK,4,2   ; @SD_BRIGHTNESS_VALUE_MASK
	.comm	_ADV7393_SD_HUE_ADJUST,4,2      ; @ADV7393_SD_HUE_ADJUST
	.comm	_ADV7393_HUE_MIN,4,2            ; @ADV7393_HUE_MIN
	.comm	_ADV7393_DAC123_OUTPUT_LEVEL,4,2 ; @ADV7393_DAC123_OUTPUT_LEVEL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_adv7393_s_ctrl
.subsections_via_symbols
