	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lp87565_probe
_lp87565_probe:                         ## @lp87565_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%r14, 8(%rax)
	movq	_lp87565_regmap_config@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_regmap_init_i2c
	movl	%eax, 16(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	movl	16(%r15), %edi
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	8(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_9
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_4:
	movq	_LP87565_REG_OTP_REV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	movq	8(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_9
LBB0_6:
	movq	_LP87565_OTP_REV_OTP_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-28(%rbp), %eax
	movl	%eax, (%r15)
	movq	_of_lp87565_match_table@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_of_match_device
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
LBB0_8:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_i2c_set_clientdata
	movq	8(%r15), %r14
	movq	_PLATFORM_DEVID_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_lp87565_cells@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	movq	$0, (%rsp)
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_devm_mfd_add_devices
	movl	%eax, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_lp87565_regmap_config,4,2      ## @lp87565_regmap_config
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to initialize register map: %d\n"

	.comm	_LP87565_REG_OTP_REV,4,2        ## @LP87565_REG_OTP_REV
L_.str.1:                               ## @.str.1
	.asciz	"Failed to read OTP ID\n"

	.comm	_LP87565_OTP_REV_OTP_ID,4,2     ## @LP87565_OTP_REV_OTP_ID
	.comm	_of_lp87565_match_table,4,2     ## @of_lp87565_match_table
	.comm	_PLATFORM_DEVID_AUTO,4,2        ## @PLATFORM_DEVID_AUTO
	.comm	_lp87565_cells,4,2              ## @lp87565_cells
	.no_dead_strip	_lp87565_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lp87565_probe
_lp87565_probe:                         ; @lp87565_probe
	.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, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	str	x20, [x0, #8]
Lloh3:
	adrp	x1, _lp87565_regmap_config@GOTPAGE
Lloh4:
	ldr	x1, [x1, _lp87565_regmap_config@GOTPAGEOFF]
	mov	x0, x20
	bl	_devm_regmap_init_i2c
	str	w0, [x19, #16]
	bl	_IS_ERR
	mov	x8, x0
	ldr	w0, [x19, #16]
	cbz	x8, LBB0_4
; %bb.2:
	bl	_PTR_ERR
	mov	x21, x0
	ldr	x0, [x19, #8]
	str	x21, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_9
LBB0_3:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_9
LBB0_4:
Lloh10:
	adrp	x8, _LP87565_REG_OTP_REV@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LP87565_REG_OTP_REV@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	cbz	w0, LBB0_6
; %bb.5:
	mov	x21, x0
	ldr	x0, [x19, #8]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_9
LBB0_6:
	ldr	w8, [sp, #12]
Lloh15:
	adrp	x9, _LP87565_OTP_REV_OTP_ID@GOTPAGE
Lloh16:
	ldr	x9, [x9, _LP87565_OTP_REV_OTP_ID@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	and	w8, w9, w8
	str	w8, [x19]
Lloh18:
	adrp	x8, _of_lp87565_match_table@GOTPAGE
Lloh19:
	ldr	x8, [x8, _of_lp87565_match_table@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_of_match_device
	cbz	x0, LBB0_8
; %bb.7:
	ldr	x8, [x0]
	str	w8, [x19, #4]
LBB0_8:
	mov	x0, x20
	mov	x1, x19
	bl	_i2c_set_clientdata
	ldr	x19, [x19, #8]
Lloh21:
	adrp	x8, _PLATFORM_DEVID_AUTO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PLATFORM_DEVID_AUTO@GOTPAGEOFF]
Lloh23:
	ldr	w20, [x8]
Lloh24:
	adrp	x8, _lp87565_cells@GOTPAGE
Lloh25:
	ldr	x8, [x8, _lp87565_cells@GOTPAGEOFF]
Lloh26:
	ldr	w21, [x8]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x3, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x4, #0
	mov	w5, #0
	mov	x6, #0
	bl	_devm_mfd_add_devices
	mov	x21, x0
LBB0_9:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_lp87565_regmap_config,4,2      ; @lp87565_regmap_config
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to initialize register map: %d\n"

	.comm	_LP87565_REG_OTP_REV,4,2        ; @LP87565_REG_OTP_REV
l_.str.1:                               ; @.str.1
	.asciz	"Failed to read OTP ID\n"

	.comm	_LP87565_OTP_REV_OTP_ID,4,2     ; @LP87565_OTP_REV_OTP_ID
	.comm	_of_lp87565_match_table,4,2     ; @of_lp87565_match_table
	.comm	_PLATFORM_DEVID_AUTO,4,2        ; @PLATFORM_DEVID_AUTO
	.comm	_lp87565_cells,4,2              ; @lp87565_cells
	.no_dead_strip	_lp87565_probe
.subsections_via_symbols
