	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_pwm
_init_pwm:                              ## @init_pwm
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %r13
	xorl	%edi, %edi
	cmpl	$4, %esi
	setge	%dil
	callq	_BUG_ON
	movq	(%r13), %rbx
	leal	-1(%r12), %eax
	cltq
	leaq	(%rax,%rax,8), %r14
	movl	%r12d, (%rbx,%r14,8)
	movq	$0, 4(%rbx,%r14,8)
	leaq	44(%rbx,%r14,8), %rdi
	xorps	%xmm0, %xmm0
	movups	%xmm0, 48(%rbx,%r14,8)
	movq	$0, 64(%rbx,%r14,8)
	movq	_lm8323_pwm_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	(%rbx,%r14,8), %rdi
	addq	$40, %rdi
	callq	_mutex_init
	movq	%r13, 32(%rbx,%r14,8)
	xorl	%r13d, %r13d
	testq	%r15, %r15
	je	LBB0_4
## %bb.1:
	leaq	(%rbx,%r14,8), %rsi
	addq	$16, %rsi
	movq	%r15, 16(%rbx,%r14,8)
	movq	_lm8323_pwm_set_brightness@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx,%r14,8)
	movq	_lm8323_pwm_groups@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx,%r14,8)
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_led_classdev_register
	testq	%rax, %rax
	js	LBB0_2
## %bb.3:
	leaq	(%rbx,%r14,8), %rax
	addq	$8, %rax
	movl	$1, (%rax)
	jmp	LBB0_4
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_dev_err
	movl	$-1, %r13d
LBB0_4:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_lm8323_pwm_work,4,2            ## @lm8323_pwm_work
	.comm	_lm8323_pwm_set_brightness,4,2  ## @lm8323_pwm_set_brightness
	.comm	_lm8323_pwm_groups,4,2          ## @lm8323_pwm_groups
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"couldn't register PWM %d\n"

	.no_dead_strip	_init_pwm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_pwm
_init_pwm:                              ; @init_pwm
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x3
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
	cmp	w1, #3
	cset	w0, gt
	bl	_BUG_ON
	ldr	x24, [x22]
	sxtw	x8, w19
	sub	x25, x8, #1
	mov	w8, #72
	madd	x26, x25, x8, x24
	mov	x23, x26
	str	wzr, [x23, #8]!
	stp	w19, wzr, [x26]
	add	x0, x26, #44
	stp	xzr, xzr, [x26, #56]
	str	xzr, [x26, #48]
Lloh0:
	adrp	x8, _lm8323_pwm_work@GOTPAGE
Lloh1:
	ldr	x8, [x8, _lm8323_pwm_work@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x26, #40
	bl	_mutex_init
	str	x22, [x26, #32]
	cbz	x21, LBB0_3
; %bb.1:
	mov	w8, #72
	madd	x1, x25, x8, x24
	str	x21, [x1, #16]!
Lloh3:
	adrp	x8, _lm8323_pwm_set_brightness@GOTPAGE
Lloh4:
	ldr	x8, [x8, _lm8323_pwm_set_brightness@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x1, #12]
Lloh6:
	adrp	x8, _lm8323_pwm_groups@GOTPAGE
Lloh7:
	ldr	x8, [x8, _lm8323_pwm_groups@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x1, #8]
	mov	x0, x20
	bl	_led_classdev_register
	tbnz	x0, #63, LBB0_4
; %bb.2:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x23]
	b	LBB0_5
LBB0_3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_dev_err
	mov	w0, #-1
LBB0_5:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_lm8323_pwm_work,4,2            ; @lm8323_pwm_work
	.comm	_lm8323_pwm_set_brightness,4,2  ; @lm8323_pwm_set_brightness
	.comm	_lm8323_pwm_groups,4,2          ; @lm8323_pwm_groups
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"couldn't register PWM %d\n"

	.no_dead_strip	_init_pwm
.subsections_via_symbols
