	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_max8925_device_init            ## -- Begin function max8925_device_init
	.p2align	4, 0x90
_max8925_device_init:                   ## @max8925_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	32(%rdi), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	callq	_max8925_irq_init
	testq	%r14, %r14
	je	LBB0_6
## %bb.1:
	cmpq	$0, 16(%r14)
	jne	LBB0_3
## %bb.2:
	cmpq	$0, (%r14)
	je	LBB0_6
LBB0_3:
	movq	32(%r13), %rdi
	movq	_MAX8925_RESET_CNFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	movl	$1, %ecx
	callq	_max8925_set_bits
	movq	24(%r13), %rdi
	movq	_MAX8925_TSC_CNFG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$3, %edx
	movl	$2, %ecx
	callq	_max8925_set_bits
	movq	_MAX8925_TSC_IRQ@GOTPCREL(%rip), %r15
	movq	_MAX8925_NREF_OK@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r13), %rdi
	movl	(%r15), %esi
	callq	_max8925_reg_read
	testl	%eax, (%rbx)
	jne	LBB0_4
## %bb.5:
	movq	24(%r13), %rdi
	movq	_MAX8925_ADC_SCHED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$3, %edx
	movl	$2, %ecx
	callq	_max8925_set_bits
LBB0_6:
	movq	16(%r13), %rdi
	movq	_MAX8925_MPL_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edx
	movl	$16, %ecx
	callq	_max8925_set_bits
	movl	(%r13), %r15d
	movq	_rtc_devs@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	%r12, %rdi
	callq	_ARRAY_SIZE
	movl	8(%r13), %r9d
	movq	$0, (%rsp)
	movl	%r15d, %edi
	xorl	%esi, %esi
	movq	%r12, %rdx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	callq	_mfd_add_devices
	movl	(%r13), %r12d
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	movq	_onkey_devs@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	movl	8(%r13), %r9d
	movq	$0, (%rsp)
	movl	%r12d, %edi
	xorl	%esi, %esi
	movq	%r15, %rdx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	callq	_mfd_add_devices
	testl	%eax, %eax
	js	LBB0_9
## %bb.10:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_init_regulator
	testq	%r14, %r14
	je	LBB0_13
## %bb.11:
	cmpq	$0, 8(%r14)
	je	LBB0_13
## %bb.12:
	leaq	8(%r14), %rax
	movq	_bk_devs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, 8(%rcx)
	movl	$4, (%rcx)
LBB0_13:
	movl	(%r13), %r15d
	movq	_bk_devs@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	%r12, %rdi
	callq	_ARRAY_SIZE
	movq	$0, (%rsp)
	movl	%r15d, %edi
	xorl	%esi, %esi
	movq	%r12, %rdx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_mfd_add_devices
	movl	(%r13), %r12d
	testl	%eax, %eax
	js	LBB0_14
## %bb.16:
	movq	_power_devs@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	$0, (%rsp)
	xorl	%r15d, %r15d
	movl	%r12d, %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_17
## %bb.18:
	testq	%r14, %r14
	je	LBB0_23
## %bb.19:
	cmpq	$0, (%r14)
	je	LBB0_23
## %bb.20:
	movl	(%r13), %r14d
	movq	_touch_devs@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	%r12, %rdi
	callq	_ARRAY_SIZE
	movl	4(%r13), %r9d
	movq	$0, (%rsp)
	xorl	%r15d, %r15d
	movl	%r14d, %edi
	xorl	%esi, %esi
	movq	%r12, %rdx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	callq	_mfd_add_devices
	testl	%eax, %eax
	jns	LBB0_23
## %bb.21:
	movl	%eax, %r14d
	movl	(%r13), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	movl	%r14d, %r15d
	jmp	LBB0_22
LBB0_7:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_23
LBB0_9:
	movl	%eax, %r15d
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_15
LBB0_14:
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rsi
	movl	%r12d, %edi
LBB0_15:
	xorl	%eax, %eax
	callq	_dev_err
LBB0_22:
	movl	(%r13), %edi
	callq	_mfd_remove_devices
LBB0_23:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movl	%eax, %r12d
	movl	(%r13), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	%r12d, %r15d
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX8925_RESET_CNFG,4,2         ## @MAX8925_RESET_CNFG
	.comm	_MAX8925_TSC_CNFG1,4,2          ## @MAX8925_TSC_CNFG1
	.comm	_MAX8925_TSC_IRQ,4,2            ## @MAX8925_TSC_IRQ
	.comm	_MAX8925_NREF_OK,4,2            ## @MAX8925_NREF_OK
	.comm	_MAX8925_ADC_SCHED,4,2          ## @MAX8925_ADC_SCHED
	.comm	_MAX8925_MPL_CNTL,4,2           ## @MAX8925_MPL_CNTL
	.comm	_rtc_devs,8,3                   ## @rtc_devs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to add rtc subdev\n"

	.comm	_onkey_devs,8,3                 ## @onkey_devs
L_.str.1:                               ## @.str.1
	.asciz	"Failed to add onkey subdev\n"

	.comm	_bk_devs,8,3                    ## @bk_devs
L_.str.2:                               ## @.str.2
	.asciz	"Failed to add backlight subdev\n"

	.comm	_power_devs,8,3                 ## @power_devs
L_.str.3:                               ## @.str.3
	.asciz	"Failed to add power supply subdev, err = %d\n"

	.comm	_touch_devs,8,3                 ## @touch_devs
L_.str.4:                               ## @.str.4
	.asciz	"Failed to add touch subdev\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_max8925_device_init            ; -- Begin function max8925_device_init
	.p2align	2
_max8925_device_init:                   ; @max8925_device_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #32]
	ldr	w1, [x8]
	mov	x2, x20
	bl	_max8925_irq_init
	cbz	x20, LBB0_6
; %bb.1:
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x20]
	cbz	x8, LBB0_6
LBB0_3:
	ldr	x0, [x19, #32]
Lloh0:
	adrp	x8, _MAX8925_RESET_CNFG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX8925_RESET_CNFG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #1
	mov	w3, #1
	bl	_max8925_set_bits
	ldr	x0, [x19, #24]
Lloh3:
	adrp	x8, _MAX8925_TSC_CNFG1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX8925_TSC_CNFG1@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, #3
	mov	w3, #2
	bl	_max8925_set_bits
Lloh6:
	adrp	x21, _MAX8925_TSC_IRQ@GOTPAGE
Lloh7:
	ldr	x21, [x21, _MAX8925_TSC_IRQ@GOTPAGEOFF]
Lloh8:
	adrp	x22, _MAX8925_NREF_OK@GOTPAGE
Lloh9:
	ldr	x22, [x22, _MAX8925_NREF_OK@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #24]
	ldr	w1, [x21]
	bl	_max8925_reg_read
	ldr	w8, [x22]
	tst	w8, w0
	b.ne	LBB0_4
; %bb.5:
	ldr	x0, [x19, #24]
Lloh10:
	adrp	x8, _MAX8925_ADC_SCHED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MAX8925_ADC_SCHED@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	w2, #3
	mov	w3, #2
	bl	_max8925_set_bits
LBB0_6:
	ldr	x0, [x19, #16]
Lloh13:
	adrp	x8, _MAX8925_MPL_CNTL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MAX8925_MPL_CNTL@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	w2, #16
	mov	w3, #16
	bl	_max8925_set_bits
	ldr	w21, [x19]
Lloh16:
	adrp	x8, _rtc_devs@GOTPAGE
Lloh17:
	ldr	x8, [x8, _rtc_devs@GOTPAGEOFF]
Lloh18:
	ldr	x22, [x8]
	mov	x0, x22
	bl	_ARRAY_SIZE
	mov	x3, x0
	ldr	w5, [x19, #8]
	mov	x0, x21
	mov	w1, #0
	mov	x2, x22
	mov	x4, #0
	mov	x6, #0
	bl	_mfd_add_devices
	ldr	w22, [x19]
	tbnz	w0, #31, LBB0_17
; %bb.7:
Lloh19:
	adrp	x8, _onkey_devs@GOTPAGE
Lloh20:
	ldr	x8, [x8, _onkey_devs@GOTPAGEOFF]
Lloh21:
	ldr	x21, [x8]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x3, x0
	ldr	w5, [x19, #8]
	mov	x0, x22
	mov	w1, #0
	mov	x2, x21
	mov	x4, #0
	mov	x6, #0
	bl	_mfd_add_devices
	tbnz	w0, #31, LBB0_18
; %bb.8:
	mov	x0, x19
	mov	x1, x20
	bl	_init_regulator
Lloh22:
	adrp	x8, _bk_devs@GOTPAGE
Lloh23:
	ldr	x8, [x8, _bk_devs@GOTPAGEOFF]
	cbz	x20, LBB0_11
; %bb.9:
	mov	x9, x20
	ldr	x10, [x9, #8]!
	cbz	x10, LBB0_11
; %bb.10:
	ldr	x10, [x8]
	str	x9, [x10, #8]
	mov	w9, #4
	str	w9, [x10]
LBB0_11:
	ldr	w21, [x19]
	ldr	x22, [x8]
	mov	x0, x22
	bl	_ARRAY_SIZE
	mov	x3, x0
	mov	x0, x21
	mov	w1, #0
	mov	x2, x22
	mov	x4, #0
	mov	w5, #0
	mov	x6, #0
	bl	_mfd_add_devices
	ldr	w22, [x19]
	tbnz	w0, #31, LBB0_19
; %bb.12:
Lloh24:
	adrp	x8, _power_devs@GOTPAGE
Lloh25:
	ldr	x8, [x8, _power_devs@GOTPAGEOFF]
Lloh26:
	ldr	x21, [x8]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x3, x0
	mov	x0, x22
	mov	w1, #0
	mov	x2, x21
	mov	x4, #0
	mov	w5, #0
	mov	x6, #0
	bl	_mfd_add_devices
	tbnz	w0, #31, LBB0_20
; %bb.13:
	cbz	x20, LBB0_24
; %bb.14:
	ldr	x8, [x20]
	cbz	x8, LBB0_24
; %bb.15:
	ldr	w20, [x19]
Lloh27:
	adrp	x8, _touch_devs@GOTPAGE
Lloh28:
	ldr	x8, [x8, _touch_devs@GOTPAGEOFF]
Lloh29:
	ldr	x21, [x8]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x3, x0
	ldr	w5, [x19, #4]
	mov	x0, x20
	mov	w1, #0
	mov	x2, x21
	mov	x4, #0
	mov	x6, #0
	bl	_mfd_add_devices
	mov	w21, #0
	tbz	w0, #31, LBB0_23
; %bb.16:
	mov	x20, x0
	ldr	w0, [x19]
Lloh30:
	adrp	x1, l_.str.4@PAGE
Lloh31:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_err
	mov	x21, x20
	b	LBB0_22
LBB0_17:
	mov	x21, x0
Lloh32:
	adrp	x1, l_.str@PAGE
Lloh33:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_dev_err
	b	LBB0_23
LBB0_18:
	mov	x21, x0
	ldr	w0, [x19]
Lloh34:
	adrp	x1, l_.str.1@PAGE
Lloh35:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_21
LBB0_19:
	mov	x21, x0
Lloh36:
	adrp	x1, l_.str.2@PAGE
Lloh37:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	b	LBB0_21
LBB0_20:
	mov	x21, x0
	ldr	w0, [x19]
	str	x21, [sp]
Lloh38:
	adrp	x1, l_.str.3@PAGE
Lloh39:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_21:
	bl	_dev_err
LBB0_22:
	ldr	w0, [x19]
	bl	_mfd_remove_devices
LBB0_23:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_24:
	mov	w21, #0
	b	LBB0_23
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX8925_RESET_CNFG,4,2         ; @MAX8925_RESET_CNFG
	.comm	_MAX8925_TSC_CNFG1,4,2          ; @MAX8925_TSC_CNFG1
	.comm	_MAX8925_TSC_IRQ,4,2            ; @MAX8925_TSC_IRQ
	.comm	_MAX8925_NREF_OK,4,2            ; @MAX8925_NREF_OK
	.comm	_MAX8925_ADC_SCHED,4,2          ; @MAX8925_ADC_SCHED
	.comm	_MAX8925_MPL_CNTL,4,2           ; @MAX8925_MPL_CNTL
	.comm	_rtc_devs,8,3                   ; @rtc_devs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to add rtc subdev\n"

	.comm	_onkey_devs,8,3                 ; @onkey_devs
l_.str.1:                               ; @.str.1
	.asciz	"Failed to add onkey subdev\n"

	.comm	_bk_devs,8,3                    ; @bk_devs
l_.str.2:                               ; @.str.2
	.asciz	"Failed to add backlight subdev\n"

	.comm	_power_devs,8,3                 ; @power_devs
l_.str.3:                               ; @.str.3
	.asciz	"Failed to add power supply subdev, err = %d\n"

	.comm	_touch_devs,8,3                 ; @touch_devs
l_.str.4:                               ; @.str.4
	.asciz	"Failed to add touch subdev\n"

.subsections_via_symbols
