	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ledtrig_cpu                    ## -- Begin function ledtrig_cpu
	.p2align	4, 0x90
_ledtrig_cpu:                           ## @ledtrig_cpu
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	movq	_cpu_trig@GOTPCREL(%rip), %rdi
	callq	_this_cpu_ptr
	addl	$-128, %ebx
	cmpl	$4, %ebx
	ja	LBB0_8
## %bb.1:
	movq	%rax, %r12
	movl	(%rax), %eax
	movl	$21, %ecx
	btl	%ebx, %ecx
	jae	LBB0_2
## %bb.3:
	xorl	%ecx, %ecx
	movb	$1, %bl
	cmpl	%eax, %ecx
	jne	LBB0_5
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	$1, %ecx
	xorl	%ebx, %ebx
	cmpl	%eax, %ecx
	je	LBB0_8
LBB0_5:
	movl	%ecx, (%r12)
	movl	%ebx, %eax
	xorb	$1, %al
	movzbl	%al, %eax
	leal	(%rax,%rax), %edi
	decl	%edi
	movq	_num_active_cpus@GOTPCREL(%rip), %r14
	movq	%r14, %rsi
	callq	_atomic_add
	movq	%r14, %rdi
	callq	_atomic_read
	movl	%eax, %r14d
	xorl	%eax, %eax
	callq	_num_present_cpus
	movl	%eax, %r15d
	movl	4(%r12), %edi
	movq	_LED_FULL@GOTPCREL(%rip), %r12
	movq	%r12, %rax
	testb	%bl, %bl
	je	LBB0_7
## %bb.6:
	movq	_LED_OFF@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %esi
	callq	_led_trigger_event
	movq	_trig_cpu_all@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	imull	(%r12), %r14d
	movl	%r14d, %edi
	movl	%r15d, %esi
	callq	_DIV_ROUND_UP
	movl	%ebx, %edi
	movl	%eax, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_led_trigger_event              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_cpu_trig,4,2                   ## @cpu_trig
	.comm	_num_active_cpus,4,2            ## @num_active_cpus
	.comm	_LED_FULL,4,2                   ## @LED_FULL
	.comm	_LED_OFF,4,2                    ## @LED_OFF
	.comm	_trig_cpu_all,4,2               ## @trig_cpu_all
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ledtrig_cpu                    ; -- Begin function ledtrig_cpu
	.p2align	2
_ledtrig_cpu:                           ; @ledtrig_cpu
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
Lloh0:
	adrp	x0, _cpu_trig@GOTPAGE
Lloh1:
	ldr	x0, [x0, _cpu_trig@GOTPAGEOFF]
	bl	_this_cpu_ptr
	sub	w9, w20, #128
	cmp	w9, #4
	b.hi	LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0]
	mov	w10, #1
	lsl	w9, w10, w9
	mov	w11, #21
	tst	w9, w11
	mov	w9, #1
	csel	w9, w9, wzr, ne
	csel	w10, wzr, w10, ne
	cmp	w10, w8
	b.ne	LBB0_3
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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_3:
	str	w10, [x19]
	cmp	w9, #0
	mov	w8, #-1
	cneg	w0, w8, eq
Lloh2:
	adrp	x20, _num_active_cpus@GOTPAGE
Lloh3:
	ldr	x20, [x20, _num_active_cpus@GOTPAGEOFF]
Lloh4:
	adrp	x22, _LED_FULL@GOTPAGE
Lloh5:
	ldr	x22, [x22, _LED_FULL@GOTPAGEOFF]
Lloh6:
	adrp	x8, _LED_OFF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LED_OFF@GOTPAGEOFF]
	csel	x23, x8, x22, ne
	mov	x1, x20
	bl	_atomic_add
	mov	x0, x20
	bl	_atomic_read
	mov	x20, x0
	bl	_num_present_cpus
	mov	x21, x0
	ldr	w0, [x19, #4]
	ldr	w1, [x23]
	bl	_led_trigger_event
Lloh8:
	adrp	x8, _trig_cpu_all@GOTPAGE
Lloh9:
	ldr	x8, [x8, _trig_cpu_all@GOTPAGEOFF]
Lloh10:
	ldr	w19, [x8]
	ldr	w8, [x22]
	mul	w0, w8, w20
	mov	x1, x21
	bl	_DIV_ROUND_UP
	mov	x1, x0
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_led_trigger_event
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_cpu_trig,4,2                   ; @cpu_trig
	.comm	_num_active_cpus,4,2            ; @num_active_cpus
	.comm	_LED_FULL,4,2                   ; @LED_FULL
	.comm	_LED_OFF,4,2                    ; @LED_OFF
	.comm	_trig_cpu_all,4,2               ; @trig_cpu_all
.subsections_via_symbols
