	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function powermate_pulse_led
_powermate_pulse_led:                   ## @powermate_pulse_led
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	testl	%edx, %edx
	cmovlel	%eax, %edx
	testl	%ecx, %ecx
	cmovgl	%ecx, %eax
	cmpl	$510, %edx                      ## imm = 0x1FE
	movl	$510, %r12d                     ## imm = 0x1FE
	cmovbl	%edx, %r12d
	cmpl	$2, %eax
	movl	$2, %ecx
	cmovbl	%eax, %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, %r15d
	movq	%rdi, %rbx
	xorl	%r13d, %r13d
	testl	%r8d, %r8d
	setne	%r13b
	xorl	%r14d, %r14d
	testl	%r9d, %r9d
	setne	-41(%rbp)                       ## 1-byte Folded Spill
	addq	$24, %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	cmpl	%r15d, (%rbx)
	je	LBB0_2
## %bb.1:
	movl	%r15d, (%rbx)
	movq	_UPDATE_STATIC_BRIGHTNESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rbx)
LBB0_2:
	movb	-41(%rbp), %al                  ## 1-byte Reload
	movb	%al, %r14b
	cmpl	%r13d, 8(%rbx)
	je	LBB0_4
## %bb.3:
	movl	%r13d, 8(%rbx)
	movq	_UPDATE_PULSE_ASLEEP@GOTPCREL(%rip), %rax
	movq	_UPDATE_STATIC_BRIGHTNESS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	%ecx, 4(%rbx)
LBB0_4:
	cmpl	%r14d, 12(%rbx)
	je	LBB0_6
## %bb.5:
	movl	%r14d, 12(%rbx)
	movq	_UPDATE_PULSE_AWAKE@GOTPCREL(%rip), %rax
	movq	_UPDATE_STATIC_BRIGHTNESS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	%ecx, 4(%rbx)
LBB0_6:
	cmpl	16(%rbx), %r12d
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	jne	LBB0_8
## %bb.7:
	cmpl	20(%rbx), %eax
	je	LBB0_9
LBB0_8:
	movl	%r12d, 16(%rbx)
	movl	%eax, 20(%rbx)
	movq	_UPDATE_PULSE_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rbx)
LBB0_9:
	movq	%rbx, %rdi
	callq	_powermate_sync_state
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_UPDATE_STATIC_BRIGHTNESS,4,2   ## @UPDATE_STATIC_BRIGHTNESS
	.comm	_UPDATE_PULSE_ASLEEP,4,2        ## @UPDATE_PULSE_ASLEEP
	.comm	_UPDATE_PULSE_AWAKE,4,2         ## @UPDATE_PULSE_AWAKE
	.comm	_UPDATE_PULSE_MODE,4,2          ## @UPDATE_PULSE_MODE
	.no_dead_strip	_powermate_pulse_led
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function powermate_pulse_led
lCPI0_0:
	.long	510                             ; 0x1fe
	.long	2                               ; 0x2
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_powermate_pulse_led:                   ; @powermate_pulse_led
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x19, x0
	fmov	s0, w2
	mov.s	v0[1], w3
	str	q0, [sp]                        ; 16-byte Folded Spill
	adrp	x24, lCPI0_0@PAGE
	cmp	w4, #0
	cset	w23, ne
	cmp	w5, #0
	cset	w22, ne
	add	x20, x0, #24
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	w9, [x19]
Lloh0:
	adrp	x8, _UPDATE_STATIC_BRIGHTNESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UPDATE_STATIC_BRIGHTNESS@GOTPAGEOFF]
	cmp	w9, w21
	b.eq	LBB0_2
; %bb.1:
	str	w21, [x19]
	ldr	w9, [x8]
	ldr	w10, [x19, #4]
	orr	w9, w10, w9
	str	w9, [x19, #4]
LBB0_2:
	ldr	q0, [sp]                        ; 16-byte Folded Reload
	movi.2d	v1, #0000000000000000
	smax.2s	v0, v0, v1
	ldr	d1, [x24, lCPI0_0@PAGEOFF]
	ldr	w9, [x19, #8]
	cmp	w9, w23
	b.eq	LBB0_4
; %bb.3:
Lloh2:
	adrp	x9, _UPDATE_PULSE_ASLEEP@GOTPAGE
Lloh3:
	ldr	x9, [x9, _UPDATE_PULSE_ASLEEP@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	ldr	w10, [x8]
	orr	w9, w10, w9
	ldr	w10, [x19, #4]
	orr	w9, w9, w10
	stp	w9, w23, [x19, #4]
LBB0_4:
	umin.2s	v0, v0, v1
	ldr	w9, [x19, #12]
	cmp	w9, w22
	b.eq	LBB0_6
; %bb.5:
	str	w22, [x19, #12]
Lloh5:
	adrp	x9, _UPDATE_PULSE_AWAKE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _UPDATE_PULSE_AWAKE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	ldr	w8, [x8]
	orr	w8, w8, w9
	ldr	w9, [x19, #4]
	orr	w8, w8, w9
	str	w8, [x19, #4]
LBB0_6:
	ldr	w8, [x19, #16]
	fmov	w9, s0
	cmp	w9, w8
	b.ne	LBB0_8
; %bb.7:
	ldr	w8, [x19, #20]
	mov.s	w9, v0[1]
	cmp	w9, w8
	b.eq	LBB0_9
LBB0_8:
	str	d0, [x19, #16]
Lloh8:
	adrp	x8, _UPDATE_PULSE_MODE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _UPDATE_PULSE_MODE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
LBB0_9:
	mov	x0, x19
	bl	_powermate_sync_state
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_UPDATE_STATIC_BRIGHTNESS,4,2   ; @UPDATE_STATIC_BRIGHTNESS
	.comm	_UPDATE_PULSE_ASLEEP,4,2        ; @UPDATE_PULSE_ASLEEP
	.comm	_UPDATE_PULSE_AWAKE,4,2         ; @UPDATE_PULSE_AWAKE
	.comm	_UPDATE_PULSE_MODE,4,2          ; @UPDATE_PULSE_MODE
	.no_dead_strip	_powermate_pulse_led
.subsections_via_symbols
