	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max77650_i2c_probe
_max77650_i2c_probe:                    ## @max77650_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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	4(%rdi), %r14
	movq	_max77650_regmap_config@GOTPCREL(%rip), %rsi
	callq	_devm_regmap_init_i2c
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.12:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r12, %rdi
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_MAX77650_REG_CID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	movq	%r12, %rdi
	callq	_regmap_read
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
LBB0_3:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_11:
	movl	%r15d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	-36(%rbp), %edi
	callq	_MAX77650_CID_BITS
	movl	%eax, %ecx
	andl	$-4, %ecx
	cmpl	$128, %ecx
	jne	LBB0_5
## %bb.6:
	movq	_MAX77650_REG_CNFG_GLBL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MAX77650_SBIA_LPM_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MAX77650_SBIA_LPM_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	callq	_regmap_update_bits
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %r15d
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_3
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_11
LBB0_8:
	movl	(%rbx), %edx
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	leaq	-48(%rbp), %rax
	movq	%rax, (%rsp)
	movq	_max77650_irq_chip@GOTPCREL(%rip), %r9
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%r8d, %r8d
	callq	_devm_regmap_add_irq_chip
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %r15d
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_3
LBB0_10:
	movq	-48(%rbp), %rdi
	callq	_regmap_irq_get_domain
	movq	%rax, %r12
	movq	_PLATFORM_DEVID_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_max77650_cells@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	movq	%r12, (%rsp)
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_devm_mfd_add_devices
	movl	%eax, %r15d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_max77650_regmap_config,4,2     ## @max77650_regmap_config
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to initialise I2C Regmap\n"

	.comm	_MAX77650_REG_CID,4,2           ## @MAX77650_REG_CID
L_.str.1:                               ## @.str.1
	.asciz	"Unable to read Chip ID\n"

L_.str.2:                               ## @.str.2
	.asciz	"Chip not supported - ID: 0x%02x\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_MAX77650_REG_CNFG_GLBL,4,2     ## @MAX77650_REG_CNFG_GLBL
	.comm	_MAX77650_SBIA_LPM_MASK,4,2     ## @MAX77650_SBIA_LPM_MASK
	.comm	_MAX77650_SBIA_LPM_DISABLED,4,2 ## @MAX77650_SBIA_LPM_DISABLED
L_.str.3:                               ## @.str.3
	.asciz	"Unable to change the power mode\n"

	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.comm	_max77650_irq_chip,4,2          ## @max77650_irq_chip
L_.str.4:                               ## @.str.4
	.asciz	"Unable to add Regmap IRQ chip\n"

	.comm	_PLATFORM_DEVID_NONE,4,2        ## @PLATFORM_DEVID_NONE
	.comm	_max77650_cells,4,2             ## @max77650_cells
	.no_dead_strip	_max77650_i2c_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max77650_i2c_probe
_max77650_i2c_probe:                    ; @max77650_i2c_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x21, x0
	add	x19, x0, #4
Lloh0:
	adrp	x1, _max77650_regmap_config@GOTPAGE
Lloh1:
	ldr	x1, [x1, _max77650_regmap_config@GOTPAGEOFF]
	bl	_devm_regmap_init_i2c
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	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
	add	sp, sp, #80
	b	_PTR_ERR
LBB0_2:
Lloh4:
	adrp	x8, _MAX77650_REG_CID@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MAX77650_REG_CID@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	add	x2, sp, #20
	mov	x0, x20
	bl	_regmap_read
	cbz	w0, LBB0_6
; %bb.3:
	mov	x22, x0
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_4:
	mov	x0, x19
	bl	_dev_err
LBB0_5:
	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
	add	sp, sp, #80
	ret
LBB0_6:
	ldr	w0, [sp, #20]
	bl	_MAX77650_CID_BITS
                                        ; kill: def $w0 killed $w0 def $x0
	and	w8, w0, #0xfffffffc
	cmp	w8, #128
	b.ne	LBB0_9
; %bb.7:
Lloh9:
	adrp	x8, _MAX77650_REG_CNFG_GLBL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MAX77650_REG_CNFG_GLBL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _MAX77650_SBIA_LPM_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MAX77650_SBIA_LPM_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
Lloh15:
	adrp	x8, _MAX77650_SBIA_LPM_DISABLED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MAX77650_SBIA_LPM_DISABLED@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	mov	x0, x20
	bl	_regmap_update_bits
	cbz	w0, LBB0_10
; %bb.8:
	mov	x22, x0
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_4
LBB0_9:
	str	x0, [sp]
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh22:
	adrp	x8, _ENODEV@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_5
LBB0_10:
Lloh25:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _IRQF_SHARED@GOTPAGE
Lloh29:
	ldr	x9, [x9, _IRQF_SHARED@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w3, w9, w8
Lloh31:
	adrp	x5, _max77650_irq_chip@GOTPAGE
Lloh32:
	ldr	x5, [x5, _max77650_irq_chip@GOTPAGEOFF]
	add	x6, sp, #24
	mov	x0, x19
	mov	x1, x20
	mov	w4, #0
	bl	_devm_regmap_add_irq_chip
	cbz	w0, LBB0_12
; %bb.11:
	mov	x22, x0
Lloh33:
	adrp	x1, l_.str.4@PAGE
Lloh34:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_4
LBB0_12:
	ldr	x0, [sp, #24]
	bl	_regmap_irq_get_domain
	mov	x20, x0
Lloh35:
	adrp	x8, _PLATFORM_DEVID_NONE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _PLATFORM_DEVID_NONE@GOTPAGEOFF]
Lloh37:
	ldr	w21, [x8]
Lloh38:
	adrp	x8, _max77650_cells@GOTPAGE
Lloh39:
	ldr	x8, [x8, _max77650_cells@GOTPAGEOFF]
Lloh40:
	ldr	w22, [x8]
	mov	x0, x22
	bl	_ARRAY_SIZE
	mov	x3, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	mov	x4, #0
	mov	w5, #0
	mov	x6, x20
	bl	_devm_mfd_add_devices
	mov	x22, x0
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_max77650_regmap_config,4,2     ; @max77650_regmap_config
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to initialise I2C Regmap\n"

	.comm	_MAX77650_REG_CID,4,2           ; @MAX77650_REG_CID
l_.str.1:                               ; @.str.1
	.asciz	"Unable to read Chip ID\n"

l_.str.2:                               ; @.str.2
	.asciz	"Chip not supported - ID: 0x%02x\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_MAX77650_REG_CNFG_GLBL,4,2     ; @MAX77650_REG_CNFG_GLBL
	.comm	_MAX77650_SBIA_LPM_MASK,4,2     ; @MAX77650_SBIA_LPM_MASK
	.comm	_MAX77650_SBIA_LPM_DISABLED,4,2 ; @MAX77650_SBIA_LPM_DISABLED
l_.str.3:                               ; @.str.3
	.asciz	"Unable to change the power mode\n"

	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.comm	_max77650_irq_chip,4,2          ; @max77650_irq_chip
l_.str.4:                               ; @.str.4
	.asciz	"Unable to add Regmap IRQ chip\n"

	.comm	_PLATFORM_DEVID_NONE,4,2        ; @PLATFORM_DEVID_NONE
	.comm	_max77650_cells,4,2             ; @max77650_cells
	.no_dead_strip	_max77650_i2c_probe
.subsections_via_symbols
