	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tps6586x_i2c_probe
_tps6586x_i2c_probe:                    ## @tps6586x_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
	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, %r15
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_dev_get_platdata
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_7
LBB0_1:
	movq	_TPS6586X_VERSIONCRC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_10
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	movq	%rax, %r12
	movl	%r13d, (%rax)
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_tps6586x_print_version
	movq	%r15, 24(%r12)
	movq	%r14, 8(%r12)
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_i2c_set_clientdata
	movq	_tps6586x_regmap_config@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_regmap_init_i2c
	movl	%eax, 20(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_14
## %bb.4:
	movl	20(%r12), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
LBB0_5:
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_13
LBB0_7:
	cmpq	$0, (%r14)
	je	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	callq	_tps6586x_parse_dt
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_1
LBB0_9:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_10:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_12:
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	(%r15), %esi
	testl	%esi, %esi
	je	LBB0_17
## %bb.15:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edx
	movq	%r12, %rdi
	callq	_tps6586x_irq_init
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_5
LBB0_17:
	movq	8(%r12), %r13
	movq	_tps6586x_cell@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	movl	16(%r12), %ecx
	movl	%ecx, (%rsp)
	movq	%r13, %rdi
	movl	$-1, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_mfd_add_devices
	testl	%eax, %eax
	js	LBB0_20
## %bb.18:
	movq	%r12, %rdi
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_tps6586x_add_subdevs
	testl	%eax, %eax
	je	LBB0_23
## %bb.19:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	8(%r12), %rdi
	callq	_mfd_remove_devices
	jmp	LBB0_21
LBB0_20:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_21:
	movl	(%r15), %edi
	testl	%edi, %edi
	je	LBB0_13
## %bb.22:
	movq	%r12, %rsi
	callq	_free_irq
	jmp	LBB0_13
LBB0_23:
	xorl	%ebx, %ebx
	cmpq	$0, (%r13)
	je	LBB0_13
## %bb.24:
	movq	_pm_power_off@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_13
## %bb.25:
	movq	_tps6586x_dev@GOTPCREL(%rip), %rcx
	movq	%r14, (%rcx)
	movq	_tps6586x_power_off@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax)
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tps6586x requires platform data\n"

	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.comm	_TPS6586X_VERSIONCRC,4,2        ## @TPS6586X_VERSIONCRC
L_.str.1:                               ## @.str.1
	.asciz	"Chip ID read failed: %d\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_tps6586x_regmap_config,4,2     ## @tps6586x_regmap_config
L_.str.2:                               ## @.str.2
	.asciz	"regmap init failed: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"IRQ init failed: %d\n"

	.comm	_tps6586x_cell,4,2              ## @tps6586x_cell
L_.str.4:                               ## @.str.4
	.asciz	"mfd_add_devices failed: %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"add devices failed: %d\n"

	.comm	_pm_power_off,8,3               ## @pm_power_off
	.comm	_tps6586x_dev,8,3               ## @tps6586x_dev
	.comm	_tps6586x_power_off,8,3         ## @tps6586x_power_off
	.no_dead_strip	_tps6586x_i2c_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tps6586x_i2c_probe
_tps6586x_i2c_probe:                    ; @tps6586x_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	x20, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_dev_get_platdata
	mov	x22, x0
	cbz	x0, LBB0_5
LBB0_1:
Lloh0:
	adrp	x8, _TPS6586X_VERSIONCRC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TPS6586X_VERSIONCRC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_i2c_smbus_read_byte_data
	mov	x23, x0
	tbnz	w0, #31, LBB0_8
; %bb.2:
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_9
; %bb.3:
	mov	x21, x0
	str	w23, [x0]
	mov	x0, x20
	mov	x1, x23
	bl	_tps6586x_print_version
	str	x20, [x21, #24]
	str	x19, [x21, #8]
	mov	x0, x20
	mov	x1, x21
	bl	_i2c_set_clientdata
Lloh6:
	adrp	x1, _tps6586x_regmap_config@GOTPAGE
Lloh7:
	ldr	x1, [x1, _tps6586x_regmap_config@GOTPAGEOFF]
	mov	x0, x20
	bl	_devm_regmap_init_i2c
	str	w0, [x21, #20]
	bl	_IS_ERR
	cbz	x0, LBB0_12
; %bb.4:
	ldr	w0, [x21, #20]
	bl	_PTR_ERR
	mov	x23, x0
	str	x23, [sp]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_11
LBB0_5:
	ldr	x8, [x19]
	cbz	x8, LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_tps6586x_parse_dt
	mov	x22, x0
	cbnz	x0, LBB0_1
LBB0_7:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh12:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
	str	x23, [sp]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh16:
	adrp	x8, _EIO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_11:
	mov	x0, x23
	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_12:
	ldr	w1, [x20]
	cbz	w1, LBB0_15
; %bb.13:
	ldr	w2, [x22, #8]
	mov	x0, x21
	bl	_tps6586x_irq_init
	cbz	w0, LBB0_15
; %bb.14:
	mov	x23, x0
	str	x23, [sp]
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	b	LBB0_11
LBB0_15:
	ldr	x23, [x21, #8]
Lloh22:
	adrp	x8, _tps6586x_cell@GOTPAGE
Lloh23:
	ldr	x8, [x8, _tps6586x_cell@GOTPAGEOFF]
Lloh24:
	ldr	w24, [x8]
	mov	x0, x24
	bl	_ARRAY_SIZE
	mov	x3, x0
	ldr	w6, [x21, #16]
	mov	x0, x23
	mov	w1, #-1
	mov	x2, x24
	mov	x4, #0
	mov	w5, #0
	bl	_mfd_add_devices
	tbnz	w0, #31, LBB0_18
; %bb.16:
	mov	x0, x21
	mov	x1, x22
	bl	_tps6586x_add_subdevs
	mov	x23, x0
	cbz	w0, LBB0_21
; %bb.17:
	str	x23, [sp]
Lloh25:
	adrp	x1, l_.str.5@PAGE
Lloh26:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x21, #8]
	bl	_mfd_remove_devices
	b	LBB0_19
LBB0_18:
	mov	x23, x0
	str	x23, [sp]
Lloh27:
	adrp	x1, l_.str.4@PAGE
Lloh28:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_19:
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	ldr	w0, [x20]
	cbz	w0, LBB0_11
; %bb.20:
	mov	x1, x21
	bl	_free_irq
	b	LBB0_11
LBB0_21:
	ldr	x8, [x22]
	cbz	x8, LBB0_11
; %bb.22:
Lloh29:
	adrp	x8, _pm_power_off@GOTPAGE
Lloh30:
	ldr	x8, [x8, _pm_power_off@GOTPAGEOFF]
	ldr	x9, [x8]
	cbnz	x9, LBB0_11
; %bb.23:
	mov	w23, #0
Lloh31:
	adrp	x9, _tps6586x_dev@GOTPAGE
Lloh32:
	ldr	x9, [x9, _tps6586x_dev@GOTPAGEOFF]
Lloh33:
	str	x19, [x9]
Lloh34:
	adrp	x9, _tps6586x_power_off@GOTPAGE
Lloh35:
	ldr	x9, [x9, _tps6586x_power_off@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	str	x9, [x8]
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotStr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tps6586x requires platform data\n"

	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.comm	_TPS6586X_VERSIONCRC,4,2        ; @TPS6586X_VERSIONCRC
l_.str.1:                               ; @.str.1
	.asciz	"Chip ID read failed: %d\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_tps6586x_regmap_config,4,2     ; @tps6586x_regmap_config
l_.str.2:                               ; @.str.2
	.asciz	"regmap init failed: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"IRQ init failed: %d\n"

	.comm	_tps6586x_cell,4,2              ; @tps6586x_cell
l_.str.4:                               ; @.str.4
	.asciz	"mfd_add_devices failed: %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"add devices failed: %d\n"

	.comm	_pm_power_off,8,3               ; @pm_power_off
	.comm	_tps6586x_dev,8,3               ; @tps6586x_dev
	.comm	_tps6586x_power_off,8,3         ; @tps6586x_power_off
	.no_dead_strip	_tps6586x_i2c_probe
.subsections_via_symbols
