	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function ab8500_bm_of_probe
LCPI0_0:
	.long	2600                            ## 0xa28
	.long	4150                            ## 0x1036
	.long	95                              ## 0x5f
	.long	520                             ## 0x208
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_ab8500_bm_of_probe
	.p2align	4, 0x90
_ab8500_bm_of_probe:                    ## @ab8500_bm_of_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rax
	movq	%rdi, %r13
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%rax, %rdi
	xorl	%edx, %edx
	callq	_of_parse_phandle
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r15
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%rax, %rdi
	xorl	%edx, %edx
	callq	_of_get_property
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r12
	leaq	L_.str.4(%rip), %rsi
	movq	%rax, %rdi
	movl	$4, %edx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, (%r14)
	movq	16(%r14), %rax
	movq	_BATTERY_UNKNOWN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	shlq	$5, %rcx
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [2600,4150,95,520]
	movups	%xmm0, (%rax,%rcx)
	movl	$4200, 16(%rax,%rcx)            ## imm = 0x1068
LBB0_7:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	callq	_of_property_read_bool
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	movl	$4, %edx
	callq	_strncmp
	movl	8(%r14), %ecx
	testq	%rax, %rax
	jne	LBB0_10
## %bb.11:
	movq	_temp_to_batres_tbl_9100@GOTPCREL(%rip), %rax
	testl	%ecx, %ecx
	jg	LBB0_13
	jmp	LBB0_21
LBB0_1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_warn
	movq	%r15, %rdi
	callq	_of_node_put
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_22
LBB0_8:
	movl	$4, 8(%r14)
	movq	_bat_type_ext_thermistor@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r14)
	movq	_ABx500_ADC_THERM_BATTEMP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movq	_temp_to_batres_tbl_ext_thermistor@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$4, %ecx
	jmp	LBB0_14
LBB0_10:
	movq	_temp_to_batres_tbl_thermistor@GOTPCREL(%rip), %rax
	testl	%ecx, %ecx
	jle	LBB0_21
LBB0_13:
	movq	(%rax), %rax
LBB0_14:
	movq	16(%r14), %rdx
	movl	%ecx, %esi
	leaq	-1(%rsi), %rdi
	movl	%esi, %ecx
	andl	$3, %ecx
	cmpq	$3, %rdi
	jae	LBB0_16
## %bb.15:
	xorl	%edi, %edi
	jmp	LBB0_18
LBB0_16:
	andl	$-4, %esi
	leaq	120(%rdx), %rbx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	%rax, -96(%rbx)
	movq	%rax, -64(%rbx)
	movq	%rax, -32(%rbx)
	movq	%rax, (%rbx)
	addq	$4, %rdi
	subq	$-128, %rbx
	cmpq	%rdi, %rsi
	jne	LBB0_17
LBB0_18:
	testq	%rcx, %rcx
	je	LBB0_21
## %bb.19:
	shlq	$5, %rdi
	addq	%rdi, %rdx
	addq	$24, %rdx
	shlq	$5, %rcx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	%rax, (%rdx,%rsi)
	addq	$32, %rsi
	cmpq	%rsi, %rcx
	jne	LBB0_20
LBB0_21:
	movq	%r15, %rdi
	callq	_of_node_put
	xorl	%ebx, %ebx
LBB0_22:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"battery"

L_.str.1:                               ## @.str.1
	.asciz	"battery node or reference missing\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"stericsson,battery-type"

L_.str.3:                               ## @.str.3
	.asciz	"missing property battery-name/type\n"

L_.str.4:                               ## @.str.4
	.asciz	"LION"

	.comm	_BATTERY_UNKNOWN,8,3            ## @BATTERY_UNKNOWN
L_.str.5:                               ## @.str.5
	.asciz	"thermistor-on-batctrl"

	.comm	_temp_to_batres_tbl_9100,8,3    ## @temp_to_batres_tbl_9100
	.comm	_temp_to_batres_tbl_thermistor,8,3 ## @temp_to_batres_tbl_thermistor
	.comm	_bat_type_ext_thermistor,8,3    ## @bat_type_ext_thermistor
	.comm	_ABx500_ADC_THERM_BATTEMP,4,2   ## @ABx500_ADC_THERM_BATTEMP
	.comm	_temp_to_batres_tbl_ext_thermistor,8,3 ## @temp_to_batres_tbl_ext_thermistor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function ab8500_bm_of_probe
lCPI0_0:
	.long	2600                            ; 0xa28
	.long	4150                            ; 0x1036
	.long	95                              ; 0x5f
	.long	520                             ; 0x208
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_ab8500_bm_of_probe
	.p2align	2
_ab8500_bm_of_probe:                    ; @ab8500_bm_of_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x2
	mov	x8, x1
	mov	x22, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x8
	mov	w2, #0
	bl	_of_parse_phandle
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, #0
	bl	_of_get_property
	cbz	x0, LBB0_7
; %bb.2:
	mov	x21, x0
Lloh4:
	adrp	x1, l_.str.4@PAGE
Lloh5:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w2, #4
	bl	_strncmp
	cbnz	x0, LBB0_4
; %bb.3:
	movi.2s	v0, #1
	str	d0, [x20]
	ldr	x8, [x20, #16]
Lloh6:
	adrp	x9, _BATTERY_UNKNOWN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BATTERY_UNKNOWN@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x8, x8, x9, lsl #5
Lloh9:
	adrp	x9, lCPI0_0@PAGE
Lloh10:
	ldr	q0, [x9, lCPI0_0@PAGEOFF]
	str	q0, [x8]
	mov	w9, #4200
	str	w9, [x8, #16]
LBB0_4:
Lloh11:
	adrp	x1, l_.str.5@PAGE
Lloh12:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_of_property_read_bool
	cbz	x0, LBB0_9
; %bb.5:
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	mov	w2, #4
	bl	_strncmp
Lloh15:
	adrp	x8, _temp_to_batres_tbl_9100@GOTPAGE
Lloh16:
	ldr	x8, [x8, _temp_to_batres_tbl_9100@GOTPAGEOFF]
	ldr	w11, [x20, #8]
Lloh17:
	adrp	x9, _temp_to_batres_tbl_thermistor@GOTPAGE
Lloh18:
	ldr	x9, [x9, _temp_to_batres_tbl_thermistor@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	cmp	w11, #1
	b.ge	LBB0_10
	b	LBB0_17
LBB0_6:
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_dev_err
	b	LBB0_8
LBB0_7:
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_dev_warn
	mov	x0, x19
	bl	_of_node_put
LBB0_8:
Lloh23:
	adrp	x8, _EINVAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_18
LBB0_9:
	mov	w11, #4
	str	w11, [x20, #8]
Lloh26:
	adrp	x8, _bat_type_ext_thermistor@GOTPAGE
Lloh27:
	ldr	x8, [x8, _bat_type_ext_thermistor@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
Lloh29:
	adrp	x9, _ABx500_ADC_THERM_BATTEMP@GOTPAGE
Lloh30:
	ldr	x9, [x9, _ABx500_ADC_THERM_BATTEMP@GOTPAGEOFF]
	str	x8, [x20, #16]
Lloh31:
	ldr	w8, [x9]
	str	w8, [x20, #24]
Lloh32:
	adrp	x8, _temp_to_batres_tbl_ext_thermistor@GOTPAGE
Lloh33:
	ldr	x8, [x8, _temp_to_batres_tbl_ext_thermistor@GOTPAGEOFF]
LBB0_10:
	ldr	x8, [x8]
	ldr	x10, [x20, #16]
	mov	w9, w11
	cmp	w11, #4
	b.hs	LBB0_12
; %bb.11:
	mov	x11, #0
	b	LBB0_15
LBB0_12:
	and	x11, x9, #0xfffffffc
	add	x12, x10, #88
	mov	x13, x11
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	stur	x8, [x12, #-64]
	stur	x8, [x12, #-32]
	str	x8, [x12]
	str	x8, [x12, #32]
	add	x12, x12, #128
	subs	x13, x13, #4
	b.ne	LBB0_13
; %bb.14:
	cmp	x11, x9
	b.eq	LBB0_17
LBB0_15:
	add	x10, x10, x11, lsl #5
	add	x10, x10, #24
	sub	x9, x9, x11
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	str	x8, [x10], #32
	subs	x9, x9, #1
	b.ne	LBB0_16
LBB0_17:
	mov	x0, x19
	bl	_of_node_put
	mov	w0, #0
LBB0_18:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdr	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"battery"

l_.str.1:                               ; @.str.1
	.asciz	"battery node or reference missing\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"stericsson,battery-type"

l_.str.3:                               ; @.str.3
	.asciz	"missing property battery-name/type\n"

l_.str.4:                               ; @.str.4
	.asciz	"LION"

	.comm	_BATTERY_UNKNOWN,8,3            ; @BATTERY_UNKNOWN
l_.str.5:                               ; @.str.5
	.asciz	"thermistor-on-batctrl"

	.comm	_temp_to_batres_tbl_9100,8,3    ; @temp_to_batres_tbl_9100
	.comm	_temp_to_batres_tbl_thermistor,8,3 ; @temp_to_batres_tbl_thermistor
	.comm	_bat_type_ext_thermistor,8,3    ; @bat_type_ext_thermistor
	.comm	_ABx500_ADC_THERM_BATTEMP,4,2   ; @ABx500_ADC_THERM_BATTEMP
	.comm	_temp_to_batres_tbl_ext_thermistor,8,3 ; @temp_to_batres_tbl_ext_thermistor
.subsections_via_symbols
