	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kempld_register_cells_generic
_kempld_register_cells_generic:         ## @kempld_register_cells_generic
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_KEMPLD_MAX_DEVS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rdx
	movl	(%r14), %eax
	movq	_KEMPLD_FEATURE_BIT_I2C@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.2:
	movq	_kempld_devs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_KEMPLD_I2C@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	(%rcx,%rsi,4), %ecx
	movl	%ecx, (%rdx)
	movl	$1, %ecx
	jmp	LBB0_3
LBB0_1:
	xorl	%ecx, %ecx
LBB0_3:
	movq	_KEMPLD_FEATURE_BIT_WATCHDOG@GOTPCREL(%rip), %rsi
	testl	%eax, (%rsi)
	je	LBB0_5
## %bb.4:
	movl	%ecx, %esi
	incl	%ecx
	movq	_kempld_devs@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	movq	_KEMPLD_WDT@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rbx
	movl	(%rdi,%rbx,4), %edi
	movl	%edi, (%rdx,%rsi,4)
LBB0_5:
	movq	_KEMPLD_FEATURE_BIT_GPIO@GOTPCREL(%rip), %rsi
	testl	%eax, (%rsi)
	je	LBB0_7
## %bb.6:
	movl	%ecx, %esi
	incl	%ecx
	movq	_kempld_devs@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	movq	_KEMPLD_GPIO@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rbx
	movl	(%rdi,%rbx,4), %edi
	movl	%edi, (%rdx,%rsi,4)
LBB0_7:
	movq	_KEMPLD_FEATURE_MASK_UART@GOTPCREL(%rip), %rsi
	testl	%eax, (%rsi)
	je	LBB0_9
## %bb.8:
	movl	%ecx, %eax
	incl	%ecx
	movq	_kempld_devs@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	_KEMPLD_UART@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	movl	(%rsi,%rdi,4), %esi
	movl	%esi, (%rdx,%rax,4)
LBB0_9:
	movl	4(%r14), %edi
	subq	$8, %rsp
	movl	$-1, %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	callq	_mfd_add_devices
	addq	$16, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_11
## %bb.10:
	leaq	-16(%rbp), %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_KEMPLD_MAX_DEVS,4,2            ## @KEMPLD_MAX_DEVS
	.comm	_KEMPLD_FEATURE_BIT_I2C,4,2     ## @KEMPLD_FEATURE_BIT_I2C
	.comm	_kempld_devs,8,3                ## @kempld_devs
	.comm	_KEMPLD_I2C,8,3                 ## @KEMPLD_I2C
	.comm	_KEMPLD_FEATURE_BIT_WATCHDOG,4,2 ## @KEMPLD_FEATURE_BIT_WATCHDOG
	.comm	_KEMPLD_WDT,8,3                 ## @KEMPLD_WDT
	.comm	_KEMPLD_FEATURE_BIT_GPIO,4,2    ## @KEMPLD_FEATURE_BIT_GPIO
	.comm	_KEMPLD_GPIO,8,3                ## @KEMPLD_GPIO
	.comm	_KEMPLD_FEATURE_MASK_UART,4,2   ## @KEMPLD_FEATURE_MASK_UART
	.comm	_KEMPLD_UART,8,3                ## @KEMPLD_UART
	.no_dead_strip	_kempld_register_cells_generic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kempld_register_cells_generic
_kempld_register_cells_generic:         ; @kempld_register_cells_generic
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	sub	sp, sp, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-8]
Lloh3:
	adrp	x8, _KEMPLD_MAX_DEVS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KEMPLD_MAX_DEVS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x2, x9, x8
	mov	sp, x2
	ldr	w9, [x0]
Lloh8:
	adrp	x8, _KEMPLD_FEATURE_BIT_I2C@GOTPAGE
Lloh9:
	ldr	x8, [x8, _KEMPLD_FEATURE_BIT_I2C@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x8]
Lloh11:
	adrp	x8, _kempld_devs@GOTPAGE
Lloh12:
	ldr	x8, [x8, _kempld_devs@GOTPAGEOFF]
	tst	w10, w9
	b.eq	LBB0_2
; %bb.1:
Lloh13:
	adrp	x10, _KEMPLD_I2C@GOTPAGE
Lloh14:
	ldr	x10, [x10, _KEMPLD_I2C@GOTPAGEOFF]
	ldr	x11, [x8]
Lloh15:
	ldr	x10, [x10]
	ldr	w10, [x11, x10, lsl #2]
	str	w10, [x2]
	mov	w3, #1
	b	LBB0_3
LBB0_2:
	mov	w3, #0
LBB0_3:
Lloh16:
	adrp	x10, _KEMPLD_FEATURE_BIT_WATCHDOG@GOTPAGE
Lloh17:
	ldr	x10, [x10, _KEMPLD_FEATURE_BIT_WATCHDOG@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_5
; %bb.4:
	ldr	x10, [x8]
Lloh19:
	adrp	x11, _KEMPLD_WDT@GOTPAGE
Lloh20:
	ldr	x11, [x11, _KEMPLD_WDT@GOTPAGEOFF]
Lloh21:
	ldr	x11, [x11]
	ldr	w10, [x10, x11, lsl #2]
	str	w10, [x2, w3, uxtw #2]
	add	w3, w3, #1
LBB0_5:
Lloh22:
	adrp	x10, _KEMPLD_FEATURE_BIT_GPIO@GOTPAGE
Lloh23:
	ldr	x10, [x10, _KEMPLD_FEATURE_BIT_GPIO@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_7
; %bb.6:
	ldr	x10, [x8]
Lloh25:
	adrp	x11, _KEMPLD_GPIO@GOTPAGE
Lloh26:
	ldr	x11, [x11, _KEMPLD_GPIO@GOTPAGEOFF]
Lloh27:
	ldr	x11, [x11]
	ldr	w10, [x10, x11, lsl #2]
	str	w10, [x2, w3, uxtw #2]
	add	w3, w3, #1
LBB0_7:
Lloh28:
	adrp	x10, _KEMPLD_FEATURE_MASK_UART@GOTPAGE
Lloh29:
	ldr	x10, [x10, _KEMPLD_FEATURE_MASK_UART@GOTPAGEOFF]
Lloh30:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_9
; %bb.8:
	ldr	x8, [x8]
Lloh31:
	adrp	x9, _KEMPLD_UART@GOTPAGE
Lloh32:
	ldr	x9, [x9, _KEMPLD_UART@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	str	w8, [x2, w3, uxtw #2]
	add	w3, w3, #1
LBB0_9:
	ldr	w0, [x0, #4]
	mov	w1, #-1
	mov	x4, #0
	mov	w5, #0
	mov	x6, #0
	bl	_mfd_add_devices
	ldur	x8, [x29, #-8]
Lloh34:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh35:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	mov	sp, x29
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_KEMPLD_MAX_DEVS,4,2            ; @KEMPLD_MAX_DEVS
	.comm	_KEMPLD_FEATURE_BIT_I2C,4,2     ; @KEMPLD_FEATURE_BIT_I2C
	.comm	_kempld_devs,8,3                ; @kempld_devs
	.comm	_KEMPLD_I2C,8,3                 ; @KEMPLD_I2C
	.comm	_KEMPLD_FEATURE_BIT_WATCHDOG,4,2 ; @KEMPLD_FEATURE_BIT_WATCHDOG
	.comm	_KEMPLD_WDT,8,3                 ; @KEMPLD_WDT
	.comm	_KEMPLD_FEATURE_BIT_GPIO,4,2    ; @KEMPLD_FEATURE_BIT_GPIO
	.comm	_KEMPLD_GPIO,8,3                ; @KEMPLD_GPIO
	.comm	_KEMPLD_FEATURE_MASK_UART,4,2   ; @KEMPLD_FEATURE_MASK_UART
	.comm	_KEMPLD_UART,8,3                ; @KEMPLD_UART
	.no_dead_strip	_kempld_register_cells_generic
.subsections_via_symbols
