	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function led_pwm_add
_led_pwm_add:                           ## @led_pwm_add
	.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
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	(%rsi), %rax
	movq	8(%rsi), %rbx
	movl	20(%rdx), %edx
	leaq	(%rax,%rax,2), %r12
	shlq	$4, %r12
	movl	%edx, 44(%rbx,%r12)
	movl	8(%r13), %esi
	movl	%esi, 36(%rbx,%r12)
	movl	16(%r13), %eax
	movl	%eax, 32(%rbx,%r12)
	movq	_LED_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx,%r12)
	movl	12(%r13), %eax
	movl	%eax, 28(%rbx,%r12)
	movq	_LED_CORE_SUSPENDRESUME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx,%r12)
	testq	%rcx, %rcx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.1:
	movq	%rcx, %rsi
	xorl	%edx, %edx
	callq	_devm_fwnode_pwm_get
	jmp	LBB0_3
LBB0_2:
	callq	_devm_pwm_get
LBB0_3:
	movl	%eax, %edi
	leaq	(%rbx,%r12), %r14
	addq	$40, %r14
	movl	%eax, 40(%rbx,%r12)
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movl	(%r14), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	%ebx, %ecx
	addl	(%rax), %ecx
	je	LBB0_13
## %bb.5:
	movl	8(%r13), %edx
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_12
LBB0_6:
	leaq	(%rbx,%r12), %rax
	addq	$8, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_led_pwm_set@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rbx,%r12)
	movl	(%r14), %edi
	callq	_pwm_apply_args
	movl	(%r14), %edi
	leaq	-64(%rbp), %rsi
	callq	_pwm_get_args
	movq	-64(%rbp), %rax
	movq	%rax, (%rbx,%r12)
	testq	%rax, %rax
	jne	LBB0_9
## %bb.7:
	movq	(%r13), %rax
	testq	%rax, %rax
	jle	LBB0_9
## %bb.8:
	addq	%r12, %rbx
	movq	%rax, (%rbx)
LBB0_9:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_devm_led_classdev_register
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	movl	%eax, %ebx
	movl	8(%r13), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
LBB0_12:
	movl	%ebx, %ecx
	callq	_dev_err
	jmp	LBB0_13
LBB0_10:
	incq	(%r15)
	movl	(%r12), %esi
	movq	%r12, %rdi
	callq	_led_pwm_set
	xorl	%ebx, %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LED_OFF,4,2                    ## @LED_OFF
	.comm	_LED_CORE_SUSPENDRESUME,4,2     ## @LED_CORE_SUSPENDRESUME
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to request PWM for %s: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to register PWM led for %s: %d\n"

	.no_dead_strip	_led_pwm_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function led_pwm_add
_led_pwm_add:                           ; @led_pwm_add
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldp	x24, x23, [x1]
	mov	w8, #48
	madd	x22, x24, x8, x23
	ldp	w9, w8, [x2, #16]
	str	w8, [x22, #44]
	ldp	w1, w8, [x2, #8]
	stp	w9, w1, [x22, #32]
Lloh0:
	adrp	x9, _LED_OFF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LED_OFF@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	str	w9, [x22, #8]!
	str	w8, [x22, #20]
Lloh3:
	adrp	x8, _LED_CORE_SUSPENDRESUME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LED_CORE_SUSPENDRESUME@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x22, #16]
	cbz	x3, LBB0_2
; %bb.1:
	mov	x1, x3
	mov	x2, #0
	bl	_devm_fwnode_pwm_get
	b	LBB0_3
LBB0_2:
	bl	_devm_pwm_get
LBB0_3:
	mov	w8, #48
	madd	x25, x24, x8, x23
	str	w0, [x25, #40]!
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.4:
	ldr	w0, [x25]
	bl	_PTR_ERR
	mov	x23, x0
Lloh6:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_13
; %bb.5:
	ldr	w2, [x20, #8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_11
LBB0_6:
	mov	w8, #48
	madd	x23, x24, x8, x23
Lloh11:
	adrp	x8, _led_pwm_set@GOTPAGE
Lloh12:
	ldr	x8, [x8, _led_pwm_set@GOTPAGEOFF]
	str	x8, [x23, #16]
	ldr	w0, [x25]
	bl	_pwm_apply_args
	ldr	w0, [x25]
	add	x1, sp, #8
	bl	_pwm_get_args
	ldr	x8, [sp, #8]
	str	x8, [x23]
	cbnz	x8, LBB0_9
; %bb.7:
	ldr	x8, [x20]
	cmp	x8, #1
	b.lt	LBB0_9
; %bb.8:
	str	x8, [x23]
LBB0_9:
	mov	x0, x19
	mov	x1, x22
	bl	_devm_led_classdev_register
	mov	x23, x0
	cbz	w0, LBB0_12
; %bb.10:
	ldr	w2, [x20, #8]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_11:
	mov	x0, x19
	mov	x3, x23
	bl	_dev_err
	b	LBB0_13
LBB0_12:
	ldr	x8, [x21]
	add	x8, x8, #1
	str	x8, [x21]
	ldr	w1, [x22]
	mov	x0, x22
	bl	_led_pwm_set
LBB0_13:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_LED_OFF,4,2                    ; @LED_OFF
	.comm	_LED_CORE_SUSPENDRESUME,4,2     ; @LED_CORE_SUSPENDRESUME
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to request PWM for %s: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to register PWM led for %s: %d\n"

	.no_dead_strip	_led_pwm_add
.subsections_via_symbols
