	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_sn_string
_get_sn_string:                         ## @get_sn_string
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	movq	_MAX1721X_REG_SER_HEX@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	leaq	-44(%rbp), %rdx
	callq	_regmap_read
	testq	%rax, %rax
	jne	LBB0_1
## %bb.3:
	movl	(%rbx), %edi
	movq	(%r15), %rsi
	incq	%rsi
	leaq	-40(%rbp), %rdx
	callq	_regmap_read
	testq	%rax, %rax
	jne	LBB0_1
## %bb.4:
	movl	(%rbx), %edi
	movq	(%r15), %rsi
	addq	$2, %rsi
	leaq	-36(%rbp), %rdx
	callq	_regmap_read
	testq	%rax, %rax
	je	LBB0_5
LBB0_1:
	movq	_EFAULT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_8
## %bb.7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	-44(%rbp), %ecx
	movl	-40(%rbp), %r8d
	movl	-36(%rbp), %r9d
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	$13, %esi
	callq	_snprintf
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_MAX1721X_REG_SER_HEX,8,3       ## @MAX1721X_REG_SER_HEX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%04X%04X%04X"

	.no_dead_strip	_get_sn_string
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_sn_string
_get_sn_string:                         ; @get_sn_string
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	cbz	x1, LBB0_4
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x0]
Lloh3:
	adrp	x21, _MAX1721X_REG_SER_HEX@GOTPAGE
Lloh4:
	ldr	x21, [x21, _MAX1721X_REG_SER_HEX@GOTPAGEOFF]
	ldr	x1, [x21]
	add	x22, sp, #12
	add	x2, sp, #12
	bl	_regmap_read
	cbnz	x0, LBB0_4
; %bb.2:
	ldr	w0, [x20]
	ldr	x8, [x21]
	add	x1, x8, #1
	add	x2, x22, #4
	bl	_regmap_read
	cbnz	x0, LBB0_4
; %bb.3:
	ldr	w0, [x20]
	ldr	x8, [x21]
	add	x1, x8, #2
	add	x8, sp, #12
	add	x2, x8, #8
	bl	_regmap_read
	cbz	x0, LBB0_7
LBB0_4:
Lloh5:
	adrp	x8, _EFAULT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldr	x8, [sp, #24]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_7:
	ldp	w3, w4, [sp, #12]
	ldr	w5, [sp, #20]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	w1, #13
	bl	_snprintf
	mov	w0, #0
	b	LBB0_5
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_MAX1721X_REG_SER_HEX,8,3       ; @MAX1721X_REG_SER_HEX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%04X%04X%04X"

	.no_dead_strip	_get_sn_string
.subsections_via_symbols
