	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rb750_led_probe
_rb750_led_probe:                       ## @rb750_led_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r15
	testq	%r15, %r15
	je	LBB0_1
## %bb.3:
	movl	(%r15), %eax
	leal	(%rax,%rax,8), %ecx
	leal	(%rcx,%rcx,2), %ecx
	leal	(%rax,%rcx), %edi
	addl	$16, %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rsi
	movl	(%r15), %ecx
	movl	%ecx, (%rax)
	addq	$16, %rax
	movq	%rax, 8(%rsi)
	testl	%ecx, %ecx
	jle	LBB0_13
## %bb.6:
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movl	$1, %r13d
	movq	$-24, %r14
	movl	$12, %r12d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rcx
	movl	(%rcx,%r12), %edx
	movl	%edx, 40(%rax,%r14)
	movl	-4(%rcx,%r12), %edx
	movl	%edx, 36(%rax,%r14)
	movq	_rb750_led_brightness_set@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 32(%rax,%r14)
	movq	_LED_OFF@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	leaq	28(%rax,%r14), %rsi
	movl	%edx, 28(%rax,%r14)
	movl	-8(%rcx,%r12), %edx
	movl	%edx, 48(%rax,%r14)
	xorl	%edx, %edx
	cmpl	$0, -12(%rcx,%r12)
	setne	%dl
	movl	%edx, 24(%rax,%r14)
	movq	%r15, %rbx
	movl	4(%r15), %ecx
	movl	%ecx, 44(%rax,%r14)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_led_classdev_register
	testl	%eax, %eax
	jne	LBB0_8
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movslq	(%rsi), %rax
	cmpq	%rax, %r13
	jge	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %r15
	movq	8(%rsi), %rax
	incq	%r13
	addq	$28, %r14
	addq	$16, %r12
	jmp	LBB0_7
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_13:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_platform_set_drvdata
	xorl	%r15d, %r15d
	jmp	LBB0_14
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_14:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	%eax, %r15d
	cmpl	$1, %r13d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rdi
	addq	%r14, %rdi
	callq	_led_classdev_unregister
	decq	%r13
	addq	$-28, %r14
	cmpq	$1, %r13
	jg	LBB0_9
LBB0_10:
	movq	%rbx, %rdi
	callq	_kfree
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_rb750_led_brightness_set,4,2   ## @rb750_led_brightness_set
	.comm	_LED_OFF,4,2                    ## @LED_OFF
	.no_dead_strip	_rb750_led_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rb750_led_probe
_rb750_led_probe:                       ; @rb750_led_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	x22, [x0]
	cbz	x22, LBB0_7
; %bb.1:
	mov	x20, x0
	ldr	w8, [x22]
	mov	w9, #28
	orr	w10, wzr, #0x10
	madd	w0, w8, w9, w10
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_9
; %bb.2:
	mov	x19, x0
	ldr	w9, [x22]
	str	w9, [x0]
	add	x8, x0, #16
	str	x8, [x0, #8]
	cmp	w9, #1
	b.lt	LBB0_8
; %bb.3:
	mov	x25, #0
	mov	x23, #-24
	mov	w24, #1
Lloh3:
	adrp	x26, _rb750_led_brightness_set@GOTPAGE
Lloh4:
	ldr	x26, [x26, _rb750_led_brightness_set@GOTPAGEOFF]
Lloh5:
	adrp	x27, _LED_OFF@GOTPAGE
Lloh6:
	ldr	x27, [x27, _LED_OFF@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x22, #8]
	add	x1, x8, x23
	add	x8, x9, x25
	ldr	d0, [x8, #8]
	stur	d0, [x1, #36]
	ldr	w9, [x26]
	str	w9, [x1, #32]
	ldr	w9, [x27]
	str	w9, [x1, #28]!
	ldp	w8, w9, [x8]
	cmp	w8, #0
	cset	w8, ne
	stur	w8, [x1, #-4]
	ldr	w8, [x22, #4]
	stp	w8, w9, [x1, #16]
	mov	x0, x20
	bl	_led_classdev_register
	cbnz	w0, LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrsw	x8, [x19]
	cmp	x24, x8
	b.ge	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #8]
	add	x24, x24, #1
	add	x23, x23, #28
	add	x25, x25, #16
	b	LBB0_4
LBB0_7:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	mov	w21, #0
	b	LBB0_11
LBB0_9:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_11:
	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_12:
	mov	x21, x0
	cmp	w24, #1
	b.eq	LBB0_14
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x0, x8, x23
	bl	_led_classdev_unregister
	sub	x24, x24, #1
	sub	x23, x23, #28
	cmp	x24, #1
	b.gt	LBB0_13
LBB0_14:
	mov	x0, x19
	bl	_kfree
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_rb750_led_brightness_set,4,2   ; @rb750_led_brightness_set
	.comm	_LED_OFF,4,2                    ; @LED_OFF
	.no_dead_strip	_rb750_led_probe
.subsections_via_symbols
