	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tps65218_probe
_tps65218_probe:                        ## @tps65218_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_i2c_set_clientdata
	movq	%rbx, 8(%r14)
	movl	4(%rbx), %eax
	movl	%eax, 20(%r14)
	movq	_tps65218_regmap_config@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_devm_regmap_init_i2c
	movl	%eax, 16(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movl	16(%r14), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	8(%r14), %rdi
	leaq	L_.str(%rip), %rsi
LBB0_8:
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_4
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	24(%r14), %rdi
	callq	_mutex_init
	movl	16(%r14), %esi
	movl	20(%r14), %edx
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rax
	addq	$4, %rax
	movq	%rax, (%rsp)
	movq	_tps65218_irq_chip@GOTPCREL(%rip), %r9
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	callq	_devm_regmap_add_irq_chip
	testl	%eax, %eax
	js	LBB0_13
## %bb.6:
	movl	16(%r14), %edi
	movq	_TPS65218_REG_CHIPID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	movl	%eax, %ebx
	movq	8(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_8
LBB0_9:
	movq	_TPS65218_CHIPID_REV_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-44(%rbp), %eax
	movl	%eax, (%r14)
	movq	%r14, %rdi
	callq	_tps65218_voltage_set_strict
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.10:
	movq	%r14, %rdi
	callq	_tps65218_voltage_set_uvlo
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.11:
	movq	%r14, %rdi
	callq	_tps65218_voltage_set_uv_hyst
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.12:
	movq	8(%r14), %r15
	movq	_PLATFORM_DEVID_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_tps65218_cells@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	movl	%eax, %r13d
	movl	4(%r14), %edi
	callq	_regmap_irq_get_domain
	movl	%eax, (%rsp)
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	movl	%r13d, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_mfd_add_devices
LBB0_13:
	movl	%eax, %ebx
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_tps65218_regmap_config,4,2     ## @tps65218_regmap_config
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate register map: %d\n"

	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.comm	_tps65218_irq_chip,4,2          ## @tps65218_irq_chip
	.comm	_TPS65218_REG_CHIPID,4,2        ## @TPS65218_REG_CHIPID
L_.str.1:                               ## @.str.1
	.asciz	"Failed to read chipid: %d\n"

	.comm	_TPS65218_CHIPID_REV_MASK,4,2   ## @TPS65218_CHIPID_REV_MASK
	.comm	_PLATFORM_DEVID_AUTO,4,2        ## @PLATFORM_DEVID_AUTO
	.comm	_tps65218_cells,4,2             ## @tps65218_cells
	.no_dead_strip	_tps65218_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tps65218_probe
_tps65218_probe:                        ; @tps65218_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	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	mov	x0, x20
	mov	x1, x19
	bl	_i2c_set_clientdata
	str	x20, [x19, #8]
	ldr	w8, [x20, #4]
	str	w8, [x19, #20]
Lloh3:
	adrp	x1, _tps65218_regmap_config@GOTPAGE
Lloh4:
	ldr	x1, [x1, _tps65218_regmap_config@GOTPAGEOFF]
	mov	x0, x20
	bl	_devm_regmap_init_i2c
	str	w0, [x19, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.2:
	ldr	w0, [x19, #16]
	bl	_PTR_ERR
	mov	x20, x0
	ldr	x0, [x19, #8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
LBB0_3:
	mov	x2, x20
	bl	_dev_err
	b	LBB0_5
LBB0_4:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_5:
	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_6:
	add	x0, x19, #24
	bl	_mutex_init
	ldp	w1, w2, [x19, #16]
Lloh10:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
	add	x6, x19, #4
Lloh13:
	adrp	x5, _tps65218_irq_chip@GOTPAGE
Lloh14:
	ldr	x5, [x5, _tps65218_irq_chip@GOTPAGEOFF]
	mov	x0, x20
	mov	w4, #0
	bl	_devm_regmap_add_irq_chip
	tbnz	w0, #31, LBB0_13
; %bb.7:
	ldr	w0, [x19, #16]
Lloh15:
	adrp	x8, _TPS65218_REG_CHIPID@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TPS65218_REG_CHIPID@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	cbz	w0, LBB0_9
; %bb.8:
	mov	x20, x0
	ldr	x0, [x19, #8]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_9:
	ldr	w8, [sp, #12]
Lloh20:
	adrp	x9, _TPS65218_CHIPID_REV_MASK@GOTPAGE
Lloh21:
	ldr	x9, [x9, _TPS65218_CHIPID_REV_MASK@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	and	w8, w9, w8
	str	w8, [x19]
	mov	x0, x19
	bl	_tps65218_voltage_set_strict
	mov	x20, x0
	cbnz	w0, LBB0_5
; %bb.10:
	mov	x0, x19
	bl	_tps65218_voltage_set_uvlo
	mov	x20, x0
	cbnz	w0, LBB0_5
; %bb.11:
	mov	x0, x19
	bl	_tps65218_voltage_set_uv_hyst
	mov	x20, x0
	cbnz	w0, LBB0_5
; %bb.12:
	ldr	x20, [x19, #8]
Lloh23:
	adrp	x8, _PLATFORM_DEVID_AUTO@GOTPAGE
Lloh24:
	ldr	x8, [x8, _PLATFORM_DEVID_AUTO@GOTPAGEOFF]
Lloh25:
	ldr	w21, [x8]
Lloh26:
	adrp	x8, _tps65218_cells@GOTPAGE
Lloh27:
	ldr	x8, [x8, _tps65218_cells@GOTPAGEOFF]
Lloh28:
	ldr	w22, [x8]
	mov	x0, x22
	bl	_ARRAY_SIZE
	mov	x23, x0
	ldr	w0, [x19, #4]
	bl	_regmap_irq_get_domain
	mov	x6, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	mov	x4, #0
	mov	w5, #0
	bl	_mfd_add_devices
LBB0_13:
	mov	x20, x0
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_tps65218_regmap_config,4,2     ; @tps65218_regmap_config
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate register map: %d\n"

	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.comm	_tps65218_irq_chip,4,2          ; @tps65218_irq_chip
	.comm	_TPS65218_REG_CHIPID,4,2        ; @TPS65218_REG_CHIPID
l_.str.1:                               ; @.str.1
	.asciz	"Failed to read chipid: %d\n"

	.comm	_TPS65218_CHIPID_REV_MASK,4,2   ; @TPS65218_CHIPID_REV_MASK
	.comm	_PLATFORM_DEVID_AUTO,4,2        ; @PLATFORM_DEVID_AUTO
	.comm	_tps65218_cells,4,2             ; @tps65218_cells
	.no_dead_strip	_tps65218_probe
.subsections_via_symbols
