	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tps65217_probe
_tps65217_probe:                        ## @tps65217_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	%rdi, %rbx
	leaq	4(%rdi), %r12
	movl	4(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_of_property_read_bool
	movl	%eax, %r14d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$16, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r15
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_i2c_set_clientdata
	movq	%r12, (%r15)
	movq	_tps65217_regmap_config@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_devm_regmap_init_i2c
	movl	%eax, 12(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movl	12(%r15), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	jmp	LBB0_18
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_19
LBB0_4:
	movl	(%rbx), %esi
	testl	%esi, %esi
	je	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	callq	_tps65217_irq_init
	jmp	LBB0_9
LBB0_6:
	movq	_tps65217s@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_9
## %bb.7:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	movq	$0, (%rdi,%rbx,8)
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_8
LBB0_9:
	movq	(%r15), %r12
	movq	_tps65217s@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movl	8(%r15), %ecx
	movl	%ecx, (%rsp)
	movq	%r12, %rdi
	movl	$-1, %esi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_devm_mfd_add_devices
	testl	%eax, %eax
	js	LBB0_15
## %bb.10:
	movq	_TPS65217_REG_CHIPID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	movq	%r15, %rdi
	callq	_tps65217_reg_read
	testl	%eax, %eax
	js	LBB0_16
## %bb.11:
	testl	%r14d, %r14d
	je	LBB0_14
## %bb.12:
	movq	_TPS65217_REG_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TPS65217_STATUS_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_TPS65217_PROTECT_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rdi
	movl	%ecx, %edx
	callq	_tps65217_set_bits
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movq	(%r15), %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_dev_warn
LBB0_14:
	movq	(%r15), %rdi
	movl	-36(%rbp), %ecx
	movq	_TPS65217_CHIPID_CHIP_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	%ecx, %edx
	shrl	$4, %edx
	movq	_TPS65217_CHIPID_REV_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ecx
	leaq	L_.str.5(%rip), %rsi
	callq	_dev_info
	xorl	%ebx, %ebx
	jmp	LBB0_19
LBB0_15:
	movl	%eax, %ebx
	movq	(%r15), %rdi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_17
LBB0_16:
	movl	%eax, %ebx
	movq	(%r15), %rdi
	leaq	L_.str.3(%rip), %rsi
LBB0_17:
	movl	%ebx, %edx
LBB0_18:
	callq	_dev_err
LBB0_19:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ti,pmic-shutdown-controller"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_tps65217_regmap_config,4,2     ## @tps65217_regmap_config
L_.str.1:                               ## @.str.1
	.asciz	"Failed to allocate register map: %d\n"

	.comm	_tps65217s,8,3                  ## @tps65217s
L_.str.2:                               ## @.str.2
	.asciz	"mfd_add_devices failed: %d\n"

	.comm	_TPS65217_REG_CHIPID,4,2        ## @TPS65217_REG_CHIPID
L_.str.3:                               ## @.str.3
	.asciz	"Failed to read revision register: %d\n"

	.comm	_TPS65217_REG_STATUS,4,2        ## @TPS65217_REG_STATUS
	.comm	_TPS65217_STATUS_OFF,4,2        ## @TPS65217_STATUS_OFF
	.comm	_TPS65217_PROTECT_NONE,4,2      ## @TPS65217_PROTECT_NONE
L_.str.4:                               ## @.str.4
	.asciz	"unable to set the status OFF\n"

L_.str.5:                               ## @.str.5
	.asciz	"TPS65217 ID %#x version 1.%d\n"

	.comm	_TPS65217_CHIPID_CHIP_MASK,4,2  ## @TPS65217_CHIPID_CHIP_MASK
	.comm	_TPS65217_CHIPID_REV_MASK,4,2   ## @TPS65217_CHIPID_REV_MASK
	.no_dead_strip	_tps65217_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tps65217_probe
_tps65217_probe:                        ; @tps65217_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	x21, x0
	mov	x22, x0
	ldr	w0, [x22, #4]!
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_of_property_read_bool
	mov	x20, x0
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x22
	mov	w1, #16
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	mov	x0, x21
	mov	x1, x19
	bl	_i2c_set_clientdata
	str	x22, [x19]
Lloh5:
	adrp	x1, _tps65217_regmap_config@GOTPAGE
Lloh6:
	ldr	x1, [x1, _tps65217_regmap_config@GOTPAGEOFF]
	mov	x0, x21
	bl	_devm_regmap_init_i2c
	str	w0, [x19, #12]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.2:
	ldr	w0, [x19, #12]
	bl	_PTR_ERR
	mov	x21, x0
	ldr	x0, [x19]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_3:
	mov	x2, x21
	bl	_dev_err
	b	LBB0_5
LBB0_4:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_5:
	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
LBB0_6:
	ldr	w1, [x21]
Lloh12:
	adrp	x22, _tps65217s@GOTPAGE
Lloh13:
	ldr	x22, [x22, _tps65217s@GOTPAGEOFF]
	cbz	w1, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_tps65217_irq_init
	b	LBB0_11
LBB0_8:
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_11
; %bb.9:
	mov	x21, #0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x22]
	str	xzr, [x0, x21, lsl #3]
	add	x21, x21, #1
	bl	_ARRAY_SIZE
	cmp	x21, w0, sxtw
	b.lt	LBB0_10
LBB0_11:
	ldr	x21, [x19]
	ldr	x22, [x22]
	mov	x0, x22
	bl	_ARRAY_SIZE
	mov	x3, x0
	ldr	w6, [x19, #8]
	mov	x0, x21
	mov	w1, #-1
	mov	x2, x22
	mov	x4, #0
	mov	w5, #0
	bl	_devm_mfd_add_devices
	tbnz	w0, #31, LBB0_17
; %bb.12:
Lloh14:
	adrp	x8, _TPS65217_REG_CHIPID@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TPS65217_REG_CHIPID@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_tps65217_reg_read
	tbnz	w0, #31, LBB0_18
; %bb.13:
	cbz	w20, LBB0_16
; %bb.14:
Lloh17:
	adrp	x8, _TPS65217_REG_STATUS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TPS65217_REG_STATUS@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _TPS65217_STATUS_OFF@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TPS65217_STATUS_OFF@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
Lloh23:
	adrp	x8, _TPS65217_PROTECT_NONE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _TPS65217_PROTECT_NONE@GOTPAGEOFF]
Lloh25:
	ldr	w4, [x8]
	mov	x0, x19
	mov	x3, x2
	bl	_tps65217_set_bits
	cbz	w0, LBB0_16
; %bb.15:
	ldr	x0, [x19]
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_warn
LBB0_16:
	ldr	x0, [x19]
	ldr	w8, [sp, #12]
Lloh28:
	adrp	x9, _TPS65217_CHIPID_CHIP_MASK@GOTPAGE
Lloh29:
	ldr	x9, [x9, _TPS65217_CHIPID_CHIP_MASK@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	and	w9, w9, w8
	lsr	w2, w9, #4
Lloh31:
	adrp	x9, _TPS65217_CHIPID_REV_MASK@GOTPAGE
Lloh32:
	ldr	x9, [x9, _TPS65217_CHIPID_REV_MASK@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	and	w3, w9, w8
Lloh34:
	adrp	x1, l_.str.5@PAGE
Lloh35:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_dev_info
	mov	w21, #0
	b	LBB0_5
LBB0_17:
	mov	x21, x0
	ldr	x0, [x19]
Lloh36:
	adrp	x1, l_.str.2@PAGE
Lloh37:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_3
LBB0_18:
	mov	x21, x0
	ldr	x0, [x19]
Lloh38:
	adrp	x1, l_.str.3@PAGE
Lloh39:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ti,pmic-shutdown-controller"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_tps65217_regmap_config,4,2     ; @tps65217_regmap_config
l_.str.1:                               ; @.str.1
	.asciz	"Failed to allocate register map: %d\n"

	.comm	_tps65217s,8,3                  ; @tps65217s
l_.str.2:                               ; @.str.2
	.asciz	"mfd_add_devices failed: %d\n"

	.comm	_TPS65217_REG_CHIPID,4,2        ; @TPS65217_REG_CHIPID
l_.str.3:                               ; @.str.3
	.asciz	"Failed to read revision register: %d\n"

	.comm	_TPS65217_REG_STATUS,4,2        ; @TPS65217_REG_STATUS
	.comm	_TPS65217_STATUS_OFF,4,2        ; @TPS65217_STATUS_OFF
	.comm	_TPS65217_PROTECT_NONE,4,2      ; @TPS65217_PROTECT_NONE
l_.str.4:                               ; @.str.4
	.asciz	"unable to set the status OFF\n"

l_.str.5:                               ; @.str.5
	.asciz	"TPS65217 ID %#x version 1.%d\n"

	.comm	_TPS65217_CHIPID_CHIP_MASK,4,2  ; @TPS65217_CHIPID_CHIP_MASK
	.comm	_TPS65217_CHIPID_REV_MASK,4,2   ; @TPS65217_CHIPID_REV_MASK
	.no_dead_strip	_tps65217_probe
.subsections_via_symbols
