	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt5033_battery_probe
_rt5033_battery_probe:                  ## @rt5033_battery_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	movq	_I2C_FUNC_SMBUS_BYTE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$16, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, %r14
	movq	%rbx, 8(%rax)
	movq	_rt5033_battery_regmap_config@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_devm_regmap_init_i2c
	movl	%eax, 4(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_4:
	movq	_EIO@GOTPCREL(%rip), %rcx
LBB0_6:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_i2c_set_clientdata
	movq	%r14, -24(%rbp)
	movq	_rt5033_battery_desc@GOTPCREL(%rip), %rsi
	leaq	-24(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_power_supply_register
	movl	%eax, (%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
	movl	(%r14), %edi
	callq	_PTR_ERR
	jmp	LBB0_7
LBB0_10:
	xorl	%eax, %eax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE,4,2        ## @I2C_FUNC_SMBUS_BYTE
	.comm	_EIO,4,2                        ## @EIO
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_rt5033_battery_regmap_config,4,2 ## @rt5033_battery_regmap_config
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to initialize regmap\n"

	.comm	_rt5033_battery_desc,4,2        ## @rt5033_battery_desc
L_.str.1:                               ## @.str.1
	.asciz	"Failed to register power supply\n"

	.no_dead_strip	_rt5033_battery_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt5033_battery_probe
_rt5033_battery_probe:                  ; @rt5033_battery_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x0, [x0, #8]
Lloh0:
	adrp	x8, _I2C_FUNC_SMBUS_BYTE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_FUNC_SMBUS_BYTE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_i2c_check_functionality
	cbz	w0, LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #16
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.2:
	mov	x20, x0
	str	x19, [x0, #8]
Lloh6:
	adrp	x1, _rt5033_battery_regmap_config@GOTPAGE
Lloh7:
	ldr	x1, [x1, _rt5033_battery_regmap_config@GOTPAGEOFF]
	mov	x0, x19
	bl	_devm_regmap_init_i2c
	str	w0, [x20, #4]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.3:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_4:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh12:
	adrp	x8, _EIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_8:
	mov	x0, x19
	mov	x1, x20
	bl	_i2c_set_clientdata
	str	x20, [sp, #8]
Lloh14:
	adrp	x1, _rt5033_battery_desc@GOTPAGE
Lloh15:
	ldr	x1, [x1, _rt5033_battery_desc@GOTPAGEOFF]
	add	x2, sp, #8
	mov	x0, x19
	bl	_power_supply_register
	str	w0, [x20]
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.9:
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x20]
	bl	_PTR_ERR
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE,4,2        ; @I2C_FUNC_SMBUS_BYTE
	.comm	_EIO,4,2                        ; @EIO
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_rt5033_battery_regmap_config,4,2 ; @rt5033_battery_regmap_config
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to initialize regmap\n"

	.comm	_rt5033_battery_desc,4,2        ; @rt5033_battery_desc
l_.str.1:                               ; @.str.1
	.asciz	"Failed to register power supply\n"

	.no_dead_strip	_rt5033_battery_probe
.subsections_via_symbols
