	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tps65090_i2c_probe
_tps65090_i2c_probe:                    ## @tps65090_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, %r14
	leaq	4(%rdi), %r15
	movq	%r15, %rdi
	callq	_dev_get_platdata
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%rax), %ebx
	jmp	LBB0_3
LBB0_2:
	xorl	%ebx, %ebx
	cmpl	$0, (%r15)
	je	LBB0_12
LBB0_3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	%rax, %r12
	movq	%r15, 8(%rax)
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_i2c_set_clientdata
	movq	_tps65090_regmap_config@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_regmap_init_i2c
	movl	%eax, 16(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movl	16(%r12), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
LBB0_6:
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_19
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_19
LBB0_9:
	movl	(%r14), %esi
	testl	%esi, %esi
	je	LBB0_13
## %bb.10:
	movl	16(%r12), %edi
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movq	_IRQF_TRIGGER_LOW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_tps65090_irq_chip@GOTPCREL(%rip), %r8
	movl	%ebx, %ecx
	movq	%r12, %r9
	callq	_regmap_add_irq_chip
	testl	%eax, %eax
	je	LBB0_14
## %bb.11:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_6
LBB0_12:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_19
LBB0_13:
	movq	_tps65090s@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	_CHARGER@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	$0, (%r13,%rax,8)
	jmp	LBB0_15
LBB0_14:
	movq	_tps65090s@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
LBB0_15:
	movq	8(%r12), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_ARRAY_SIZE
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%r12), %edi
	callq	_regmap_irq_get_domain
	movl	%eax, (%rsp)
	xorl	%ebx, %ebx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$-1, %esi
	movq	%r13, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_mfd_add_devices
	testl	%eax, %eax
	je	LBB0_19
## %bb.16:
	movl	%eax, %r13d
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	(%r14), %edi
	testl	%edi, %edi
	je	LBB0_18
## %bb.17:
	movl	(%r12), %esi
	callq	_regmap_del_irq_chip
LBB0_18:
	movl	%r13d, %ebx
LBB0_19:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tps65090 requires platform data or of_node\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_tps65090_regmap_config,4,2     ## @tps65090_regmap_config
L_.str.1:                               ## @.str.1
	.asciz	"regmap_init failed with err: %d\n"

	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.comm	_IRQF_TRIGGER_LOW,4,2           ## @IRQF_TRIGGER_LOW
	.comm	_tps65090_irq_chip,4,2          ## @tps65090_irq_chip
L_.str.2:                               ## @.str.2
	.asciz	"IRQ init failed with err: %d\n"

	.comm	_tps65090s,8,3                  ## @tps65090s
	.comm	_CHARGER,8,3                    ## @CHARGER
L_.str.3:                               ## @.str.3
	.asciz	"add mfd devices failed with err: %d\n"

	.no_dead_strip	_tps65090_i2c_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tps65090_i2c_probe
_tps65090_i2c_probe:                    ; @tps65090_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, #4
	mov	x0, x19
	bl	_dev_get_platdata
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w22, [x0]
	b	LBB0_4
LBB0_2:
	ldr	w8, [x19]
	cbz	w8, LBB0_12
; %bb.3:
	mov	w22, #0
LBB0_4:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_8
; %bb.5:
	mov	x21, x0
	str	x19, [x0, #8]
	mov	x0, x20
	mov	x1, x21
	bl	_i2c_set_clientdata
Lloh3:
	adrp	x1, _tps65090_regmap_config@GOTPAGE
Lloh4:
	ldr	x1, [x1, _tps65090_regmap_config@GOTPAGEOFF]
	mov	x0, x20
	bl	_devm_regmap_init_i2c
	str	w0, [x21, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.6:
	ldr	w0, [x21, #16]
	bl	_PTR_ERR
	mov	x22, x0
	str	x22, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_7:
	mov	x0, x19
	bl	_dev_err
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	b	LBB0_14
LBB0_8:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_13
LBB0_9:
	ldr	w1, [x20]
	cbz	w1, LBB0_15
; %bb.10:
Lloh9:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
	ldr	w0, [x21, #16]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _IRQF_TRIGGER_LOW@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IRQF_TRIGGER_LOW@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w2, w9, w8
Lloh15:
	adrp	x4, _tps65090_irq_chip@GOTPAGE
Lloh16:
	ldr	x4, [x4, _tps65090_irq_chip@GOTPAGEOFF]
	mov	x3, x22
	mov	x5, x21
	bl	_regmap_add_irq_chip
	cbz	w0, LBB0_16
; %bb.11:
	mov	x22, x0
	str	x22, [sp]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_12:
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh21:
	adrp	x8, _EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_14:
	mov	x0, x22
	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_15:
Lloh23:
	adrp	x8, _tps65090s@GOTPAGE
Lloh24:
	ldr	x8, [x8, _tps65090s@GOTPAGEOFF]
Lloh25:
	ldr	x22, [x8]
Lloh26:
	adrp	x8, _CHARGER@GOTPAGE
Lloh27:
	ldr	x8, [x8, _CHARGER@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	str	xzr, [x22, x8, lsl #3]
	b	LBB0_17
LBB0_16:
Lloh29:
	adrp	x8, _tps65090s@GOTPAGE
Lloh30:
	ldr	x8, [x8, _tps65090s@GOTPAGEOFF]
Lloh31:
	ldr	x22, [x8]
LBB0_17:
	ldr	x23, [x21, #8]
	mov	x0, x22
	bl	_ARRAY_SIZE
	mov	x24, x0
	ldr	w0, [x21]
	bl	_regmap_irq_get_domain
	mov	x6, x0
	mov	x0, x23
	mov	w1, #-1
	mov	x2, x22
	mov	x3, x24
	mov	x4, #0
	mov	w5, #0
	bl	_mfd_add_devices
	mov	x22, x0
	cbz	w0, LBB0_14
; %bb.18:
	str	x22, [sp]
Lloh32:
	adrp	x1, l_.str.3@PAGE
Lloh33:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x20]
	cbz	w0, LBB0_14
; %bb.19:
	ldr	w1, [x21]
	bl	_regmap_del_irq_chip
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tps65090 requires platform data or of_node\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_tps65090_regmap_config,4,2     ; @tps65090_regmap_config
l_.str.1:                               ; @.str.1
	.asciz	"regmap_init failed with err: %d\n"

	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.comm	_IRQF_TRIGGER_LOW,4,2           ; @IRQF_TRIGGER_LOW
	.comm	_tps65090_irq_chip,4,2          ; @tps65090_irq_chip
l_.str.2:                               ; @.str.2
	.asciz	"IRQ init failed with err: %d\n"

	.comm	_tps65090s,8,3                  ; @tps65090s
	.comm	_CHARGER,8,3                    ; @CHARGER
l_.str.3:                               ; @.str.3
	.asciz	"add mfd devices failed with err: %d\n"

	.no_dead_strip	_tps65090_i2c_probe
.subsections_via_symbols
