	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efuse_pg_packet_read
_efuse_pg_packet_read:                  ## @efuse_pg_packet_read
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PG_STATE_HEADER@GOTPCREL(%rip), %r14
	movl	(%r14), %r13d
	movl	%r13d, -84(%rbp)
	movq	$0, -96(%rbp)
	xorl	%eax, %eax
	cmpl	$15, %esi
	jg	LBB0_21
## %bb.1:
	movq	%rdx, %rcx
	testq	%rdx, %rdx
	je	LBB0_21
## %bb.2:
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	_PGPKT_DATA_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	shll	$2, %edx
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	movq	%rcx, %rdi
	movl	$255, %esi
	callq	_memset
	movl	(%r15), %edx
	shll	$2, %edx
	leaq	-80(%rbp), %rdi
	movl	$255, %esi
	callq	_memset
	movq	_EFUSE_MAX_SIZE@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	jle	LBB0_12
## %bb.3:
	xorl	%esi, %esi
	testl	%r13d, (%r14)
	je	LBB0_8
	.p2align	4, 0x90
LBB0_5:
	movq	%rbx, %rdi
	leaq	-100(%rbp), %rdx
	callq	_efuse_one_byte_read
	testq	%rax, %rax
	je	LBB0_12
## %bb.6:
	movl	-100(%rbp), %edx
	cmpl	$255, %edx
	je	LBB0_12
## %bb.7:
	movq	%rbx, %rdi
	leaq	-96(%rbp), %rsi
	movl	%r12d, %ecx
	leaq	-80(%rbp), %r8
	leaq	-84(%rbp), %r9
	callq	_efuse_read_data_case1
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_8:
	movq	_PG_STATE_DATA@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_10
## %bb.9:
	xorl	%edi, %edi
	leaq	-80(%rbp), %rsi
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	callq	_efuse_word_enable_data_read
	incq	-96(%rbp)
	movl	(%r14), %eax
	movl	%eax, -84(%rbp)
LBB0_10:
	movq	-96(%rbp), %rsi
	cmpq	(%r15), %rsi
	jge	LBB0_12
## %bb.11:
	movl	-84(%rbp), %r13d
	testl	%r13d, (%r14)
	jne	LBB0_5
	jmp	LBB0_8
LBB0_12:
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	cmpl	$255, (%rcx)
	movl	$0, %eax
	jne	LBB0_20
## %bb.13:
	cmpl	$255, 4(%rcx)
	jne	LBB0_20
## %bb.14:
	cmpl	$255, 8(%rcx)
	jne	LBB0_20
## %bb.15:
	cmpl	$255, 12(%rcx)
	jne	LBB0_20
## %bb.16:
	cmpl	$255, 16(%rcx)
	jne	LBB0_20
## %bb.17:
	cmpl	$255, 20(%rcx)
	jne	LBB0_20
## %bb.18:
	cmpl	$255, 24(%rcx)
	jne	LBB0_20
## %bb.19:
	cmpl	$255, 28(%rcx)
	je	LBB0_21
LBB0_20:
	movl	$1, %eax
LBB0_21:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_23
## %bb.22:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PG_STATE_HEADER,4,2            ## @PG_STATE_HEADER
	.comm	_PGPKT_DATA_SIZE,4,2            ## @PGPKT_DATA_SIZE
	.comm	_EFUSE_MAX_SIZE,8,3             ## @EFUSE_MAX_SIZE
	.comm	_PG_STATE_DATA,4,2              ## @PG_STATE_DATA
	.no_dead_strip	_efuse_pg_packet_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efuse_pg_packet_read
_efuse_pg_packet_read:                  ; @efuse_pg_packet_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x21, x0
	mov	w0, #0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
Lloh3:
	adrp	x22, _PG_STATE_HEADER@GOTPAGE
Lloh4:
	ldr	x22, [x22, _PG_STATE_HEADER@GOTPAGEOFF]
	ldr	w25, [x22]
	str	w25, [sp, #20]
	str	xzr, [sp, #8]
	cmp	w1, #15
	b.gt	LBB0_22
; %bb.1:
	mov	x19, x2
	cbz	x2, LBB0_22
; %bb.2:
	mov	x20, x1
Lloh5:
	adrp	x23, _PGPKT_DATA_SIZE@GOTPAGE
Lloh6:
	ldr	x23, [x23, _PGPKT_DATA_SIZE@GOTPAGEOFF]
	ldr	w8, [x23]
	lsl	w2, w8, #2
	mov	x0, x19
	mov	w1, #255
	bl	_memset
	ldr	w8, [x23]
	lsl	w2, w8, #2
	add	x0, sp, #24
	mov	w1, #255
	bl	_memset
Lloh7:
	adrp	x23, _EFUSE_MAX_SIZE@GOTPAGE
Lloh8:
	ldr	x23, [x23, _EFUSE_MAX_SIZE@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x8, #1
	b.lt	LBB0_12
; %bb.3:
	mov	x1, #0
Lloh9:
	adrp	x24, _PG_STATE_DATA@GOTPAGE
Lloh10:
	ldr	x24, [x24, _PG_STATE_DATA@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22]
	tst	w8, w25
	b.eq	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x2, sp, #16
	mov	x0, x21
	bl	_efuse_one_byte_read
	cbz	x0, LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [sp, #16]
	cmp	w2, #255
	b.eq	LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x1, sp, #8
	add	x4, sp, #24
	add	x5, sp, #20
	mov	x0, x21
	mov	x3, x20
	bl	_efuse_read_data_case1
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x24]
	tst	w8, w25
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x1, sp, #24
	mov	w0, #0
	mov	x2, x19
	bl	_efuse_word_enable_data_read
	ldr	x8, [sp, #8]
	add	x8, x8, #1
	str	x8, [sp, #8]
	ldr	w8, [x22]
	str	w8, [sp, #20]
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [sp, #8]
	ldr	x8, [x23]
	cmp	x1, x8
	b.ge	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w25, [sp, #20]
	b	LBB0_4
LBB0_12:
	ldr	w8, [x19]
	cmp	w8, #255
	b.ne	LBB0_21
; %bb.13:
	ldr	w8, [x19, #4]
	cmp	w8, #255
	b.ne	LBB0_21
; %bb.14:
	ldr	w8, [x19, #8]
	cmp	w8, #255
	b.ne	LBB0_21
; %bb.15:
	ldr	w8, [x19, #12]
	cmp	w8, #255
	b.ne	LBB0_21
; %bb.16:
	ldr	w8, [x19, #16]
	cmp	w8, #255
	b.ne	LBB0_21
; %bb.17:
	ldr	w8, [x19, #20]
	cmp	w8, #255
	b.ne	LBB0_21
; %bb.18:
	ldr	w8, [x19, #24]
	cmp	w8, #255
	b.ne	LBB0_21
; %bb.19:
	ldr	w8, [x19, #28]
	cmp	w8, #255
	b.ne	LBB0_21
; %bb.20:
	mov	w0, #0
	b	LBB0_22
LBB0_21:
	mov	w0, #1
LBB0_22:
	ldr	x8, [sp, #56]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_24
; %bb.23:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_24:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_PG_STATE_HEADER,4,2            ; @PG_STATE_HEADER
	.comm	_PGPKT_DATA_SIZE,4,2            ; @PGPKT_DATA_SIZE
	.comm	_EFUSE_MAX_SIZE,8,3             ; @EFUSE_MAX_SIZE
	.comm	_PG_STATE_DATA,4,2              ; @PG_STATE_DATA
	.no_dead_strip	_efuse_pg_packet_read
.subsections_via_symbols
