	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eprom_read_platform_config     ## -- Begin function eprom_read_platform_config
	.p2align	4, 0x90
_eprom_read_platform_config:            ## @eprom_read_platform_config
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_EP_PAGE_DWORDS@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	cmpl	$0, (%r13)
	je	LBB0_1
## %bb.3:
	movq	_CR_EPROM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EPROM_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_acquire_chip_resource
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_ENXIO@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_5:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_SEG_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_EP_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	subq	%rdx, %rsi
	movq	%r13, %rdi
	movq	%r12, %rcx
	callq	_read_length
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.6:
	movslq	(%r14), %rax
	movq	-8(%r12,%rax,8), %rax
	movq	_FOOTER_MAGIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	_read_segment_platform_config
	jmp	LBB0_9
LBB0_8:
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_read_partition_platform_config
LBB0_9:
	movl	%eax, %ebx
LBB0_10:
	movq	_CR_EPROM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_release_chip_resource
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EP_PAGE_DWORDS,4,2             ## @EP_PAGE_DWORDS
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_CR_EPROM,4,2                   ## @CR_EPROM
	.comm	_EPROM_TIMEOUT,4,2              ## @EPROM_TIMEOUT
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_SEG_SIZE,8,3                   ## @SEG_SIZE
	.comm	_EP_PAGE_SIZE,8,3               ## @EP_PAGE_SIZE
	.comm	_FOOTER_MAGIC,8,3               ## @FOOTER_MAGIC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eprom_read_platform_config     ; -- Begin function eprom_read_platform_config
	.p2align	2
_eprom_read_platform_config:            ; @eprom_read_platform_config
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x25, _EP_PAGE_DWORDS@GOTPAGE
Lloh4:
	ldr	x25, [x25, _EP_PAGE_DWORDS@GOTPAGEOFF]
	ldr	w8, [x25]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x22, x9, x8
	mov	sp, x22
	ldr	w8, [x0]
	cbz	w8, LBB0_3
; %bb.1:
Lloh7:
	adrp	x24, _CR_EPROM@GOTPAGE
Lloh8:
	ldr	x24, [x24, _CR_EPROM@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh9:
	adrp	x8, _EPROM_TIMEOUT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EPROM_TIMEOUT@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_acquire_chip_resource
	cbz	w0, LBB0_5
; %bb.2:
Lloh12:
	adrp	x8, _EBUSY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh14:
	adrp	x8, _ENXIO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_11
LBB0_5:
Lloh16:
	adrp	x8, _SEG_SIZE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SEG_SIZE@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
Lloh19:
	adrp	x9, _EP_PAGE_SIZE@GOTPAGE
Lloh20:
	ldr	x9, [x9, _EP_PAGE_SIZE@GOTPAGEOFF]
Lloh21:
	ldr	x2, [x9]
	sub	x1, x8, x2
	mov	x0, x19
	mov	x3, x22
	bl	_read_length
	mov	x23, x0
	cbnz	w0, LBB0_10
; %bb.6:
	ldrsw	x8, [x25]
	add	x8, x22, x8, lsl #3
	ldur	x8, [x8, #-8]
Lloh22:
	adrp	x9, _FOOTER_MAGIC@GOTPAGE
Lloh23:
	ldr	x9, [x9, _FOOTER_MAGIC@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	mov	x0, x19
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	bl	_read_segment_platform_config
	b	LBB0_9
LBB0_8:
	mov	x1, x21
	mov	x2, x20
	bl	_read_partition_platform_config
LBB0_9:
	mov	x23, x0
LBB0_10:
	ldr	w1, [x24]
	mov	x0, x19
	bl	_release_chip_resource
LBB0_11:
	ldur	x8, [x29, #-72]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	mov	x0, x23
	sub	sp, x29, #64
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_EP_PAGE_DWORDS,4,2             ; @EP_PAGE_DWORDS
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_CR_EPROM,4,2                   ; @CR_EPROM
	.comm	_EPROM_TIMEOUT,4,2              ; @EPROM_TIMEOUT
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_SEG_SIZE,8,3                   ; @SEG_SIZE
	.comm	_EP_PAGE_SIZE,8,3               ; @EP_PAGE_SIZE
	.comm	_FOOTER_MAGIC,8,3               ; @FOOTER_MAGIC
.subsections_via_symbols
