	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max8998_i2c_probe
_max8998_i2c_probe:                     ## @max8998_i2c_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %rbx
	callq	_dev_get_platdata
	movq	%rax, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$64, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	_CONFIG_OF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	cmpq	$0, (%rbx)
	je	LBB0_7
## %bb.4:
	movq	%rbx, %rdi
	callq	_max8998_i2c_parse_dt_pdata
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	%r15, %rdi
	jmp	LBB0_6
LBB0_7:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_i2c_set_clientdata
	movq	%rbx, 16(%r14)
	movq	%rbx, 56(%r14)
	movl	24(%rbx), %eax
	movl	%eax, 48(%r14)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_max8998_i2c_get_driver_data
	movl	%eax, (%r14)
	movq	%r15, 40(%r14)
	testq	%r15, %r15
	je	LBB0_9
## %bb.8:
	movl	20(%r15), %eax
	movl	%eax, 36(%r14)
	movl	16(%r15), %eax
	movl	%eax, 32(%r14)
	movl	12(%r15), %eax
	movl	%eax, 24(%r14)
LBB0_9:
	movq	%r14, %rdi
	addq	$28, %rdi
	callq	_mutex_init
	movl	8(%rbx), %edi
	movq	_RTC_I2C_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_new_dummy_device
	movq	%rax, 8(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
	movq	8(%r14), %rdi
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_20
LBB0_11:
	movq	8(%r14), %rdi
	movq	%r14, %rsi
	callq	_i2c_set_clientdata
	movq	%r14, %rdi
	callq	_max8998_irq_init
	movq	16(%r14), %rdi
	callq	_pm_runtime_set_active
	movl	(%r14), %eax
	cmpl	$128, %eax
	je	LBB0_15
## %bb.12:
	cmpl	$129, %eax
	jne	LBB0_16
## %bb.13:
	movq	16(%r14), %r15
	movq	_lp3974_devs@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_15:
	movq	16(%r14), %r15
	movq	_max8998_devs@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	movq	$0, (%rsp)
	movq	%r15, %rdi
	movl	$-1, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_mfd_add_devices
	movl	%eax, %ebx
	jmp	LBB0_17
LBB0_16:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_17:
	movq	16(%r14), %rdi
	testl	%ebx, %ebx
	js	LBB0_19
## %bb.18:
	movl	24(%r14), %esi
	callq	_device_init_wakeup
	jmp	LBB0_20
LBB0_19:
	callq	_mfd_remove_devices
	movq	%r14, %rdi
	callq	_max8998_irq_exit
	movq	8(%r14), %rdi
	callq	_i2c_unregister_device
LBB0_20:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_CONFIG_OF,4,2                  ## @CONFIG_OF
	.comm	_RTC_I2C_ADDR,4,2               ## @RTC_I2C_ADDR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate I2C device for RTC\n"

	.comm	_lp3974_devs,4,2                ## @lp3974_devs
	.comm	_max8998_devs,4,2               ## @max8998_devs
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_max8998_i2c_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max8998_i2c_probe
_max8998_i2c_probe:                     ; @max8998_i2c_probe
	.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	x22, x1
	mov	x20, x0
	bl	_dev_get_platdata
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #64
	bl	_devm_kzalloc
	cbz	x0, LBB0_10
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _CONFIG_OF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CONFIG_OF@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x8, [x20]
	cbz	x8, LBB0_5
; %bb.3:
	mov	x0, x20
	bl	_max8998_i2c_parse_dt_pdata
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x21
	b	LBB0_9
LBB0_5:
	mov	x0, x20
	mov	x1, x19
	bl	_i2c_set_clientdata
	str	x20, [x19, #16]
	str	x20, [x19, #56]
	ldr	w8, [x20, #24]
	str	w8, [x19, #48]
	mov	x0, x20
	mov	x1, x22
	bl	_max8998_i2c_get_driver_data
	str	w0, [x19]
	str	x21, [x19, #40]
	cbz	x21, LBB0_7
; %bb.6:
	ldr	d0, [x21, #16]
	str	d0, [x19, #32]
	ldr	w8, [x21, #12]
	str	w8, [x19, #24]
LBB0_7:
	add	x0, x19, #28
	bl	_mutex_init
	ldr	w0, [x20, #8]
Lloh6:
	adrp	x8, _RTC_I2C_ADDR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RTC_I2C_ADDR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_i2c_new_dummy_device
	str	x0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.8:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	x0, [x19, #8]
LBB0_9:
	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	_PTR_ERR
LBB0_10:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_19
LBB0_11:
	ldr	x0, [x19, #8]
	mov	x1, x19
	bl	_i2c_set_clientdata
	mov	x0, x19
	bl	_max8998_irq_init
	ldr	x0, [x19, #16]
	bl	_pm_runtime_set_active
	ldr	w8, [x19]
	cmp	w8, #128
	b.eq	LBB0_14
; %bb.12:
	cmp	w8, #129
	b.ne	LBB0_17
; %bb.13:
	ldr	x20, [x19, #16]
Lloh14:
	adrp	x8, _lp3974_devs@GOTPAGE
Lloh15:
	ldr	x8, [x8, _lp3974_devs@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
	ldr	x20, [x19, #16]
Lloh16:
	adrp	x8, _max8998_devs@GOTPAGE
Lloh17:
	ldr	x8, [x8, _max8998_devs@GOTPAGEOFF]
LBB0_15:
	ldr	w21, [x8]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x3, x0
	mov	x0, x20
	mov	w1, #-1
	mov	x2, x21
	mov	x4, #0
	mov	w5, #0
	mov	x6, #0
	bl	_mfd_add_devices
	mov	x20, x0
	ldr	x0, [x19, #16]
	tbnz	w20, #31, LBB0_18
LBB0_16:
	ldr	w1, [x19, #24]
	bl	_device_init_wakeup
	b	LBB0_19
LBB0_17:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w20, w8
	ldr	x0, [x19, #16]
	tbz	w20, #31, LBB0_16
LBB0_18:
	bl	_mfd_remove_devices
	mov	x0, x19
	bl	_max8998_irq_exit
	ldr	x0, [x19, #8]
	bl	_i2c_unregister_device
LBB0_19:
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CONFIG_OF,4,2                  ; @CONFIG_OF
	.comm	_RTC_I2C_ADDR,4,2               ; @RTC_I2C_ADDR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate I2C device for RTC\n"

	.comm	_lp3974_devs,4,2                ; @lp3974_devs
	.comm	_max8998_devs,4,2               ; @max8998_devs
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_max8998_i2c_probe
.subsections_via_symbols
