	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rx51_battery_probe
_rx51_battery_probe:                    ## @rx51_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$64, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	movq	%rbx, 56(%r15)
	leaq	L_.str(%rip), %rax
	movq	%rax, 32(%r15)
	movq	_POWER_SUPPLY_TYPE_BATTERY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%r15)
	movq	_rx51_battery_props@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 48(%r15)
	callq	_ARRAY_SIZE
	movl	%eax, 44(%r15)
	movq	_rx51_battery_get_property@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r15)
	movq	%r15, -32(%rbp)
	movq	56(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_iio_channel_get
	movq	%rax, (%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.13:
	movq	(%r15), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_12
LBB0_3:
	movq	56(%r15), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_iio_channel_get
	movq	%rax, 8(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	8(%r15), %rdi
	callq	_PTR_ERR
	movl	%eax, %r14d
	jmp	LBB0_11
LBB0_5:
	movq	56(%r15), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_iio_channel_get
	movq	%rax, 16(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	16(%r15), %rdi
	callq	_PTR_ERR
	movl	%eax, %r14d
	jmp	LBB0_10
LBB0_7:
	movq	%r15, %rsi
	addq	$32, %rsi
	movq	56(%r15), %rdi
	leaq	-32(%rbp), %rdx
	callq	_power_supply_register
	movq	%rax, 24(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	24(%r15), %rdi
	callq	_PTR_ERR
	movl	%eax, %r14d
	movq	16(%r15), %rdi
	callq	_iio_channel_release
LBB0_10:
	movq	8(%r15), %rdi
	callq	_iio_channel_release
LBB0_11:
	movq	(%r15), %rdi
	callq	_iio_channel_release
LBB0_12:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	xorl	%r14d, %r14d
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rx51-battery"

	.comm	_POWER_SUPPLY_TYPE_BATTERY,4,2  ## @POWER_SUPPLY_TYPE_BATTERY
	.comm	_rx51_battery_props,4,2         ## @rx51_battery_props
	.comm	_rx51_battery_get_property,4,2  ## @rx51_battery_get_property
L_.str.1:                               ## @.str.1
	.asciz	"temp"

L_.str.2:                               ## @.str.2
	.asciz	"bsi"

L_.str.3:                               ## @.str.3
	.asciz	"vbat"

	.no_dead_strip	_rx51_battery_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rx51_battery_probe
_rx51_battery_probe:                    ; @rx51_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	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #64
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
Lloh3:
	adrp	x8, l_.str@PAGE
Lloh4:
	add	x8, x8, l_.str@PAGEOFF
	str	x20, [x19, #56]
	mov	x20, x19
	str	x8, [x20, #32]!
Lloh5:
	adrp	x8, _POWER_SUPPLY_TYPE_BATTERY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _POWER_SUPPLY_TYPE_BATTERY@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _rx51_battery_props@GOTPAGE
Lloh9:
	ldr	x9, [x9, _rx51_battery_props@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x9]
	stp	w0, w8, [x19, #48]
	bl	_ARRAY_SIZE
Lloh11:
	adrp	x8, _rx51_battery_get_property@GOTPAGE
Lloh12:
	ldr	x8, [x8, _rx51_battery_get_property@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	stp	w8, w0, [x19, #40]
	str	x19, [sp, #8]
	ldr	x0, [x19, #56]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_iio_channel_get
	str	x0, [x19]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x0, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_PTR_ERR
LBB0_3:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_12
LBB0_4:
	ldr	x0, [x19, #56]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_iio_channel_get
	str	x0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.5:
	ldr	x0, [x19, #8]
	bl	_PTR_ERR
	mov	x20, x0
	b	LBB0_11
LBB0_6:
	ldr	x0, [x19, #56]
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_iio_channel_get
	str	x0, [x19, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.7:
	ldr	x0, [x19, #16]
	bl	_PTR_ERR
	mov	x20, x0
	b	LBB0_10
LBB0_8:
	ldr	x0, [x19, #56]
	add	x2, sp, #8
	mov	x1, x20
	bl	_power_supply_register
	str	x0, [x19, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_13
; %bb.9:
	ldr	x0, [x19, #24]
	bl	_PTR_ERR
	mov	x20, x0
	ldr	x0, [x19, #16]
	bl	_iio_channel_release
LBB0_10:
	ldr	x0, [x19, #8]
	bl	_iio_channel_release
LBB0_11:
	ldr	x0, [x19]
	bl	_iio_channel_release
LBB0_12:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_13:
	mov	w20, #0
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rx51-battery"

	.comm	_POWER_SUPPLY_TYPE_BATTERY,4,2  ; @POWER_SUPPLY_TYPE_BATTERY
	.comm	_rx51_battery_props,4,2         ; @rx51_battery_props
	.comm	_rx51_battery_get_property,4,2  ; @rx51_battery_get_property
l_.str.1:                               ; @.str.1
	.asciz	"temp"

l_.str.2:                               ; @.str.2
	.asciz	"bsi"

l_.str.3:                               ; @.str.3
	.asciz	"vbat"

	.no_dead_strip	_rx51_battery_probe
.subsections_via_symbols
