	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsp_get_sn
_fsp_get_sn:                            ## @fsp_get_sn
	.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	%rsi, %r15
	movq	%rdi, %r14
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	_FSP_PAGE_0B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_fsp_page_reg_write
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	movq	_FSP_REG_SN0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	movq	%r14, %rdi
	callq	_fsp_reg_read
	testq	%rax, %rax
	jne	LBB0_5
## %bb.2:
	movq	_FSP_REG_SN1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	movq	%r14, %rdi
	callq	_fsp_reg_read
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movq	_FSP_REG_SN2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	movq	%r14, %rdi
	callq	_fsp_reg_read
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movl	-36(%rbp), %eax
	shll	$16, %eax
	movl	-32(%rbp), %ecx
	shll	$8, %ecx
	orl	%eax, %ecx
	orl	-28(%rbp), %ecx
	movl	%ecx, (%r15)
	xorl	%ebx, %ebx
LBB0_5:
	movq	_FSP_PAGE_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_fsp_page_reg_write
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_FSP_PAGE_0B,4,2                ## @FSP_PAGE_0B
	.comm	_FSP_REG_SN0,4,2                ## @FSP_REG_SN0
	.comm	_FSP_REG_SN1,4,2                ## @FSP_REG_SN1
	.comm	_FSP_REG_SN2,4,2                ## @FSP_REG_SN2
	.comm	_FSP_PAGE_DEFAULT,4,2           ## @FSP_PAGE_DEFAULT
	.no_dead_strip	_fsp_get_sn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsp_get_sn
_fsp_get_sn:                            ; @fsp_get_sn
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
Lloh3:
	adrp	x8, _FSP_PAGE_0B@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FSP_PAGE_0B@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_fsp_page_reg_write
	cbnz	x0, LBB0_5
; %bb.1:
Lloh6:
	adrp	x8, _FSP_REG_SN0@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FSP_REG_SN0@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_fsp_reg_read
	cbnz	x0, LBB0_5
; %bb.2:
Lloh9:
	adrp	x8, _FSP_REG_SN1@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FSP_REG_SN1@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_fsp_reg_read
	cbnz	x0, LBB0_5
; %bb.3:
Lloh12:
	adrp	x8, _FSP_REG_SN2@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FSP_REG_SN2@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x2, sp, #4
	mov	x0, x19
	bl	_fsp_reg_read
	cbnz	x0, LBB0_5
; %bb.4:
	mov	w20, #0
	ldp	w9, w8, [sp, #8]
	lsl	w9, w9, #8
	orr	w8, w9, w8, lsl #16
	ldr	w9, [sp, #4]
	orr	w8, w8, w9
	str	w8, [x21]
LBB0_5:
Lloh15:
	adrp	x8, _FSP_PAGE_DEFAULT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FSP_PAGE_DEFAULT@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_fsp_page_reg_write
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_FSP_PAGE_0B,4,2                ; @FSP_PAGE_0B
	.comm	_FSP_REG_SN0,4,2                ; @FSP_REG_SN0
	.comm	_FSP_REG_SN1,4,2                ; @FSP_REG_SN1
	.comm	_FSP_REG_SN2,4,2                ; @FSP_REG_SN2
	.comm	_FSP_PAGE_DEFAULT,4,2           ; @FSP_PAGE_DEFAULT
	.no_dead_strip	_fsp_get_sn
.subsections_via_symbols
