	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max17042_probe
_max17042_probe:                        ## @max17042_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	%rsi, %rbx
	movq	%rdi, %r14
	movq	24(%rdi), %rdi
	movq	$0, -64(%rbp)
	movq	_I2C_FUNC_SMBUS_WORD_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$48, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r12
	movq	%r14, 40(%rax)
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.6:
	xorl	%r13d, %r13d
	jmp	LBB0_10
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_7:
	movq	8(%r14), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_acpi_match_device
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %rbx
	movq	%rax, %r13
LBB0_10:
	movl	(%rbx), %eax
	movl	%eax, 32(%r12)
	movq	_max17042_regmap_config@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_regmap_init_i2c
	movq	%rax, 8(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	leaq	L_.str(%rip), %rsi
LBB0_12:
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_42:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	%r12, %rdi
	callq	_max17042_get_pdata
	movq	%rax, 24(%r12)
	testq	%rax, %rax
	je	LBB0_14
## %bb.15:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_i2c_set_clientdata
	movq	%r12, -56(%rbp)
	movl	(%r14), %eax
	movl	%eax, -64(%rbp)
	movq	24(%r12), %rcx
	movl	12(%rcx), %eax
	testl	%eax, %eax
	jne	LBB0_16
## %bb.17:
	movq	_max17042_no_current_sense_psy_desc@GOTPCREL(%rip), %r15
	cmpq	$0, (%rcx)
	jne	LBB0_20
	jmp	LBB0_19
LBB0_8:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_14:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_12
LBB0_16:
	movq	_max17042_psy_desc@GOTPCREL(%rip), %r15
	cmpq	$0, (%rcx)
	jne	LBB0_20
LBB0_19:
	movq	_MAX17042_DEFAULT_SNS_RESISTOR@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, (%rcx)
LBB0_20:
	movq	16(%rcx), %rsi
	testq	%rsi, %rsi
	je	LBB0_26
## %bb.21:
	cmpl	$0, 8(%rcx)
	jle	LBB0_26
## %bb.22:
	movq	8(%r12), %rdi
	movl	(%rsi), %edx
	movl	4(%rsi), %esi
	callq	_regmap_write
	movq	24(%r12), %rax
	cmpl	$2, 8(%rax)
	jl	LBB0_25
## %bb.23:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%rax), %rax
	movq	8(%r12), %rdi
	movl	(%rax,%rbx,8), %edx
	movl	4(%rax,%rbx,8), %esi
	callq	_regmap_write
	incq	%rbx
	movq	24(%r12), %rax
	movslq	8(%rax), %rcx
	cmpq	%rcx, %rbx
	jl	LBB0_24
LBB0_25:
	movl	12(%rax), %eax
LBB0_26:
	testl	%eax, %eax
	jne	LBB0_28
## %bb.27:
	movq	8(%r12), %rdi
	movq	_MAX17042_CGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_regmap_write
	movq	8(%r12), %rdi
	movq	_MAX17042_MiscCFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$3, %edx
	callq	_regmap_write
	movq	8(%r12), %rdi
	movq	_MAX17042_LearnCFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$7, %edx
	callq	_regmap_write
LBB0_28:
	leaq	-64(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_devm_power_supply_register
	movq	%rax, 16(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_30
## %bb.29:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	16(%r12), %rdi
	callq	_PTR_ERR
	jmp	LBB0_42
LBB0_30:
	movq	16(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_36
## %bb.31:
	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
	movq	_IRQF_PROBE_SHARED@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	orl	(%rax), %r8d
	xorl	%eax, %eax
	testq	%r13, %r13
	cmovel	%eax, %r8d
	orl	%ecx, %r8d
	movq	_max17042_thread_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	16(%r12), %rax
	movq	(%rax), %rax
	movl	(%rax), %r9d
	movq	%r12, (%rsp)
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_32
## %bb.33:
	movq	$0, 16(%r14)
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	je	LBB0_36
## %bb.34:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_35
LBB0_32:
	movq	8(%r12), %rdi
	movq	_MAX17042_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CONFIG_ALRT_BIT_ENBL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %edx
	callq	_regmap_update_bits
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_max17042_set_soc_threshold
LBB0_35:
	cmpq	$0, 16(%r14)
	jne	LBB0_37
LBB0_36:
	movq	8(%r12), %rdi
	movq	_MAX17042_SALRT_Th@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$65280, %edx                    ## imm = 0xFF00
	callq	_regmap_write
LBB0_37:
	movq	8(%r12), %rdi
	movq	_MAX17042_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	callq	_regmap_read
	movq	_STATUS_POR_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -44(%rbp)
	je	LBB0_40
## %bb.38:
	movq	%r12, %rbx
	addq	$4, %rbx
	movq	_max17042_init_worker@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_INIT_WORK
	movq	_max17042_stop_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_devm_add_action
	testl	%eax, %eax
	jne	LBB0_42
## %bb.39:
	movq	%rbx, %rdi
	callq	_schedule_work
	jmp	LBB0_41
LBB0_40:
	movl	$1, (%r12)
LBB0_41:
	xorl	%eax, %eax
	jmp	LBB0_42
	.cfi_endproc
                                        ## -- End function
	.comm	_max17042_psy_desc,4,2          ## @max17042_psy_desc
	.comm	_I2C_FUNC_SMBUS_WORD_DATA,4,2   ## @I2C_FUNC_SMBUS_WORD_DATA
	.comm	_EIO,4,2                        ## @EIO
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_max17042_regmap_config,4,2     ## @max17042_regmap_config
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to initialize regmap\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"no platform data provided\n"

	.comm	_max17042_no_current_sense_psy_desc,4,2 ## @max17042_no_current_sense_psy_desc
	.comm	_MAX17042_DEFAULT_SNS_RESISTOR,8,3 ## @MAX17042_DEFAULT_SNS_RESISTOR
	.comm	_MAX17042_CGAIN,4,2             ## @MAX17042_CGAIN
	.comm	_MAX17042_MiscCFG,4,2           ## @MAX17042_MiscCFG
	.comm	_MAX17042_LearnCFG,4,2          ## @MAX17042_LearnCFG
L_.str.2:                               ## @.str.2
	.asciz	"failed: power supply register\n"

	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.comm	_IRQF_PROBE_SHARED,4,2          ## @IRQF_PROBE_SHARED
	.comm	_max17042_thread_handler,4,2    ## @max17042_thread_handler
	.comm	_MAX17042_CONFIG,4,2            ## @MAX17042_CONFIG
	.comm	_CONFIG_ALRT_BIT_ENBL,4,2       ## @CONFIG_ALRT_BIT_ENBL
	.comm	_EBUSY,4,2                      ## @EBUSY
L_.str.3:                               ## @.str.3
	.asciz	"Failed to get IRQ\n"

	.comm	_MAX17042_SALRT_Th,4,2          ## @MAX17042_SALRT_Th
	.comm	_MAX17042_STATUS,4,2            ## @MAX17042_STATUS
	.comm	_STATUS_POR_BIT,4,2             ## @STATUS_POR_BIT
	.comm	_max17042_init_worker,4,2       ## @max17042_init_worker
	.comm	_max17042_stop_work,4,2         ## @max17042_stop_work
	.no_dead_strip	_max17042_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max17042_probe
_max17042_probe:                        ; @max17042_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x1
	mov	x19, x0
	ldr	x0, [x0, #24]
	str	xzr, [sp, #16]
Lloh0:
	adrp	x8, _I2C_FUNC_SMBUS_WORD_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_FUNC_SMBUS_WORD_DATA@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_i2c_check_functionality
	cbz	w0, LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #48
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
	str	x19, [x0, #40]
	cbz	x21, LBB0_6
; %bb.3:
	mov	x22, #0
	b	LBB0_8
LBB0_4:
Lloh6:
	adrp	x8, _EIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_11
LBB0_5:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_11
LBB0_6:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	mov	x1, x19
	bl	_acpi_match_device
	cbz	x0, LBB0_26
; %bb.7:
	mov	x21, x0
	mov	x22, x0
LBB0_8:
	ldr	w8, [x21]
	str	w8, [x20, #32]
Lloh10:
	adrp	x1, _max17042_regmap_config@GOTPAGE
Lloh11:
	ldr	x1, [x1, _max17042_regmap_config@GOTPAGEOFF]
	mov	x0, x19
	bl	_devm_regmap_init_i2c
	str	x0, [x20, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_13
; %bb.9:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
LBB0_10:
	mov	x0, x19
	bl	_dev_err
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_13:
	mov	x0, x20
	bl	_max17042_get_pdata
	str	x0, [x20, #24]
	cbz	x0, LBB0_27
; %bb.14:
	mov	x0, x19
	mov	x1, x20
	bl	_i2c_set_clientdata
	str	x20, [sp, #24]
	ldr	w8, [x19]
	str	w8, [sp, #16]
	ldr	x9, [x20, #24]
Lloh16:
	adrp	x10, _max17042_psy_desc@GOTPAGE
Lloh17:
	ldr	x10, [x10, _max17042_psy_desc@GOTPAGEOFF]
	ldr	w8, [x9, #12]
Lloh18:
	adrp	x11, _max17042_no_current_sense_psy_desc@GOTPAGE
Lloh19:
	ldr	x11, [x11, _max17042_no_current_sense_psy_desc@GOTPAGEOFF]
	cmp	w8, #0
	csel	x21, x11, x10, eq
	ldr	x10, [x9]
	cbnz	x10, LBB0_16
; %bb.15:
Lloh20:
	adrp	x10, _MAX17042_DEFAULT_SNS_RESISTOR@GOTPAGE
Lloh21:
	ldr	x10, [x10, _MAX17042_DEFAULT_SNS_RESISTOR@GOTPAGEOFF]
Lloh22:
	ldr	x10, [x10]
	str	x10, [x9]
LBB0_16:
	ldr	x10, [x9, #16]
	cbz	x10, LBB0_22
; %bb.17:
	ldr	w9, [x9, #8]
	cmp	w9, #1
	b.lt	LBB0_22
; %bb.18:
	ldr	x0, [x20, #8]
	ldp	w2, w1, [x10]
	bl	_regmap_write
	ldr	x8, [x20, #24]
	ldr	w9, [x8, #8]
	cmp	w9, #2
	b.lt	LBB0_21
; %bb.19:
	mov	x23, #0
	mov	w24, #1
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8, #16]
	ldr	x0, [x20, #8]
	add	x8, x8, x23
	ldp	w2, w1, [x8, #8]
	bl	_regmap_write
	add	x24, x24, #1
	ldr	x8, [x20, #24]
	ldrsw	x9, [x8, #8]
	add	x23, x23, #8
	cmp	x24, x9
	b.lt	LBB0_20
LBB0_21:
	ldr	w8, [x8, #12]
LBB0_22:
	cbnz	w8, LBB0_24
; %bb.23:
	ldr	x0, [x20, #8]
Lloh23:
	adrp	x8, _MAX17042_CGAIN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MAX17042_CGAIN@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_regmap_write
	ldr	x0, [x20, #8]
Lloh26:
	adrp	x8, _MAX17042_MiscCFG@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MAX17042_MiscCFG@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	w2, #3
	bl	_regmap_write
	ldr	x0, [x20, #8]
Lloh29:
	adrp	x8, _MAX17042_LearnCFG@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MAX17042_LearnCFG@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	w2, #7
	bl	_regmap_write
LBB0_24:
	add	x2, sp, #16
	mov	x0, x19
	mov	x1, x21
	bl	_devm_power_supply_register
	str	x0, [x20, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_28
; %bb.25:
Lloh32:
	adrp	x1, l_.str.2@PAGE
Lloh33:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x20, #16]
	bl	_PTR_ERR
	b	LBB0_12
LBB0_26:
Lloh34:
	adrp	x8, _ENODEV@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_11
LBB0_27:
Lloh36:
	adrp	x1, l_.str.1@PAGE
Lloh37:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_28:
	ldr	x1, [x19, #16]
	cbz	x1, LBB0_34
; %bb.29:
Lloh38:
	adrp	x8, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh39:
	ldr	x8, [x8, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
Lloh41:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh42:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh44:
	adrp	x9, _IRQF_SHARED@GOTPAGE
Lloh45:
	ldr	x9, [x9, _IRQF_SHARED@GOTPAGEOFF]
Lloh46:
	adrp	x10, _IRQF_PROBE_SHARED@GOTPAGE
Lloh47:
	ldr	x10, [x10, _IRQF_PROBE_SHARED@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
Lloh49:
	ldr	w10, [x10]
	orr	w9, w10, w9
	cmp	x22, #0
	csel	w9, wzr, w9, eq
	orr	w4, w8, w9
Lloh50:
	adrp	x8, _max17042_thread_handler@GOTPAGE
Lloh51:
	ldr	x8, [x8, _max17042_thread_handler@GOTPAGEOFF]
Lloh52:
	ldr	w3, [x8]
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	ldr	w5, [x8]
	mov	x0, x19
	mov	x2, #0
	mov	x6, x20
	bl	_devm_request_threaded_irq
	cbz	w0, LBB0_32
; %bb.30:
	str	xzr, [x19, #16]
Lloh53:
	adrp	x8, _EBUSY@GOTPAGE
Lloh54:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh55:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_34
; %bb.31:
Lloh56:
	adrp	x1, l_.str.3@PAGE
Lloh57:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_33
LBB0_32:
	ldr	x0, [x20, #8]
Lloh58:
	adrp	x8, _MAX17042_CONFIG@GOTPAGE
Lloh59:
	ldr	x8, [x8, _MAX17042_CONFIG@GOTPAGEOFF]
Lloh60:
	ldr	w1, [x8]
Lloh61:
	adrp	x8, _CONFIG_ALRT_BIT_ENBL@GOTPAGE
Lloh62:
	ldr	x8, [x8, _CONFIG_ALRT_BIT_ENBL@GOTPAGEOFF]
Lloh63:
	ldr	w2, [x8]
	mov	x3, x2
	bl	_regmap_update_bits
	mov	x0, x20
	mov	w1, #1
	bl	_max17042_set_soc_threshold
LBB0_33:
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_35
LBB0_34:
	ldr	x0, [x20, #8]
Lloh64:
	adrp	x8, _MAX17042_SALRT_Th@GOTPAGE
Lloh65:
	ldr	x8, [x8, _MAX17042_SALRT_Th@GOTPAGEOFF]
Lloh66:
	ldr	w1, [x8]
	mov	w2, #65280
	bl	_regmap_write
LBB0_35:
	ldr	x0, [x20, #8]
Lloh67:
	adrp	x8, _MAX17042_STATUS@GOTPAGE
Lloh68:
	ldr	x8, [x8, _MAX17042_STATUS@GOTPAGEOFF]
Lloh69:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	ldr	w8, [sp, #12]
Lloh70:
	adrp	x9, _STATUS_POR_BIT@GOTPAGE
Lloh71:
	ldr	x9, [x9, _STATUS_POR_BIT@GOTPAGEOFF]
Lloh72:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_38
; %bb.36:
	add	x21, x20, #4
Lloh73:
	adrp	x8, _max17042_init_worker@GOTPAGE
Lloh74:
	ldr	x8, [x8, _max17042_init_worker@GOTPAGEOFF]
Lloh75:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_INIT_WORK
Lloh76:
	adrp	x8, _max17042_stop_work@GOTPAGE
Lloh77:
	ldr	x8, [x8, _max17042_stop_work@GOTPAGEOFF]
Lloh78:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_devm_add_action
	cbnz	w0, LBB0_12
; %bb.37:
	mov	x0, x21
	bl	_schedule_work
	mov	w0, #0
	b	LBB0_12
LBB0_38:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x20]
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh48
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.cfi_endproc
                                        ; -- End function
	.comm	_max17042_psy_desc,4,2          ; @max17042_psy_desc
	.comm	_I2C_FUNC_SMBUS_WORD_DATA,4,2   ; @I2C_FUNC_SMBUS_WORD_DATA
	.comm	_EIO,4,2                        ; @EIO
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_max17042_regmap_config,4,2     ; @max17042_regmap_config
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to initialize regmap\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"no platform data provided\n"

	.comm	_max17042_no_current_sense_psy_desc,4,2 ; @max17042_no_current_sense_psy_desc
	.comm	_MAX17042_DEFAULT_SNS_RESISTOR,8,3 ; @MAX17042_DEFAULT_SNS_RESISTOR
	.comm	_MAX17042_CGAIN,4,2             ; @MAX17042_CGAIN
	.comm	_MAX17042_MiscCFG,4,2           ; @MAX17042_MiscCFG
	.comm	_MAX17042_LearnCFG,4,2          ; @MAX17042_LearnCFG
l_.str.2:                               ; @.str.2
	.asciz	"failed: power supply register\n"

	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.comm	_IRQF_PROBE_SHARED,4,2          ; @IRQF_PROBE_SHARED
	.comm	_max17042_thread_handler,4,2    ; @max17042_thread_handler
	.comm	_MAX17042_CONFIG,4,2            ; @MAX17042_CONFIG
	.comm	_CONFIG_ALRT_BIT_ENBL,4,2       ; @CONFIG_ALRT_BIT_ENBL
	.comm	_EBUSY,4,2                      ; @EBUSY
l_.str.3:                               ; @.str.3
	.asciz	"Failed to get IRQ\n"

	.comm	_MAX17042_SALRT_Th,4,2          ; @MAX17042_SALRT_Th
	.comm	_MAX17042_STATUS,4,2            ; @MAX17042_STATUS
	.comm	_STATUS_POR_BIT,4,2             ; @STATUS_POR_BIT
	.comm	_max17042_init_worker,4,2       ; @max17042_init_worker
	.comm	_max17042_stop_work,4,2         ; @max17042_stop_work
	.no_dead_strip	_max17042_probe
.subsections_via_symbols
