	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cfi_amdstd_otp_walk
_cfi_amdstd_otp_walk:                   ## @cfi_amdstd_otp_walk
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -104(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movq	(%rdi), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	(%rax), %r13
	movl	(%r13), %eax
	movl	4(%r13), %edx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	$0, (%rcx)
	cmpl	$0, 8(%r13)
	jle	LBB0_25
## %bb.1:
	imull	%edx, %eax
	leal	(%rax,%rax,2), %eax
	cltq
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	xorl	%edx, %edx
	xorl	%edi, %edi
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdx, %rax
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
LBB0_24:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdi
	movslq	8(%r13), %rcx
	addq	$16, %rdx
	movq	%rax, %rsi
	cmpq	%rcx, %rdi
	jge	LBB0_25
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	24(%r13), %rbx
	leaq	(%rbx,%rdx), %r12
	movq	%r13, %rdi
	movq	%r13, %r14
	movq	%rdx, %r13
	callq	_is_m29ew
	testq	%rax, %rax
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, -120(%rbp)                ## 8-byte Spill
	movq	(%rbx,%r13), %r14
	leaq	(%rbx,%r13), %rdi
	addq	$8, %rdi
	movq	%rdi, -128(%rbp)                ## 8-byte Spill
	callq	_mutex_lock
	movq	_FL_CFI_QUERY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-112(%rbp), %r15                ## 8-byte Reload
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_get_chip
	testl	%eax, %eax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_cfi_qry_mode_on
	movq	-136(%rbp), %rax                ## 8-byte Reload
	leaq	(%r14,%rax), %rsi
	movq	%r15, %rdi
	callq	_cfi_read_query
	movl	%eax, %r13d
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	movq	%r12, %rbx
	callq	_cfi_qry_mode_off
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_put_chip
	movq	-128(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rdi
	callq	_mutex_unlock
	testb	$-128, %r13b
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	_FL_LOCKING@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_get_chip
	testl	%eax, %eax
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rcx
	movq	%r15, %rbx
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movl	4(%r13), %r9d
	movl	12(%r13), %esi
	movq	(%rcx), %rdx
	movq	$0, (%rsp)
	movl	$170, %edi
	movq	%rcx, %r15
	movq	%rbx, %rcx
	movq	%r13, %r8
	callq	_cfi_send_gen_cmd
	movl	4(%r13), %r9d
	movl	16(%r13), %esi
	movq	(%r15), %rdx
	movq	$0, (%rsp)
	movl	$85, %edi
	movq	%rbx, %rcx
	movq	%r13, %r8
	callq	_cfi_send_gen_cmd
	movl	4(%r13), %r9d
	movl	12(%r13), %esi
	movq	(%r15), %rdx
	movq	$0, (%rsp)
	movl	$64, %edi
	movq	%rbx, %rcx
	movq	%r13, %r8
	callq	_cfi_send_gen_cmd
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_cfi_read_query
	movl	%eax, %r14d
	notl	%r14d
	movl	$144, %edi
	callq	_CMD
	movq	(%r15), %rdx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_map_write
	xorl	%edi, %edi
	callq	_CMD
	movq	(%r15), %rdx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_map_write
	movq	%r15, %rsi
	movq	(%r15), %rdx
	movq	%rbx, %rdi
	movq	%r15, %rbx
	callq	_put_chip
	movq	%r12, %rdi
	callq	_mutex_unlock
	andl	$1, %r14d
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	$256, %eax                      ## imm = 0x100
	xorl	%r9d, %r9d
	movq	-88(%rbp), %r8                  ## 8-byte Reload
	movq	-120(%rbp), %r15                ## 8-byte Reload
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r9d, %r9d
	xorl	%eax, %eax
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	%r12, %rbx
	movq	-88(%rbp), %r8                  ## 8-byte Reload
	movq	%r14, %r13
	movl	16(%rbp), %r12d
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$256, %r9d                      ## imm = 0x100
	xorl	%eax, %eax
	movq	-88(%rbp), %r8                  ## 8-byte Reload
	movq	-120(%rbp), %r15                ## 8-byte Reload
	movq	-72(%rbp), %r13                 ## 8-byte Reload
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%rbp), %r12d
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	testl	%r12d, %r12d
	cmovneq	%rax, %r9
	testq	%r9, %r9
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	testl	%r12d, %r12d
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	$1, %ecx
	cmovel	%ecx, %eax
	cmpq	$0, -104(%rbp)                  ## 8-byte Folded Reload
	je	LBB0_15
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdx, %rax
	subq	%r9, %rax
	jae	LBB0_23
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	testq	%r15, %r15
	je	LBB0_23
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %r14
	movq	%rbx, %rsi
	movq	%r9, %rbx
	subq	%rdx, %rbx
	cmpq	%rbx, %r15
	cmovbq	%r15, %rbx
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	movq	%rbx, %rcx
	movq	%r8, %r12
	callq	*-104(%rbp)                     ## 8-byte Folded Reload
	testl	%eax, %eax
	js	LBB0_20
## %bb.21:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r12,%rbx,4), %r8
	subq	%rbx, %r15
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	addq	%rbx, (%rax)
	xorl	%eax, %eax
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %r13
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	addq	$-24, %r15
	je	LBB0_16
## %bb.22:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdx, (%r8)
	movq	%r9, 8(%r8)
	movl	%eax, 16(%r8)
	addq	$96, %r8
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	addq	$24, (%rax)
	addq	%rdx, %r9
	movq	%r9, %rax
	jmp	LBB0_23
LBB0_25:
	xorl	%r13d, %r13d
	jmp	LBB0_26
LBB0_5:
	movl	%eax, %r13d
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	callq	_mutex_unlock
	jmp	LBB0_26
LBB0_9:
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_mutex_unlock
	jmp	LBB0_26
LBB0_16:
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_26
LBB0_20:
	movl	%eax, %r13d
LBB0_26:
	movl	%r13d, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FL_CFI_QUERY,4,2               ## @FL_CFI_QUERY
	.comm	_FL_LOCKING,4,2                 ## @FL_LOCKING
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.no_dead_strip	_cfi_amdstd_otp_walk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cfi_amdstd_otp_walk
_cfi_amdstd_otp_walk:                   ; @cfi_amdstd_otp_walk
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	w6, [sp, #28]                   ; 4-byte Folded Spill
	str	x5, [sp, #16]                   ; 8-byte Folded Spill
	ldr	x24, [x0]
	ldr	x25, [x24]
	ldp	w8, w9, [x25]
	str	x3, [sp]                        ; 8-byte Folded Spill
	str	xzr, [x3]
	ldr	w10, [x25, #8]
	cmp	w10, #1
	b.lt	LBB0_20
; %bb.1:
	mov	x28, x4
	mov	x23, x2
	mov	x22, x1
	mov	x19, #0
	mov	x21, #0
	str	wzr, [sp, #24]                  ; 4-byte Folded Spill
	mul	w8, w8, w9
	add	w8, w8, w8, lsl #1
	sxtw	x8, w8
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, x8
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x25, #8]
	add	x19, x19, #16
	cmp	x21, x8
	b.ge	LBB0_20
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x26, [x25, #24]
	add	x27, x26, x19
	mov	x0, x25
	bl	_is_m29ew
	cbz	x0, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	stp	x22, x23, [sp, #32]             ; 16-byte Folded Spill
	mov	x23, x28
	mov	x28, x27
	ldr	x20, [x28], #8
	mov	x0, x28
	bl	_mutex_lock
Lloh0:
	adrp	x8, _FL_CFI_QUERY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FL_CFI_QUERY@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x24
	mov	x1, x27
	mov	x2, x20
	bl	_get_chip
	cbnz	w0, LBB0_21
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x24
	mov	x2, x25
	bl	_cfi_qry_mode_on
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x1, x20, x8
	mov	x0, x24
	bl	_cfi_read_query
	mov	x22, x0
	mov	x0, x20
	mov	x1, x24
	mov	x2, x25
	bl	_cfi_qry_mode_off
	mov	x0, x24
	mov	x1, x27
	mov	x2, x20
	bl	_put_chip
	mov	x0, x28
	bl	_mutex_unlock
	tbnz	w22, #7, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x28
	bl	_mutex_lock
Lloh3:
	adrp	x8, _FL_LOCKING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FL_LOCKING@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x24
	mov	x1, x27
	mov	x2, x20
	bl	_get_chip
	cbnz	w0, LBB0_21
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x25, #12]
	ldr	x2, [x27]
	ldr	w5, [x25, #4]
	mov	w0, #170
	mov	x3, x24
	mov	x4, x25
	mov	x6, #0
	bl	_cfi_send_gen_cmd
	ldr	w1, [x25, #16]
	ldr	x2, [x27]
	ldr	w5, [x25, #4]
	mov	w0, #85
	mov	x3, x24
	mov	x4, x25
	mov	x6, #0
	bl	_cfi_send_gen_cmd
	ldr	w1, [x25, #12]
	ldr	x2, [x27]
	ldr	w5, [x25, #4]
	mov	w0, #64
	mov	x3, x24
	mov	x4, x25
	mov	x6, #0
	bl	_cfi_send_gen_cmd
	mov	x0, x24
	mov	x1, #0
	bl	_cfi_read_query
	mvn	w20, w0
	mov	w0, #144
	bl	_CMD
	mov	x1, x0
	ldr	x2, [x27]
	mov	x0, x24
	bl	_map_write
	mov	w0, #0
	bl	_CMD
	mov	x1, x0
	ldr	x2, [x27]
	mov	x0, x24
	bl	_map_write
	ldr	x2, [x27]
	mov	x0, x24
	mov	x1, x27
	bl	_put_chip
	mov	x0, x28
	bl	_mutex_unlock
	mov	x8, #0
	and	w9, w20, #0x1
	str	w9, [sp, #24]                   ; 4-byte Folded Spill
	mov	w9, #256
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x8, #0
	mov	x9, #0
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x9, #0
	mov	w8, #256
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x28, x23
	ldp	x22, x23, [sp, #32]             ; 16-byte Folded Reload
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w10, [sp, #28]                  ; 4-byte Folded Reload
	cmp	w10, #0
	csel	x5, x8, x9, eq
	cbz	x5, LBB0_3
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #24]                   ; 4-byte Folded Reload
	csinc	w8, w8, wzr, ne
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	cbz	x9, LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	subs	x8, x22, x5
	b.hs	LBB0_2
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	cbz	x23, LBB0_2
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	sub	x8, x5, x22
	cmp	x23, x8
	csel	x20, x23, x8, lo
	mov	x0, x24
	mov	x1, x27
	mov	x2, x22
	mov	x3, x20
	mov	x4, x28
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	blr	x8
	tbnz	w0, #31, LBB0_23
; %bb.17:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, #0
	add	x28, x28, x20, lsl #2
	sub	x23, x23, x20
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	ldr	x8, [x9]
	add	x8, x8, x20
	str	x8, [x9]
	b	LBB0_3
LBB0_18:                                ;   in Loop: Header=BB0_4 Depth=1
	subs	x23, x23, #24
	b.eq	LBB0_22
; %bb.19:                               ;   in Loop: Header=BB0_4 Depth=1
	stp	x22, x5, [x28]
	str	w8, [x28, #16]
	add	x28, x28, #96
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	ldr	x8, [x9]
	add	x8, x8, #24
	str	x8, [x9]
	add	x22, x5, x22
	b	LBB0_3
LBB0_20:
	mov	w22, #0
	b	LBB0_24
LBB0_21:
	mov	x22, x0
	add	x8, x26, x19
	add	x0, x8, #8
	bl	_mutex_unlock
	b	LBB0_24
LBB0_22:
Lloh6:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_24
LBB0_23:
	mov	x22, x0
LBB0_24:
	mov	x0, x22
	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
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_FL_CFI_QUERY,4,2               ; @FL_CFI_QUERY
	.comm	_FL_LOCKING,4,2                 ; @FL_LOCKING
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.no_dead_strip	_cfi_amdstd_otp_walk
.subsections_via_symbols
