	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_vpd_params
_get_vpd_params:                        ## @get_vpd_params
	.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	%r12
	pushq	%rbx
	subq	$64, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	_VPD_BASE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-96(%rbp), %rdx
	callq	_t3_seeprom_read
	testl	%eax, %eax
	jne	LBB0_24
## %bb.1:
	xorl	%r15d, %r15d
	cmpl	$130, -96(%rbp)
	jne	LBB0_3
## %bb.2:
	movl	(%rbx), %r15d
LBB0_3:
	leaq	-96(%rbp), %rdx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_t3_seeprom_read
	testl	%eax, %eax
	jne	LBB0_24
## %bb.4:
	leal	4(%r15), %esi
	leaq	-80(%rbp), %rdx
	movq	%r12, %rdi
	callq	_t3_seeprom_read
	testl	%eax, %eax
	jne	LBB0_24
## %bb.5:
	leal	8(%r15), %esi
	leaq	-64(%rbp), %rdx
	movq	%r12, %rdi
	callq	_t3_seeprom_read
	testl	%eax, %eax
	jne	LBB0_24
## %bb.6:
	leal	12(%r15), %esi
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	callq	_t3_seeprom_read
	testl	%eax, %eax
	jne	LBB0_24
## %bb.7:
	leal	16(%r15), %esi
	leaq	-32(%rbp), %rdx
	movq	%r12, %rdi
	callq	_t3_seeprom_read
	testl	%eax, %eax
	jne	LBB0_24
## %bb.8:
	leal	20(%r15), %esi
	leaq	-16(%rbp), %rdx
	movq	%r12, %rdi
	callq	_t3_seeprom_read
	testl	%eax, %eax
	jne	LBB0_24
## %bb.9:
	leal	24(%r15), %esi
	leaq	(%rbp), %rdx
	movq	%r12, %rdi
	callq	_t3_seeprom_read
	testl	%eax, %eax
	jne	LBB0_24
## %bb.10:
	leal	28(%r15), %esi
	leaq	16(%rbp), %rdx
	movq	%r12, %rdi
	callq	_t3_seeprom_read
	testl	%eax, %eax
	jne	LBB0_24
## %bb.11:
	leal	32(%r15), %esi
	leaq	32(%rbp), %rdx
	movq	%r12, %rdi
	callq	_t3_seeprom_read
	testl	%eax, %eax
	jne	LBB0_24
## %bb.12:
	leal	36(%r15), %esi
	leaq	48(%rbp), %rdx
	movq	%r12, %rdi
	callq	_t3_seeprom_read
	testl	%eax, %eax
	jne	LBB0_24
## %bb.13:
	leal	40(%r15), %esi
	leaq	64(%rbp), %rdx
	movq	%r12, %rdi
	callq	_t3_seeprom_read
	testl	%eax, %eax
	jne	LBB0_24
## %bb.14:
	leal	44(%r15), %esi
	leaq	80(%rbp), %rdx
	movq	%r12, %rdi
	callq	_t3_seeprom_read
	testl	%eax, %eax
	jne	LBB0_24
## %bb.15:
	leal	48(%r15), %esi
	leaq	96(%rbp), %rdx
	movq	%r12, %rdi
	callq	_t3_seeprom_read
	testl	%eax, %eax
	jne	LBB0_24
## %bb.16:
	leal	52(%r15), %esi
	leaq	112(%rbp), %rdx
	movq	%r12, %rdi
	callq	_t3_seeprom_read
	testl	%eax, %eax
	jne	LBB0_24
## %bb.17:
	leal	56(%r15), %esi
	leaq	128(%rbp), %rdx
	movq	%r12, %rdi
	callq	_t3_seeprom_read
	testl	%eax, %eax
	jne	LBB0_24
## %bb.18:
	addl	$60, %r15d
	leaq	144(%rbp), %rdx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_t3_seeprom_read
	testl	%eax, %eax
	jne	LBB0_24
## %bb.19:
	movl	-36(%rbp), %edi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_simple_strtoul
	movq	%rax, 64(%r14)
	movl	-40(%rbp), %edi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_simple_strtoul
	movq	%rax, 56(%r14)
	movl	-44(%rbp), %edi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_simple_strtoul
	movq	%rax, 48(%r14)
	movl	-48(%rbp), %edi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_simple_strtoul
	movq	%rax, 40(%r14)
	movl	-52(%rbp), %edi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_simple_strtoul
	movq	%rax, 32(%r14)
	movl	24(%r14), %edi
	movl	-56(%rbp), %esi
	movq	_SERNUM_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	cmpq	$0, (%r12)
	movq	-64(%rbp), %rax
	movl	(%rax), %edi
	jne	LBB0_22
## %bb.20:
	testl	%edi, %edi
	jne	LBB0_22
## %bb.21:
	movq	%r12, %rdi
	callq	_uses_xaui
	xorl	%ecx, %ecx
	cmpq	$1, %rax
	adcl	$1, %ecx
	movq	(%r14), %rax
	movl	%ecx, (%rax)
	movq	%r12, %rdi
	callq	_uses_xaui
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	leal	2(,%rcx,4), %eax
	movq	(%r14), %rcx
	movl	%eax, 4(%rcx)
	jmp	LBB0_23
LBB0_22:
	callq	_hex_to_bin
	movq	(%r14), %rcx
	movl	%eax, (%rcx)
	movq	-72(%rbp), %rax
	movl	(%rax), %edi
	callq	_hex_to_bin
	movq	(%r14), %rcx
	movl	%eax, 4(%rcx)
	movl	-76(%rbp), %edi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_simple_strtoul
	movq	16(%r14), %rcx
	movq	%rax, (%rcx)
	movl	-80(%rbp), %edi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_simple_strtoul
	movq	16(%r14), %rcx
	movq	%rax, 8(%rcx)
LBB0_23:
	movq	-88(%rbp), %rax
	movl	(%rax), %edi
	callq	_hex_to_bin
	movl	%eax, %ebx
	shll	$4, %ebx
	movq	-88(%rbp), %rax
	movl	4(%rax), %edi
	callq	_hex_to_bin
	addl	%ebx, %eax
	movq	8(%r14), %rcx
	movl	%eax, (%rcx)
	movq	-88(%rbp), %rax
	movl	8(%rax), %edi
	callq	_hex_to_bin
	movl	%eax, %ebx
	shll	$4, %ebx
	movq	-88(%rbp), %rax
	movl	12(%rax), %edi
	callq	_hex_to_bin
	addl	%ebx, %eax
	movq	8(%r14), %rcx
	movl	%eax, 4(%rcx)
	movq	-88(%rbp), %rax
	movl	16(%rax), %edi
	callq	_hex_to_bin
	movl	%eax, %ebx
	shll	$4, %ebx
	movq	-88(%rbp), %rax
	movl	20(%rax), %edi
	callq	_hex_to_bin
	addl	%ebx, %eax
	movq	8(%r14), %rcx
	movl	%eax, 8(%rcx)
	movq	-88(%rbp), %rax
	movl	24(%rax), %edi
	callq	_hex_to_bin
	movl	%eax, %ebx
	shll	$4, %ebx
	movq	-88(%rbp), %rax
	movl	28(%rax), %edi
	callq	_hex_to_bin
	addl	%ebx, %eax
	movq	8(%r14), %rcx
	movl	%eax, 12(%rcx)
	movq	-88(%rbp), %rax
	movl	32(%rax), %edi
	callq	_hex_to_bin
	movl	%eax, %ebx
	shll	$4, %ebx
	movq	-88(%rbp), %rax
	movl	36(%rax), %edi
	callq	_hex_to_bin
	addl	%ebx, %eax
	movq	8(%r14), %rcx
	movl	%eax, 16(%rcx)
	movq	-88(%rbp), %rax
	movl	40(%rax), %edi
	callq	_hex_to_bin
	movl	%eax, %ebx
	shll	$4, %ebx
	movq	-88(%rbp), %rax
	movl	44(%rax), %edi
	callq	_hex_to_bin
	addl	%ebx, %eax
	movq	8(%r14), %rcx
	movl	%eax, 20(%rcx)
	xorl	%eax, %eax
LBB0_24:
	addq	$64, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VPD_BASE,4,2                   ## @VPD_BASE
	.comm	_SERNUM_LEN,4,2                 ## @SERNUM_LEN
	.no_dead_strip	_get_vpd_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_vpd_params
_get_vpd_params:                        ; @get_vpd_params
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _VPD_BASE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _VPD_BASE@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x2, sp
	bl	_t3_seeprom_read
	cbnz	w0, LBB0_22
; %bb.1:
	ldr	w8, [sp]
	ldr	w9, [x21]
	cmp	w8, #130
	csel	w21, w9, wzr, eq
	mov	x22, sp
	mov	x2, sp
	mov	x0, x20
	mov	x1, x21
	bl	_t3_seeprom_read
	cbnz	w0, LBB0_22
; %bb.2:
	add	w1, w21, #4
	add	x2, x22, #16
	mov	x0, x20
	bl	_t3_seeprom_read
	cbnz	w0, LBB0_22
; %bb.3:
	add	w1, w21, #8
	mov	x22, sp
	add	x2, x22, #32
	mov	x0, x20
	bl	_t3_seeprom_read
	cbnz	w0, LBB0_22
; %bb.4:
	add	w1, w21, #12
	add	x2, x22, #48
	mov	x0, x20
	bl	_t3_seeprom_read
	cbnz	w0, LBB0_22
; %bb.5:
	add	w1, w21, #16
	mov	x22, sp
	add	x2, x22, #64
	mov	x0, x20
	bl	_t3_seeprom_read
	cbnz	w0, LBB0_22
; %bb.6:
	add	w1, w21, #20
	add	x2, x22, #80
	mov	x0, x20
	bl	_t3_seeprom_read
	cbnz	w0, LBB0_22
; %bb.7:
	add	w1, w21, #24
	mov	x22, sp
	add	x2, x22, #96
	mov	x0, x20
	bl	_t3_seeprom_read
	cbnz	w0, LBB0_22
; %bb.8:
	add	w1, w21, #28
	add	x2, x22, #112
	mov	x0, x20
	bl	_t3_seeprom_read
	cbnz	w0, LBB0_22
; %bb.9:
	add	w1, w21, #32
	mov	x22, sp
	add	x2, x22, #128
	mov	x0, x20
	bl	_t3_seeprom_read
	cbnz	w0, LBB0_22
; %bb.10:
	add	w1, w21, #36
	add	x2, x22, #144
	mov	x0, x20
	bl	_t3_seeprom_read
	cbnz	w0, LBB0_22
; %bb.11:
	add	w1, w21, #40
	mov	x22, sp
	add	x2, x22, #160
	mov	x0, x20
	bl	_t3_seeprom_read
	cbnz	w0, LBB0_22
; %bb.12:
	add	w1, w21, #44
	add	x2, x22, #176
	mov	x0, x20
	bl	_t3_seeprom_read
	cbnz	w0, LBB0_22
; %bb.13:
	add	w1, w21, #48
	mov	x22, sp
	add	x2, x22, #192
	mov	x0, x20
	bl	_t3_seeprom_read
	cbnz	w0, LBB0_22
; %bb.14:
	add	w1, w21, #52
	add	x2, x22, #208
	mov	x0, x20
	bl	_t3_seeprom_read
	cbnz	w0, LBB0_22
; %bb.15:
	add	w1, w21, #56
	mov	x22, sp
	add	x2, x22, #224
	mov	x0, x20
	bl	_t3_seeprom_read
	cbnz	w0, LBB0_22
; %bb.16:
	add	w1, w21, #60
	add	x2, x22, #240
	mov	x0, x20
	bl	_t3_seeprom_read
	cbnz	w0, LBB0_22
; %bb.17:
	ldr	w0, [sp, #60]
	mov	x1, #0
	mov	w2, #10
	bl	_simple_strtoul
	str	x0, [x19, #64]
	ldr	w0, [sp, #56]
	mov	x1, #0
	mov	w2, #10
	bl	_simple_strtoul
	str	x0, [x19, #56]
	ldr	w0, [sp, #52]
	mov	x1, #0
	mov	w2, #10
	bl	_simple_strtoul
	str	x0, [x19, #48]
	ldr	w0, [sp, #48]
	mov	x1, #0
	mov	w2, #10
	bl	_simple_strtoul
	str	x0, [x19, #40]
	ldr	w0, [sp, #44]
	mov	x1, #0
	mov	w2, #10
	bl	_simple_strtoul
	str	x0, [x19, #32]
	ldr	w0, [x19, #24]
	ldr	w1, [sp, #40]
Lloh2:
	adrp	x8, _SERNUM_LEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SERNUM_LEN@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	_memcpy
	ldr	x8, [x20]
	ldr	x9, [sp, #32]
	ldr	w0, [x9]
	cbnz	x8, LBB0_20
; %bb.18:
	cbnz	w0, LBB0_20
; %bb.19:
	mov	x0, x20
	bl	_uses_xaui
	cmp	x0, #0
	mov	w8, #1
	cinc	w8, w8, eq
	ldr	x9, [x19]
	str	w8, [x9]
	mov	x0, x20
	bl	_uses_xaui
	cmp	x0, #0
	mov	w8, #6
	mov	w9, #2
	csel	w8, w9, w8, eq
	ldr	x9, [x19]
	str	w8, [x9, #4]
	b	LBB0_21
LBB0_20:
	bl	_hex_to_bin
	ldr	x8, [x19]
	str	w0, [x8]
	ldr	x8, [sp, #24]
	ldr	w0, [x8]
	bl	_hex_to_bin
	ldr	x8, [x19]
	str	w0, [x8, #4]
	ldr	w0, [sp, #20]
	mov	x1, #0
	mov	w2, #16
	bl	_simple_strtoul
	ldr	x8, [x19, #16]
	str	x0, [x8]
	ldr	w0, [sp, #16]
	mov	x1, #0
	mov	w2, #16
	bl	_simple_strtoul
	ldr	x8, [x19, #16]
	str	x0, [x8, #8]
LBB0_21:
	ldr	x8, [sp, #8]
	ldr	w0, [x8]
	bl	_hex_to_bin
	mov	x20, x0
	ldr	x8, [sp, #8]
	ldr	w0, [x8, #4]
	bl	_hex_to_bin
	add	w8, w0, w20, lsl #4
	ldr	x9, [x19, #8]
	str	w8, [x9]
	ldr	x8, [sp, #8]
	ldr	w0, [x8, #8]
	bl	_hex_to_bin
	mov	x20, x0
	ldr	x8, [sp, #8]
	ldr	w0, [x8, #12]
	bl	_hex_to_bin
	add	w8, w0, w20, lsl #4
	ldr	x9, [x19, #8]
	str	w8, [x9, #4]
	ldr	x8, [sp, #8]
	ldr	w0, [x8, #16]
	bl	_hex_to_bin
	mov	x20, x0
	ldr	x8, [sp, #8]
	ldr	w0, [x8, #20]
	bl	_hex_to_bin
	add	w8, w0, w20, lsl #4
	ldr	x9, [x19, #8]
	str	w8, [x9, #8]
	ldr	x8, [sp, #8]
	ldr	w0, [x8, #24]
	bl	_hex_to_bin
	mov	x20, x0
	ldr	x8, [sp, #8]
	ldr	w0, [x8, #28]
	bl	_hex_to_bin
	add	w8, w0, w20, lsl #4
	ldr	x9, [x19, #8]
	str	w8, [x9, #12]
	ldr	x8, [sp, #8]
	ldr	w0, [x8, #32]
	bl	_hex_to_bin
	mov	x20, x0
	ldr	x8, [sp, #8]
	ldr	w0, [x8, #36]
	bl	_hex_to_bin
	add	w8, w0, w20, lsl #4
	ldr	x9, [x19, #8]
	str	w8, [x9, #16]
	ldr	x8, [sp, #8]
	ldr	w0, [x8, #40]
	bl	_hex_to_bin
	mov	x20, x0
	ldr	x8, [sp, #8]
	ldr	w0, [x8, #44]
	bl	_hex_to_bin
	mov	x8, x0
	mov	w0, #0
	add	w8, w8, w20, lsl #4
	ldr	x9, [x19, #8]
	str	w8, [x9, #20]
LBB0_22:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_VPD_BASE,4,2                   ; @VPD_BASE
	.comm	_SERNUM_LEN,4,2                 ; @SERNUM_LEN
	.no_dead_strip	_get_vpd_params
.subsections_via_symbols
