	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function device_led_init
_device_led_init:                       ## @device_led_init
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	testq	%rsi, %rsi
	je	LBB0_12
## %bb.1:
	movq	%rsi, %rbx
	cmpq	$0, 8(%rsi)
	je	LBB0_12
## %bb.2:
	movl	(%rbx), %r12d
	movq	_led_devs@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %r12d
	jle	LBB0_3
## %bb.4:
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, (%rbx)
	testl	%eax, %eax
	jg	LBB0_6
	jmp	LBB0_12
LBB0_3:
	movl	(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_12
LBB0_6:
	movq	8(%rbx), %r8
	movl	%eax, %r9d
	movq	(%r15), %rsi
	cmpl	$1, %eax
	jne	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_8:
	movl	%r9d, %edi
	andl	$-2, %edi
	xorl	%ebx, %ebx
	movq	%r8, %rcx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, 8(%rsi,%rbx)
	movq	(%r15), %rsi
	movl	$4, (%rsi,%rbx)
	leaq	4(%rcx), %rdx
	movq	%rdx, 24(%rsi,%rbx)
	movq	(%r15), %rsi
	movl	$4, 16(%rsi,%rbx)
	addq	$2, %rax
	addq	$8, %rcx
	addq	$32, %rbx
	cmpq	%rax, %rdi
	jne	LBB0_9
LBB0_10:
	testb	$1, %r9b
	je	LBB0_12
## %bb.11:
	leaq	(%r8,%rax,4), %rcx
	shlq	$4, %rax
	movq	%rcx, 8(%rsi,%rax)
	movq	(%r15), %rcx
	movl	$4, (%rcx,%rax)
LBB0_12:
	movl	(%r14), %r15d
	movq	_led_devs@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	$0, (%rsp)
	movl	%r15d, %edi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_mfd_add_devices
	testl	%eax, %eax
	js	LBB0_14
## %bb.13:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_led_devs,8,3                   ## @led_devs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to add led subdev\n"

	.no_dead_strip	_device_led_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function device_led_init
_device_led_init:                       ; @device_led_init
	.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	x19, x0
Lloh0:
	adrp	x21, _led_devs@GOTPAGE
Lloh1:
	ldr	x21, [x21, _led_devs@GOTPAGEOFF]
	cbz	x1, LBB0_7
; %bb.1:
	mov	x20, x1
	ldr	x8, [x1, #8]
	cbz	x8, LBB0_7
; %bb.2:
	ldr	w22, [x20]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w22, w0
	b.le	LBB0_4
; %bb.3:
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	str	w0, [x20]
	cmp	w0, #1
	b.ge	LBB0_5
	b	LBB0_7
LBB0_4:
	ldr	w0, [x20]
	cmp	w0, #1
	b.lt	LBB0_7
LBB0_5:
	mov	x8, #0
	ldr	x9, [x20, #8]
	mov	w10, w0
	ldr	x11, [x21]
	lsl	x10, x10, #4
	mov	w12, #4
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x11, x11, x8
	str	x9, [x11, #8]
	ldr	x11, [x21]
	str	w12, [x11, x8]
	add	x9, x9, #4
	add	x8, x8, #16
	cmp	x10, x8
	b.ne	LBB0_6
LBB0_7:
	ldr	w20, [x19]
	ldr	x21, [x21]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x3, x0
	mov	x0, x20
	mov	w1, #0
	mov	x2, x21
	mov	x4, #0
	mov	w5, #0
	mov	x6, #0
	bl	_mfd_add_devices
	tbnz	w0, #31, LBB0_9
; %bb.8:
	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
	ret
LBB0_9:
	ldr	w0, [x19]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	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	_dev_err
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_led_devs,8,3                   ; @led_devs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to add led subdev\n"

	.no_dead_strip	_device_led_init
.subsections_via_symbols
