	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max8997_i2c_probe
_max8997_i2c_probe:                     ## @max8997_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	%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, %r12
	movq	%rdi, %r13
	leaq	16(%rdi), %rbx
	movq	%rbx, %rdi
	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	%r13, %rdi
	movq	%rax, %rsi
	callq	_i2c_set_clientdata
	movq	%rbx, 24(%r14)
	movq	%r13, 56(%r14)
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_max8997_i2c_get_driver_data
	movl	%eax, 52(%r14)
	movl	8(%r13), %eax
	movl	%eax, 48(%r14)
	movq	_CONFIG_OF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	24(%r14), %rdi
	cmpq	$0, (%rdi)
	je	LBB0_7
## %bb.4:
	callq	_max8997_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:
	testq	%r15, %r15
	je	LBB0_8
## %bb.9:
	movq	%r15, 40(%r14)
	movl	4(%r15), %eax
	movl	%eax, 36(%r14)
	movq	%r14, %rdi
	addq	$32, %rdi
	callq	_mutex_init
	movl	(%r13), %edi
	movq	_I2C_ADDR_RTC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_new_dummy_device
	movq	%rax, (%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	24(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	movq	(%r14), %rdi
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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_19
LBB0_8:
	xorl	%ebx, %ebx
	jmp	LBB0_19
LBB0_11:
	movq	(%r14), %rdi
	movq	%r14, %rsi
	callq	_i2c_set_clientdata
	movl	(%r13), %edi
	movq	_I2C_ADDR_HAPTIC@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_13
## %bb.12:
	movq	24(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	movq	8(%r14), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_18
LBB0_13:
	movq	8(%r14), %rdi
	movq	%r14, %rsi
	callq	_i2c_set_clientdata
	movl	(%r13), %edi
	movq	_I2C_ADDR_MUIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_new_dummy_device
	movq	%rax, 16(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	24(%r14), %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	movq	16(%r14), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
LBB0_17:
	movq	8(%r14), %rdi
	callq	_i2c_unregister_device
LBB0_18:
	movq	(%r14), %rdi
	callq	_i2c_unregister_device
LBB0_19:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	16(%r14), %rdi
	movq	%r14, %rsi
	callq	_i2c_set_clientdata
	movq	24(%r14), %rdi
	callq	_pm_runtime_set_active
	movq	%r14, %rdi
	callq	_max8997_irq_init
	movq	24(%r14), %r15
	movq	_max8997_devs@GOTPCREL(%rip), %rax
	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
	movq	24(%r14), %rdi
	testl	%eax, %eax
	js	LBB0_16
## %bb.20:
	movl	$1, %esi
	callq	_device_init_wakeup
	jmp	LBB0_19
LBB0_16:
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	24(%r14), %rdi
	callq	_mfd_remove_devices
	movq	16(%r14), %rdi
	callq	_i2c_unregister_device
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_CONFIG_OF,4,2                  ## @CONFIG_OF
	.comm	_I2C_ADDR_RTC,4,2               ## @I2C_ADDR_RTC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate I2C device for RTC\n"

	.comm	_I2C_ADDR_HAPTIC,4,2            ## @I2C_ADDR_HAPTIC
L_.str.1:                               ## @.str.1
	.asciz	"Failed to allocate I2C device for Haptic\n"

	.comm	_I2C_ADDR_MUIC,4,2              ## @I2C_ADDR_MUIC
L_.str.2:                               ## @.str.2
	.asciz	"Failed to allocate I2C device for MUIC\n"

	.comm	_max8997_devs,4,2               ## @max8997_devs
L_.str.3:                               ## @.str.3
	.asciz	"failed to add MFD devices %d\n"

	.no_dead_strip	_max8997_i2c_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max8997_i2c_probe
_max8997_i2c_probe:                     ; @max8997_i2c_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x1
	mov	x20, x0
	add	x23, x0, #16
	mov	x0, x23
	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, x23
	mov	w1, #64
	bl	_devm_kzalloc
	cbz	x0, LBB0_9
; %bb.1:
	mov	x19, x0
	mov	x0, x20
	mov	x1, x19
	bl	_i2c_set_clientdata
	str	x23, [x19, #24]
	str	x20, [x19, #56]
	mov	x0, x20
	mov	x1, x22
	bl	_max8997_i2c_get_driver_data
	ldr	w8, [x20, #8]
	stp	w8, w0, [x19, #48]
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	x0, [x19, #24]
	ldr	x8, [x0]
	cbz	x8, LBB0_5
; %bb.3:
	bl	_max8997_i2c_parse_dt_pdata
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x21
	b	LBB0_8
LBB0_5:
	cbz	x21, LBB0_10
; %bb.6:
	str	x21, [x19, #40]
	ldr	w8, [x21, #4]
	str	w8, [x19, #36]
	add	x0, x19, #32
	bl	_mutex_init
	ldr	w0, [x20]
Lloh6:
	adrp	x8, _I2C_ADDR_RTC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _I2C_ADDR_RTC@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_i2c_new_dummy_device
	str	x0, [x19]
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.7:
	ldr	x0, [x19, #24]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	ldr	x0, [x19]
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_PTR_ERR
LBB0_9:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_17
LBB0_10:
	mov	w20, #0
	b	LBB0_17
LBB0_11:
	ldr	x0, [x19]
	mov	x1, x19
	bl	_i2c_set_clientdata
	ldr	w0, [x20]
Lloh14:
	adrp	x8, _I2C_ADDR_HAPTIC@GOTPAGE
Lloh15:
	ldr	x8, [x8, _I2C_ADDR_HAPTIC@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_i2c_new_dummy_device
	str	x0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_13
; %bb.12:
	ldr	x0, [x19, #24]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	ldr	x0, [x19, #8]
	bl	_PTR_ERR
	mov	x20, x0
	b	LBB0_16
LBB0_13:
	ldr	x0, [x19, #8]
	mov	x1, x19
	bl	_i2c_set_clientdata
	ldr	w0, [x20]
Lloh19:
	adrp	x8, _I2C_ADDR_MUIC@GOTPAGE
Lloh20:
	ldr	x8, [x8, _I2C_ADDR_MUIC@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	bl	_i2c_new_dummy_device
	str	x0, [x19, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_18
; %bb.14:
	ldr	x0, [x19, #24]
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	ldr	x0, [x19, #16]
	bl	_PTR_ERR
	mov	x20, x0
LBB0_15:
	ldr	x0, [x19, #8]
	bl	_i2c_unregister_device
LBB0_16:
	ldr	x0, [x19]
	bl	_i2c_unregister_device
LBB0_17:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_18:
	ldr	x0, [x19, #16]
	mov	x1, x19
	bl	_i2c_set_clientdata
	ldr	x0, [x19, #24]
	bl	_pm_runtime_set_active
	mov	x0, x19
	bl	_max8997_irq_init
	ldr	x20, [x19, #24]
Lloh24:
	adrp	x8, _max8997_devs@GOTPAGE
Lloh25:
	ldr	x8, [x8, _max8997_devs@GOTPAGEOFF]
Lloh26:
	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, #24]
	tbnz	w20, #31, LBB0_20
; %bb.19:
	mov	w1, #1
	bl	_device_init_wakeup
	b	LBB0_17
LBB0_20:
	str	x20, [sp]
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
	ldr	x0, [x19, #24]
	bl	_mfd_remove_devices
	ldr	x0, [x19, #16]
	bl	_i2c_unregister_device
	b	LBB0_15
	.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 AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CONFIG_OF,4,2                  ; @CONFIG_OF
	.comm	_I2C_ADDR_RTC,4,2               ; @I2C_ADDR_RTC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate I2C device for RTC\n"

	.comm	_I2C_ADDR_HAPTIC,4,2            ; @I2C_ADDR_HAPTIC
l_.str.1:                               ; @.str.1
	.asciz	"Failed to allocate I2C device for Haptic\n"

	.comm	_I2C_ADDR_MUIC,4,2              ; @I2C_ADDR_MUIC
l_.str.2:                               ; @.str.2
	.asciz	"Failed to allocate I2C device for MUIC\n"

	.comm	_max8997_devs,4,2               ; @max8997_devs
l_.str.3:                               ; @.str.3
	.asciz	"failed to add MFD devices %d\n"

	.no_dead_strip	_max8997_i2c_probe
.subsections_via_symbols
