	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pwc_set_contrast               ## -- Begin function pwc_set_contrast
	.p2align	4, 0x90
_pwc_set_contrast:                      ## @pwc_set_contrast
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	xorl	%eax, %eax
	testl	%esi, %esi
	cmovgl	%esi, %eax
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	movl	$65535, %ecx                    ## imm = 0xFFFF
	cmovbl	%eax, %ecx
	shrl	$10, %ecx
	movb	%cl, -1(%rbp)
	movq	_SET_LUM_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CONTRAST_FORMATTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-1(%rbp), %rcx
	movl	$1, %r8d
	callq	_send_control_msg
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SET_LUM_CTL,4,2                ## @SET_LUM_CTL
	.comm	_CONTRAST_FORMATTER,4,2         ## @CONTRAST_FORMATTER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pwc_set_contrast               ; -- Begin function pwc_set_contrast
	.p2align	2
_pwc_set_contrast:                      ; @pwc_set_contrast
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
	cmp	w1, #0
	csel	w8, w1, wzr, gt
	mov	w9, #65535
	cmp	w8, w9
	csel	w8, w8, w9, lo
	lsr	w8, w8, #10
	sturb	w8, [x29, #-1]
Lloh0:
	adrp	x8, _SET_LUM_CTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SET_LUM_CTL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _CONTRAST_FORMATTER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CONTRAST_FORMATTER@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	sub	x3, x29, #1
	mov	w4, #1
	bl	_send_control_msg
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SET_LUM_CTL,4,2                ; @SET_LUM_CTL
	.comm	_CONTRAST_FORMATTER,4,2         ; @CONTRAST_FORMATTER
.subsections_via_symbols
