	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function led_pwm_probe
_led_pwm_probe:                         ## @led_pwm_probe
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.3:
	movq	%rdi, %r13
	movl	(%rbx), %eax
	shll	$2, %eax
	leal	(%rax,%rax,8), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rbx)
	jle	LBB0_19
## %bb.5:
	movq	8(%rbx), %r14
	movl	16(%r14), %esi
	movl	20(%r14), %edi
	callq	_pwm_request
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	%eax, (%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_15
## %bb.6:
	addq	$20, %r14
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
LBB0_10:
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	testl	%ebx, %ebx
	je	LBB0_14
LBB0_12:
	leaq	1(%rbx), %r14
	leaq	(%rbx,%rbx,8), %rax
	leaq	(%r15,%rax,4), %rbx
	addq	$-36, %rbx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	leaq	4(%rbx), %rdi
	callq	_led_classdev_unregister
	movl	(%rbx), %edi
	callq	_pwm_free
	decq	%r14
	addq	$-36, %rbx
	cmpq	$1, %r14
	ja	LBB0_13
LBB0_14:
	movq	%r15, %rdi
	callq	_kfree
	jmp	LBB0_20
LBB0_1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_20
LBB0_15:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	leaq	16(%r14), %r13
	addq	$36, %r15
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %eax
	movl	%eax, -16(%r15)
	movl	12(%r14,%r12), %eax
	movl	%eax, -20(%r15)
	movl	8(%r14,%r12), %eax
	movl	%eax, -4(%r15)
	movl	4(%r14,%r12), %eax
	movl	%eax, -8(%r15)
	movl	(%r14,%r12), %eax
	movl	%eax, -12(%r15)
	movq	_led_pwm_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%r15)
	movq	_LED_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%r15)
	movq	_LED_CORE_SUSPENDRESUME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	-32(%r15), %rsi
	orl	%eax, -32(%r15)
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_led_classdev_register
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	js	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	incq	%rbx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movslq	(%rcx), %rax
	cmpq	%rax, %rbx
	jge	LBB0_19
## %bb.8:                               ##   in Loop: Header=BB0_16 Depth=1
	movq	8(%rcx), %r14
	movl	40(%r14,%r12), %esi
	movl	44(%r14,%r12), %edi
	leaq	(%rbx,%rbx,2), %rax
	leaq	(%r14,%rax,8), %r13
	addq	$16, %r13
	callq	_pwm_request
	movl	%eax, (%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	addq	$36, %r15
	addq	$24, %r12
	testq	%rax, %rax
	je	LBB0_16
## %bb.9:
	addq	%r12, %r14
	addq	$20, %r14
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_10
LBB0_19:
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_platform_set_drvdata
	xorl	%r12d, %r12d
LBB0_20:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movl	-36(%r15), %edi
	callq	_pwm_free
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	testl	%ebx, %ebx
	jne	LBB0_12
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to request PWM %d\n"

	.comm	_led_pwm_set,4,2                ## @led_pwm_set
	.comm	_LED_OFF,4,2                    ## @LED_OFF
	.comm	_LED_CORE_SUSPENDRESUME,4,2     ## @LED_CORE_SUSPENDRESUME
	.no_dead_strip	_led_pwm_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function led_pwm_probe
_led_pwm_probe:                         ; @led_pwm_probe
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x23, [x0]
	cbz	x23, LBB0_9
; %bb.1:
	mov	x20, x0
	ldr	w8, [x23]
	add	w8, w8, w8, lsl #3
	lsl	w0, w8, #2
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_10
; %bb.2:
	mov	x19, x0
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.3:
	ldr	x26, [x23, #8]
	mov	x24, x26
	ldr	w0, [x24, #20]!
	mov	x27, x26
	ldr	w1, [x27, #16]!
	bl	_pwm_request
	str	w0, [x19]
	bl	_IS_ERR
	mov	x22, #0
	cbz	x0, LBB0_12
; %bb.4:
	mov	w21, #0
LBB0_5:
	ldr	w2, [x24]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	cbz	w22, LBB0_8
LBB0_6:
	add	x20, x22, #1
	mov	w8, #36
	madd	x8, x22, x8, x19
	sub	x22, x8, #36
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x22, #4
	bl	_led_classdev_unregister
	ldr	w0, [x22], #-36
	bl	_pwm_free
	sub	x20, x20, #1
	cmp	x20, #1
	b.hi	LBB0_7
LBB0_8:
	mov	x0, x19
	bl	_kfree
	b	LBB0_18
LBB0_9:
Lloh5:
	adrp	x8, _EBUSY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_18
LBB0_12:
	add	x24, x19, #20
	mov	w25, #40
Lloh9:
	adrp	x28, _LED_CORE_SUSPENDRESUME@GOTPAGE
Lloh10:
	ldr	x28, [x28, _LED_CORE_SUSPENDRESUME@GOTPAGEOFF]
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x27]
	str	w8, [x24]
	add	x8, x26, x25
	ldp	w10, w9, [x8, #-32]
	stur	w9, [x24, #-4]
	str	w10, [x24, #12]
	ldur	d0, [x8, #-40]
	stur	d0, [x24, #4]
Lloh11:
	adrp	x8, _led_pwm_set@GOTPAGE
Lloh12:
	ldr	x8, [x8, _led_pwm_set@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	stur	w8, [x24, #-8]
Lloh14:
	adrp	x8, _LED_OFF@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LED_OFF@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	stur	w8, [x24, #-12]
	ldr	w8, [x28]
	mov	x1, x24
	ldr	w9, [x1, #-16]!
	orr	w8, w9, w8
	str	w8, [x1]
	mov	x0, x20
	bl	_led_classdev_register
	mov	x21, x0
	tbnz	w0, #31, LBB0_19
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x23]
	cmp	x22, x8
	b.ge	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x26, [x23, #8]
	add	x8, x26, x25
	mov	w9, #24
	madd	x9, x22, x9, x26
	add	x27, x9, #16
	ldp	w1, w0, [x8]
	bl	_pwm_request
	str	w0, [x24, #16]
	bl	_IS_ERR
	add	x24, x24, #36
	add	x25, x25, #24
	cbz	x0, LBB0_13
; %bb.16:
	add	x8, x26, x25
	sub	x24, x8, #20
	b	LBB0_5
LBB0_17:
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	mov	w21, #0
LBB0_18:
	mov	x0, x21
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_19:
	ldur	w0, [x24, #-20]
	bl	_pwm_free
	cbnz	w22, LBB0_6
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to request PWM %d\n"

	.comm	_led_pwm_set,4,2                ; @led_pwm_set
	.comm	_LED_OFF,4,2                    ; @LED_OFF
	.comm	_LED_CORE_SUSPENDRESUME,4,2     ; @LED_CORE_SUSPENDRESUME
	.no_dead_strip	_led_pwm_probe
.subsections_via_symbols
