	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tc3589x_device_init
_tc3589x_device_init:                   ## @tc3589x_device_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, %rbx
	movq	8(%rdi), %rax
	movl	(%rax), %r12d
	movq	_TC3589x_BLOCK_GPIO@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_4
## %bb.1:
	movl	(%rbx), %r14d
	movq	_tc3589x_dev_gpio@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r15d, %edi
	callq	_ARRAY_SIZE
	movl	4(%rbx), %ecx
	movl	%ecx, (%rsp)
	movl	%r14d, %edi
	movl	$-1, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_mfd_add_devices
	movl	(%rbx), %edi
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_9
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_info
LBB0_4:
	movq	_TC3589x_BLOCK_KEYPAD@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_5
## %bb.6:
	movl	(%rbx), %r15d
	movq	_tc3589x_dev_keypad@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r12d, %edi
	callq	_ARRAY_SIZE
	movl	4(%rbx), %ecx
	movl	%ecx, (%rsp)
	xorl	%r14d, %r14d
	movl	%r15d, %edi
	movl	$-1, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_mfd_add_devices
	movl	(%rbx), %edi
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_err
	movl	%r15d, %r14d
	jmp	LBB0_9
LBB0_5:
	xorl	%r14d, %r14d
	jmp	LBB0_9
LBB0_8:
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_info
LBB0_9:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TC3589x_BLOCK_GPIO,4,2         ## @TC3589x_BLOCK_GPIO
	.comm	_tc3589x_dev_gpio,4,2           ## @tc3589x_dev_gpio
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to add gpio child\n"

L_.str.1:                               ## @.str.1
	.asciz	"added gpio block\n"

	.comm	_TC3589x_BLOCK_KEYPAD,4,2       ## @TC3589x_BLOCK_KEYPAD
	.comm	_tc3589x_dev_keypad,4,2         ## @tc3589x_dev_keypad
L_.str.2:                               ## @.str.2
	.asciz	"failed to keypad child\n"

L_.str.3:                               ## @.str.3
	.asciz	"added keypad block\n"

	.no_dead_strip	_tc3589x_device_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tc3589x_device_init
_tc3589x_device_init:                   ; @tc3589x_device_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
	ldr	x8, [x0, #8]
	ldr	w22, [x8]
Lloh0:
	adrp	x8, _TC3589x_BLOCK_GPIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TC3589x_BLOCK_GPIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_4
; %bb.1:
	ldr	w20, [x19]
Lloh3:
	adrp	x8, _tc3589x_dev_gpio@GOTPAGE
Lloh4:
	ldr	x8, [x8, _tc3589x_dev_gpio@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x3, x0
	ldr	w6, [x19, #4]
	mov	x0, x20
	mov	w1, #-1
	mov	x2, x21
	mov	x4, #0
	mov	w5, #0
	bl	_mfd_add_devices
	mov	x20, x0
	ldr	w0, [x19]
	cbz	w20, LBB0_3
; %bb.2:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_9
LBB0_3:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_info
LBB0_4:
Lloh10:
	adrp	x8, _TC3589x_BLOCK_KEYPAD@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TC3589x_BLOCK_KEYPAD@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_7
; %bb.5:
	ldr	w20, [x19]
Lloh13:
	adrp	x8, _tc3589x_dev_keypad@GOTPAGE
Lloh14:
	ldr	x8, [x8, _tc3589x_dev_keypad@GOTPAGEOFF]
Lloh15:
	ldr	w21, [x8]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x3, x0
	ldr	w6, [x19, #4]
	mov	x0, x20
	mov	w1, #-1
	mov	x2, x21
	mov	x4, #0
	mov	w5, #0
	bl	_mfd_add_devices
	mov	x20, x0
	ldr	w0, [x19]
	cbz	w20, LBB0_8
; %bb.6:
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	b	LBB0_9
LBB0_7:
	mov	w20, #0
	b	LBB0_9
LBB0_8:
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_info
LBB0_9:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_TC3589x_BLOCK_GPIO,4,2         ; @TC3589x_BLOCK_GPIO
	.comm	_tc3589x_dev_gpio,4,2           ; @tc3589x_dev_gpio
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to add gpio child\n"

l_.str.1:                               ; @.str.1
	.asciz	"added gpio block\n"

	.comm	_TC3589x_BLOCK_KEYPAD,4,2       ; @TC3589x_BLOCK_KEYPAD
	.comm	_tc3589x_dev_keypad,4,2         ; @tc3589x_dev_keypad
l_.str.2:                               ; @.str.2
	.asciz	"failed to keypad child\n"

l_.str.3:                               ; @.str.3
	.asciz	"added keypad block\n"

	.no_dead_strip	_tc3589x_device_init
.subsections_via_symbols
