	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pwc_set_leds                   ## -- Begin function pwc_set_leds
	.p2align	4, 0x90
_pwc_set_leds:                          ## @pwc_set_leds
	.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
	cmpl	$730, (%rdi)                    ## imm = 0x2DA
	jl	LBB0_2
## %bb.1:
	movslq	%esi, %rax
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$37, %rax
	addl	%ecx, %eax
	movslq	%edx, %rcx
	imulq	$1374389535, %rcx, %rcx         ## imm = 0x51EB851F
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$37, %rcx
	addl	%edx, %ecx
	xorl	%edx, %edx
	testl	%eax, %eax
	cmovlel	%edx, %eax
	cmpl	$255, %eax
	movl	$255, %esi
	cmovael	%esi, %eax
	testl	%ecx, %ecx
	cmovlel	%edx, %ecx
	cmpl	$255, %ecx
	cmovael	%esi, %ecx
	movb	%al, -2(%rbp)
	movb	%cl, -1(%rbp)
	movq	_SET_STATUS_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_LED_FORMATTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-2(%rbp), %rcx
	movl	$2, %r8d
	callq	_send_control_msg
LBB0_2:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SET_STATUS_CTL,4,2             ## @SET_STATUS_CTL
	.comm	_LED_FORMATTER,4,2              ## @LED_FORMATTER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pwc_set_leds                   ; -- Begin function pwc_set_leds
	.p2align	2
_pwc_set_leds:                          ; @pwc_set_leds
	.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
	ldr	w8, [x0]
	cmp	w8, #730
	b.ge	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	mov	w8, #34079
	movk	w8, #20971, lsl #16
	smull	x9, w1, w8
	lsr	x10, x9, #63
	asr	x9, x9, #37
	add	w9, w9, w10
	smull	x8, w2, w8
	lsr	x10, x8, #63
	asr	x8, x8, #37
	add	w8, w8, w10
	cmp	w9, #0
	csel	w9, w9, wzr, gt
	mov	w10, #255
	cmp	w9, #255
	csel	w9, w9, w10, lo
	cmp	w8, #0
	csel	w8, w8, wzr, gt
	cmp	w8, #255
	csel	w8, w8, w10, lo
	sturb	w9, [x29, #-2]
	sturb	w8, [x29, #-1]
Lloh0:
	adrp	x8, _SET_STATUS_CTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SET_STATUS_CTL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _LED_FORMATTER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LED_FORMATTER@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	sub	x3, x29, #2
	mov	w4, #2
	bl	_send_control_msg
LBB0_3:
	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_STATUS_CTL,4,2             ; @SET_STATUS_CTL
	.comm	_LED_FORMATTER,4,2              ; @LED_FORMATTER
.subsections_via_symbols
