	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max77686_i2c_probe
_max77686_i2c_probe:                    ## @max77686_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$40, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r15
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_i2c_set_clientdata
	movq	%r14, %rdi
	callq	_of_device_get_match_data
	movq	%rax, (%r15)
	movq	%r14, 8(%r15)
	movq	%r14, 32(%r15)
	movl	4(%r14), %ecx
	movl	%ecx, 20(%r15)
	movq	_TYPE_MAX77686@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	_max77802_regmap_config@GOTPCREL(%rip), %rbx
	cmoveq	_max77686_regmap_config@GOTPCREL(%rip), %rbx
	movq	_max77802_irq_chip@GOTPCREL(%rip), %r12
	cmoveq	_max77686_irq_chip@GOTPCREL(%rip), %r12
	movq	_max77802_devs@GOTPCREL(%rip), %rax
	cmoveq	_max77686_devs@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	%r13, %rdi
	callq	_ARRAY_SIZE
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_devm_regmap_init_i2c
	movl	%eax, 24(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	movl	24(%r15), %edi
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	callq	_PTR_ERR
	movl	%eax, %r13d
	movq	8(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_5
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
LBB0_4:
	subl	(%rax), %r13d
LBB0_5:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movq	_MAX77686_REG_DEVICE_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-60(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_10
## %bb.7:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movl	20(%r15), %edx
	movl	24(%r15), %esi
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rax
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	%r15, %rax
	addq	$16, %rax
	movq	%rax, (%rsp)
	xorl	%r13d, %r13d
	movq	%r14, %rdi
	xorl	%r8d, %r8d
	movq	%r12, %r9
	callq	_devm_regmap_add_irq_chip
	testl	%eax, %eax
	js	LBB0_11
## %bb.8:
	movq	8(%r15), %rdi
	movq	$0, (%rsp)
	movl	$-1, %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%ebx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_devm_mfd_add_devices
	testl	%eax, %eax
	jns	LBB0_5
## %bb.9:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	%ebx, %r13d
	jmp	LBB0_5
LBB0_10:
	movq	8(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_11:
	movl	%eax, %r12d
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	%r12d, %r13d
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_TYPE_MAX77686,8,3              ## @TYPE_MAX77686
	.comm	_max77686_regmap_config,4,2     ## @max77686_regmap_config
	.comm	_max77686_irq_chip,4,2          ## @max77686_irq_chip
	.comm	_max77686_devs,8,3              ## @max77686_devs
	.comm	_max77802_regmap_config,4,2     ## @max77802_regmap_config
	.comm	_max77802_irq_chip,4,2          ## @max77802_irq_chip
	.comm	_max77802_devs,8,3              ## @max77802_devs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate register map: %d\n"

	.comm	_MAX77686_REG_DEVICE_ID,4,2     ## @MAX77686_REG_DEVICE_ID
L_.str.1:                               ## @.str.1
	.asciz	"device not found on this channel (this is not an error)\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
L_.str.2:                               ## @.str.2
	.asciz	"failed to add PMIC irq chip: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"failed to add MFD devices: %d\n"

	.no_dead_strip	_max77686_i2c_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max77686_i2c_probe
_max77686_i2c_probe:                    ; @max77686_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	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #40
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_i2c_set_clientdata
	mov	x0, x19
	bl	_of_device_get_match_data
	stp	x0, x19, [x20]
	str	x19, [x20, #32]
	ldr	w8, [x19, #4]
	str	w8, [x20, #20]
Lloh3:
	adrp	x8, _TYPE_MAX77686@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TYPE_MAX77686@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _max77802_regmap_config@GOTPAGE
Lloh7:
	ldr	x9, [x9, _max77802_regmap_config@GOTPAGEOFF]
Lloh8:
	adrp	x10, _max77686_regmap_config@GOTPAGE
Lloh9:
	ldr	x10, [x10, _max77686_regmap_config@GOTPAGEOFF]
	cmp	x0, x8
	csel	x24, x10, x9, eq
Lloh10:
	adrp	x8, _max77802_irq_chip@GOTPAGE
Lloh11:
	ldr	x8, [x8, _max77802_irq_chip@GOTPAGEOFF]
Lloh12:
	adrp	x9, _max77686_irq_chip@GOTPAGE
Lloh13:
	ldr	x9, [x9, _max77686_irq_chip@GOTPAGEOFF]
	csel	x23, x9, x8, eq
Lloh14:
	adrp	x8, _max77686_devs@GOTPAGE
Lloh15:
	ldr	x8, [x8, _max77686_devs@GOTPAGEOFF]
Lloh16:
	adrp	x9, _max77802_devs@GOTPAGE
Lloh17:
	ldr	x9, [x9, _max77802_devs@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	x21, [x8]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x22, x0
	mov	x0, x19
	mov	x1, x24
	bl	_devm_regmap_init_i2c
	str	w0, [x20, #24]
	bl	_IS_ERR
	mov	x8, x0
	ldr	w0, [x20, #24]
	cbz	x8, LBB0_6
; %bb.2:
	bl	_PTR_ERR
	mov	x21, x0
	ldr	x0, [x20, #8]
	str	x21, [sp]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_5
LBB0_3:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_5:
	mov	x0, x21
	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_6:
Lloh22:
	adrp	x8, _MAX77686_REG_DEVICE_ID@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MAX77686_REG_DEVICE_ID@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	tbnz	w0, #31, LBB0_10
; %bb.7:
	ldp	w2, w1, [x20, #20]
Lloh25:
	adrp	x8, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh26:
	ldr	x8, [x8, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh29:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh31:
	adrp	x9, _IRQF_SHARED@GOTPAGE
Lloh32:
	ldr	x9, [x9, _IRQF_SHARED@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	orr	w3, w8, w9
	add	x6, x20, #16
	mov	x0, x19
	mov	w4, #0
	mov	x5, x23
	bl	_devm_regmap_add_irq_chip
	tbnz	w0, #31, LBB0_11
; %bb.8:
	ldr	x0, [x20, #8]
	mov	w1, #-1
	mov	x2, x21
	mov	x3, x22
	mov	x4, #0
	mov	w5, #0
	mov	x6, #0
	bl	_devm_mfd_add_devices
	mov	w21, #0
	tbz	w0, #31, LBB0_5
; %bb.9:
	mov	x20, x0
	str	x20, [sp]
Lloh34:
	adrp	x1, l_.str.3@PAGE
Lloh35:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x21, x20
	b	LBB0_5
LBB0_10:
	ldr	x0, [x20, #8]
Lloh36:
	adrp	x1, l_.str.1@PAGE
Lloh37:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
Lloh38:
	adrp	x8, _ENODEV@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_4
LBB0_11:
	mov	x23, x0
	str	x23, [sp]
Lloh40:
	adrp	x1, l_.str.2@PAGE
Lloh41:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x21, x23
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_TYPE_MAX77686,8,3              ; @TYPE_MAX77686
	.comm	_max77686_regmap_config,4,2     ; @max77686_regmap_config
	.comm	_max77686_irq_chip,4,2          ; @max77686_irq_chip
	.comm	_max77686_devs,8,3              ; @max77686_devs
	.comm	_max77802_regmap_config,4,2     ; @max77802_regmap_config
	.comm	_max77802_irq_chip,4,2          ; @max77802_irq_chip
	.comm	_max77802_devs,8,3              ; @max77802_devs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate register map: %d\n"

	.comm	_MAX77686_REG_DEVICE_ID,4,2     ; @MAX77686_REG_DEVICE_ID
l_.str.1:                               ; @.str.1
	.asciz	"device not found on this channel (this is not an error)\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
l_.str.2:                               ; @.str.2
	.asciz	"failed to add PMIC irq chip: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"failed to add MFD devices: %d\n"

	.no_dead_strip	_max77686_i2c_probe
.subsections_via_symbols
