	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pwc_set_contour                ## -- Begin function pwc_set_contour
	.p2align	4, 0x90
_pwc_set_contour:                       ## @pwc_set_contour
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	%esi, %eax
	sarl	$31, %eax
	movb	%al, -25(%rbp)
	movq	_SET_LUM_CTL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_AUTO_CONTOUR_FORMATTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-25(%rbp), %rcx
	movl	$1, %r8d
	callq	_send_control_msg
	movl	%eax, %ecx
	orl	%ebx, %eax
	js	LBB0_1
## %bb.2:
	cmpl	$65535, %ebx                    ## imm = 0xFFFF
	movl	$65535, %eax                    ## imm = 0xFFFF
	cmovll	%ebx, %eax
	shrl	$10, %eax
	movb	%al, -25(%rbp)
	movl	(%r15), %esi
	movq	_PRESET_CONTOUR_FORMATTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-25(%rbp), %rcx
	movq	%r14, %rdi
	movl	$1, %r8d
	callq	_send_control_msg
	movl	%eax, %ecx
	jmp	LBB0_3
LBB0_1:
	movl	%ecx, %eax
LBB0_3:
	sarl	$31, %eax
	andl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SET_LUM_CTL,4,2                ## @SET_LUM_CTL
	.comm	_AUTO_CONTOUR_FORMATTER,4,2     ## @AUTO_CONTOUR_FORMATTER
	.comm	_PRESET_CONTOUR_FORMATTER,4,2   ## @PRESET_CONTOUR_FORMATTER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pwc_set_contour                ; -- Begin function pwc_set_contour
	.p2align	2
_pwc_set_contour:                       ; @pwc_set_contour
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	asr	w8, w1, #31
	strb	w8, [sp, #15]
Lloh0:
	adrp	x21, _SET_LUM_CTL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SET_LUM_CTL@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x8, _AUTO_CONTOUR_FORMATTER@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AUTO_CONTOUR_FORMATTER@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	add	x3, sp, #15
	mov	w4, #1
	bl	_send_control_msg
	orr	w8, w0, w20
	cmp	w0, #0
	csel	w0, w0, wzr, lt
	tbnz	w8, #31, LBB0_2
; %bb.1:
	mov	w8, #65535
	cmp	w20, w8
	csel	w8, w20, w8, lt
	lsr	w8, w8, #10
	strb	w8, [sp, #15]
	ldr	w1, [x21]
Lloh5:
	adrp	x8, _PRESET_CONTOUR_FORMATTER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PRESET_CONTOUR_FORMATTER@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	add	x3, sp, #15
	mov	x0, x19
	mov	w4, #1
	bl	_send_control_msg
	cmp	w0, #0
	csel	w0, w0, wzr, lt
LBB0_2:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SET_LUM_CTL,4,2                ; @SET_LUM_CTL
	.comm	_AUTO_CONTOUR_FORMATTER,4,2     ; @AUTO_CONTOUR_FORMATTER
	.comm	_PRESET_CONTOUR_FORMATTER,4,2   ; @PRESET_CONTOUR_FORMATTER
.subsections_via_symbols
