	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sbs_get_battery_serial_number
_sbs_get_battery_serial_number:         ## @sbs_get_battery_serial_number
	.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	%rsi, %rbx
	movq	_sbs_data@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_REG_SERIAL_NUMBER@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %esi
	callq	_sbs_read_word_data
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movq	_sbs_serial@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_sprintf
	movl	(%r14), %eax
	movl	%eax, (%rbx)
	xorl	%eax, %eax
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sbs_data,8,3                   ## @sbs_data
	.comm	_REG_SERIAL_NUMBER,8,3          ## @REG_SERIAL_NUMBER
	.comm	_sbs_serial,4,2                 ## @sbs_serial
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%04x"

	.no_dead_strip	_sbs_get_battery_serial_number
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sbs_get_battery_serial_number
_sbs_get_battery_serial_number:         ; @sbs_get_battery_serial_number
	.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, x1
Lloh0:
	adrp	x8, _sbs_data@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sbs_data@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _REG_SERIAL_NUMBER@GOTPAGE
Lloh4:
	ldr	x9, [x9, _REG_SERIAL_NUMBER@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w1, [x8, x9, lsl #2]
	bl	_sbs_read_word_data
	mov	x2, x0
	tbnz	w0, #31, LBB0_2
; %bb.1:
Lloh6:
	adrp	x20, _sbs_serial@GOTPAGE
Lloh7:
	ldr	x20, [x20, _sbs_serial@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_sprintf
	mov	w2, #0
	ldr	w8, [x20]
	str	w8, [x19]
LBB0_2:
	mov	x0, x2
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_sbs_data,8,3                   ; @sbs_data
	.comm	_REG_SERIAL_NUMBER,8,3          ; @REG_SERIAL_NUMBER
	.comm	_sbs_serial,4,2                 ; @sbs_serial
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%04x"

	.no_dead_strip	_sbs_get_battery_serial_number
.subsections_via_symbols
