	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function led_nu801_delete_chain
_led_nu801_delete_chain:                ## @led_nu801_delete_chain
	.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
	movq	%rdi, %r15
	movq	40(%rdi), %r14
	movq	$0, 40(%rdi)
	movl	(%rdi), %r12d
	movl	$0, (%rdi)
	addq	$32, %rdi
	callq	_cancel_delayed_work_sync
	testl	%r12d, %r12d
	jle	LBB0_3
## %bb.1:
	movq	%r14, %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_led_classdev_unregister
	addq	$4, %rbx
	decq	%r12
	jne	LBB0_2
LBB0_3:
	movq	8(%r15), %rdi
	callq	_gpio_free
	movq	16(%r15), %rdi
	callq	_gpio_free
	movq	24(%r15), %rdi
	testq	%rdi, %rdi
	js	LBB0_5
## %bb.4:
	callq	_gpio_free
LBB0_5:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_led_nu801_delete_chain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function led_nu801_delete_chain
_led_nu801_delete_chain:                ; @led_nu801_delete_chain
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
	ldr	x19, [x0, #40]
	str	xzr, [x0, #40]
	ldr	w22, [x0]
	str	wzr, [x0], #32
	bl	_cancel_delayed_work_sync
	cmp	w22, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x21, x19
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_led_classdev_unregister
	add	x21, x21, #4
	subs	x22, x22, #1
	b.ne	LBB0_2
LBB0_3:
	ldr	x0, [x20, #8]
	bl	_gpio_free
	ldr	x0, [x20, #16]
	bl	_gpio_free
	ldr	x0, [x20, #24]
	tbnz	x0, #63, LBB0_5
; %bb.4:
	bl	_gpio_free
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_kfree
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_led_nu801_delete_chain
.subsections_via_symbols
