	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max77843_probe
_max77843_probe:                        ## @max77843_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	%rsi, %r15
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_i2c_set_clientdata
	movq	%r14, 8(%rbx)
	movq	%r14, 24(%rbx)
	movl	4(%r14), %eax
	movl	%eax, 4(%rbx)
	movl	(%r15), %eax
	movl	%eax, 20(%rbx)
	movq	_max77843_regmap_config@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_regmap_init_i2c
	movl	%eax, 16(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.15:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movl	16(%rbx), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_14
LBB0_3:
	movl	4(%rbx), %esi
	movq	_IRQF_TRIGGER_LOW@GOTPCREL(%rip), %rax
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	16(%rbx), %edi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_max77843_irq_chip@GOTPCREL(%rip), %r8
	xorl	%ecx, %ecx
	movq	%rbx, %r9
	callq	_regmap_add_irq_chip
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_14
LBB0_5:
	movl	16(%rbx), %edi
	movq	_MAX77843_SYS_REG_PMICID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movl	-44(%rbp), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	movq	%rbx, %rdi
	callq	_max77843_chg_init
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r15d
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_13
LBB0_6:
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rsi
LBB0_13:
	movq	%r14, %rdi
	callq	_dev_err
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	callq	_regmap_del_irq_chip
LBB0_14:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	16(%rbx), %edi
	movq	_MAX77843_SYS_REG_INTSRCMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MAX77843_INTSRC_MASK_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movl	%edx, %ecx
	notl	%ecx
	callq	_regmap_update_bits
	testl	%eax, %eax
	js	LBB0_10
## %bb.11:
	movq	8(%rbx), %r12
	movq	_max77843_devs@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%r13d, %edi
	callq	_ARRAY_SIZE
	movq	$0, (%rsp)
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	movl	$-1, %esi
	movl	%r13d, %edx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_mfd_add_devices
	testl	%eax, %eax
	js	LBB0_12
## %bb.16:
	movq	8(%rbx), %rdi
	movl	$1, %esi
	callq	_device_init_wakeup
	jmp	LBB0_14
LBB0_10:
	movl	%eax, %r15d
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_13
LBB0_12:
	leaq	L_.str.6(%rip), %rsi
	movl	%eax, %r15d
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_max77843_regmap_config,4,2     ## @max77843_regmap_config
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate topsys register map\n"

	.comm	_IRQF_TRIGGER_LOW,4,2           ## @IRQF_TRIGGER_LOW
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.comm	_max77843_irq_chip,4,2          ## @max77843_irq_chip
L_.str.1:                               ## @.str.1
	.asciz	"Failed to add TOPSYS IRQ chip\n"

	.comm	_MAX77843_SYS_REG_PMICID,4,2    ## @MAX77843_SYS_REG_PMICID
L_.str.2:                               ## @.str.2
	.asciz	"Failed to read PMIC ID\n"

L_.str.3:                               ## @.str.3
	.asciz	"device ID: 0x%x\n"

L_.str.4:                               ## @.str.4
	.asciz	"Failed to init Charger\n"

	.comm	_MAX77843_SYS_REG_INTSRCMASK,4,2 ## @MAX77843_SYS_REG_INTSRCMASK
	.comm	_MAX77843_INTSRC_MASK_MASK,8,3  ## @MAX77843_INTSRC_MASK_MASK
L_.str.5:                               ## @.str.5
	.asciz	"Failed to unmask interrupt source\n"

	.comm	_max77843_devs,4,2              ## @max77843_devs
L_.str.6:                               ## @.str.6
	.asciz	"Failed to add mfd device\n"

	.no_dead_strip	_max77843_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max77843_probe
_max77843_probe:                        ; @max77843_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, x1
	mov	x19, 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_3
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_i2c_set_clientdata
	str	x19, [x20, #8]
	str	x19, [x20, #24]
	ldr	w8, [x19, #4]
	str	w8, [x20, #4]
	ldr	w8, [x21]
	str	w8, [x20, #20]
Lloh3:
	adrp	x1, _max77843_regmap_config@GOTPAGE
Lloh4:
	ldr	x1, [x1, _max77843_regmap_config@GOTPAGEOFF]
	mov	x0, x19
	bl	_devm_regmap_init_i2c
	str	w0, [x20, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x20, #16]
	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
	b	_PTR_ERR
LBB0_3:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_11
LBB0_4:
	ldr	w0, [x20, #16]
	ldr	w1, [x20, #4]
Lloh10:
	adrp	x8, _IRQF_TRIGGER_LOW@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IRQF_TRIGGER_LOW@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh16:
	adrp	x9, _IRQF_SHARED@GOTPAGE
Lloh17:
	ldr	x9, [x9, _IRQF_SHARED@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w2, w8, w9
Lloh19:
	adrp	x4, _max77843_irq_chip@GOTPAGE
Lloh20:
	ldr	x4, [x4, _max77843_irq_chip@GOTPAGEOFF]
	mov	w3, #0
	mov	x5, x20
	bl	_regmap_add_irq_chip
	cbz	w0, LBB0_6
; %bb.5:
	mov	x21, x0
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_11
LBB0_6:
	ldr	w0, [x20, #16]
Lloh23:
	adrp	x8, _MAX77843_SYS_REG_PMICID@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MAX77843_SYS_REG_PMICID@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	tbnz	w0, #31, LBB0_9
; %bb.7:
	ldr	w2, [sp, #12]
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	x0, x20
	bl	_max77843_chg_init
	cbz	w0, LBB0_12
; %bb.8:
	mov	x21, x0
Lloh28:
	adrp	x1, l_.str.4@PAGE
Lloh29:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_10
LBB0_9:
	mov	x21, x0
Lloh30:
	adrp	x1, l_.str.2@PAGE
Lloh31:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_10:
	mov	x0, x19
	bl	_dev_err
	ldp	w1, w0, [x20]
	bl	_regmap_del_irq_chip
LBB0_11:
	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_12:
Lloh32:
	adrp	x8, _MAX77843_SYS_REG_INTSRCMASK@GOTPAGE
Lloh33:
	ldr	x8, [x8, _MAX77843_SYS_REG_INTSRCMASK@GOTPAGEOFF]
	ldr	w0, [x20, #16]
Lloh34:
	ldr	w1, [x8]
Lloh35:
	adrp	x8, _MAX77843_INTSRC_MASK_MASK@GOTPAGE
Lloh36:
	ldr	x8, [x8, _MAX77843_INTSRC_MASK_MASK@GOTPAGEOFF]
Lloh37:
	ldr	x2, [x8]
	mvn	w3, w2
	bl	_regmap_update_bits
	tbnz	w0, #31, LBB0_15
; %bb.13:
	ldr	x21, [x20, #8]
Lloh38:
	adrp	x8, _max77843_devs@GOTPAGE
Lloh39:
	ldr	x8, [x8, _max77843_devs@GOTPAGEOFF]
Lloh40:
	ldr	w22, [x8]
	mov	x0, x22
	bl	_ARRAY_SIZE
	mov	x3, x0
	mov	x0, x21
	mov	w1, #-1
	mov	x2, x22
	mov	x4, #0
	mov	w5, #0
	mov	x6, #0
	bl	_mfd_add_devices
	tbnz	w0, #31, LBB0_16
; %bb.14:
	ldr	x0, [x20, #8]
	mov	w1, #1
	bl	_device_init_wakeup
	mov	w21, #0
	b	LBB0_11
LBB0_15:
	mov	x21, x0
Lloh41:
	adrp	x1, l_.str.5@PAGE
Lloh42:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_10
LBB0_16:
	mov	x21, x0
Lloh43:
	adrp	x1, l_.str.6@PAGE
Lloh44:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_max77843_regmap_config,4,2     ; @max77843_regmap_config
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate topsys register map\n"

	.comm	_IRQF_TRIGGER_LOW,4,2           ; @IRQF_TRIGGER_LOW
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.comm	_max77843_irq_chip,4,2          ; @max77843_irq_chip
l_.str.1:                               ; @.str.1
	.asciz	"Failed to add TOPSYS IRQ chip\n"

	.comm	_MAX77843_SYS_REG_PMICID,4,2    ; @MAX77843_SYS_REG_PMICID
l_.str.2:                               ; @.str.2
	.asciz	"Failed to read PMIC ID\n"

l_.str.3:                               ; @.str.3
	.asciz	"device ID: 0x%x\n"

l_.str.4:                               ; @.str.4
	.asciz	"Failed to init Charger\n"

	.comm	_MAX77843_SYS_REG_INTSRCMASK,4,2 ; @MAX77843_SYS_REG_INTSRCMASK
	.comm	_MAX77843_INTSRC_MASK_MASK,8,3  ; @MAX77843_INTSRC_MASK_MASK
l_.str.5:                               ; @.str.5
	.asciz	"Failed to unmask interrupt source\n"

	.comm	_max77843_devs,4,2              ; @max77843_devs
l_.str.6:                               ; @.str.6
	.asciz	"Failed to add mfd device\n"

	.no_dead_strip	_max77843_probe
.subsections_via_symbols
