	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tpacpi_battery_get_id
_tpacpi_battery_get_id:                 ## @tpacpi_battery_get_id
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	movq	_BAT_PRIMARY@GOTPCREL(%rip), %r14
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	_tp_features@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_5
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rsi
	callq	_pr_warn
	jmp	LBB0_5
LBB0_3:
	movq	_BAT_SECONDARY@GOTPCREL(%rip), %r14
LBB0_5:
	movl	(%r14), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BAT0"

	.comm	_tp_features,8,3                ## @tp_features
	.comm	_BAT_PRIMARY,4,2                ## @BAT_PRIMARY
L_.str.1:                               ## @.str.1
	.asciz	"BAT1"

	.comm	_BAT_SECONDARY,4,2              ## @BAT_SECONDARY
L_.str.2:                               ## @.str.2
	.asciz	"unknown battery %s, assuming primary"

	.no_dead_strip	_tpacpi_battery_get_id
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tpacpi_battery_get_id
_tpacpi_battery_get_id:                 ; @tpacpi_battery_get_id
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
Lloh2:
	adrp	x8, _tp_features@GOTPAGE
Lloh3:
	ldr	x8, [x8, _tp_features@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, #0
	ccmp	x8, #0, #0, ne
	b.ne	LBB0_3
; %bb.1:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	cbz	x0, LBB0_4
; %bb.2:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_pr_warn
LBB0_3:
Lloh9:
	adrp	x8, _BAT_PRIMARY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BAT_PRIMARY@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh11:
	adrp	x8, _BAT_SECONDARY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BAT_SECONDARY@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BAT0"

	.comm	_tp_features,8,3                ; @tp_features
	.comm	_BAT_PRIMARY,4,2                ; @BAT_PRIMARY
l_.str.1:                               ; @.str.1
	.asciz	"BAT1"

	.comm	_BAT_SECONDARY,4,2              ; @BAT_SECONDARY
l_.str.2:                               ; @.str.2
	.asciz	"unknown battery %s, assuming primary"

	.no_dead_strip	_tpacpi_battery_get_id
.subsections_via_symbols
