	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_VPD_BASE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-128(%rbp), %r12
	movq	%r12, %rdx
	callq	_t3_seeprom_read
	testl	%eax, %eax
	je	LBB0_1
LBB0_18:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	xorl	%r13d, %r13d
	cmpl	$130, -128(%rbp)
	jne	LBB0_3
## %bb.2:
	movl	(%rbx), %r13d
LBB0_3:
	movq	$-4, %rbx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%r13d, %esi
	movq	%r12, %rdx
	callq	_t3_seeprom_read
	testl	%eax, %eax
	jne	LBB0_18
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	addl	$4, %r13d
	addq	$4, %rbx
	addq	$16, %r12
	cmpq	$83, %rbx
	jbe	LBB0_5
## %bb.6:
	movl	-52(%rbp), %esi
	movl	-48(%rbp), %edi
	leaq	44(%r14), %rcx
	movl	$10, %edx
	callq	_vpdstrtouint
	testl	%eax, %eax
	jne	LBB0_18
## %bb.7:
	movl	-60(%rbp), %esi
	movl	-56(%rbp), %edi
	leaq	40(%r14), %rcx
	movl	$10, %edx
	callq	_vpdstrtouint
	testl	%eax, %eax
	jne	LBB0_18
## %bb.8:
	movl	-68(%rbp), %esi
	movl	-64(%rbp), %edi
	leaq	36(%r14), %rcx
	movl	$10, %edx
	callq	_vpdstrtouint
	testl	%eax, %eax
	jne	LBB0_18
## %bb.9:
	movl	-76(%rbp), %esi
	movl	-72(%rbp), %edi
	leaq	32(%r14), %rcx
	movl	$10, %edx
	callq	_vpdstrtouint
	testl	%eax, %eax
	jne	LBB0_18
## %bb.10:
	movl	-84(%rbp), %esi
	movl	-80(%rbp), %edi
	leaq	28(%r14), %rcx
	movl	$10, %edx
	callq	_vpdstrtouint
	testl	%eax, %eax
	jne	LBB0_18
## %bb.11:
	movl	24(%r14), %edi
	movl	-88(%rbp), %esi
	movq	_SERNUM_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	cmpq	$0, (%r15)
	movq	-96(%rbp), %rax
	movl	(%rax), %edi
	jne	LBB0_14
## %bb.12:
	testl	%edi, %edi
	jne	LBB0_14
## %bb.13:
	movq	%r15, %rdi
	callq	_uses_xaui
	xorl	%ecx, %ecx
	cmpq	$1, %rax
	adcl	$1, %ecx
	movq	(%r14), %rax
	movl	%ecx, (%rax)
	movq	%r15, %rdi
	callq	_uses_xaui
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	leal	2(,%rcx,4), %eax
	movq	(%r14), %rcx
	movl	%eax, 4(%rcx)
LBB0_16:
	movl	8(%r14), %edi
	movl	-124(%rbp), %esi
	movl	$6, %edx
	callq	_hex2bin
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jns	LBB0_18
## %bb.17:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_18
LBB0_14:
	callq	_hex_to_bin
	movq	(%r14), %rcx
	movl	%eax, (%rcx)
	movq	-104(%rbp), %rax
	movl	(%rax), %edi
	callq	_hex_to_bin
	movq	(%r14), %rcx
	movl	%eax, 4(%rcx)
	movl	-112(%rbp), %esi
	movl	-108(%rbp), %edi
	movq	16(%r14), %rcx
	movl	$16, %edx
	callq	_vpdstrtou16
	testl	%eax, %eax
	jne	LBB0_18
## %bb.15:
	movl	-120(%rbp), %esi
	movl	-116(%rbp), %edi
	movq	16(%r14), %rcx
	addq	$4, %rcx
	movl	$16, %edx
	callq	_vpdstrtou16
	testl	%eax, %eax
	jne	LBB0_18
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_VPD_BASE,4,2                   ## @VPD_BASE
	.comm	_SERNUM_LEN,4,2                 ## @SERNUM_LEN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.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, #160
	.cfi_def_cfa_offset 160
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _VPD_BASE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _VPD_BASE@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #8
	bl	_t3_seeprom_read
	cbz	w0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_2:
	ldr	w8, [sp, #8]
	ldr	w9, [x21]
	cmp	w8, #130
	csel	w22, w9, wzr, eq
	mov	x23, #-4
	add	x21, sp, #8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	w8, w22, w23
	add	w1, w8, #4
	mov	x0, x20
	mov	x2, x21
	bl	_t3_seeprom_read
	cbnz	w0, LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #4
	add	x21, x21, #16
	cmp	x23, #83
	b.ls	LBB0_3
; %bb.5:
	ldp	w1, w0, [sp, #84]
	add	x3, x19, #44
	mov	w2, #10
	bl	_vpdstrtouint
	cbnz	w0, LBB0_1
; %bb.6:
	ldp	w1, w0, [sp, #76]
	add	x3, x19, #40
	mov	w2, #10
	bl	_vpdstrtouint
	cbnz	w0, LBB0_1
; %bb.7:
	ldp	w1, w0, [sp, #68]
	add	x3, x19, #36
	mov	w2, #10
	bl	_vpdstrtouint
	cbnz	w0, LBB0_1
; %bb.8:
	ldp	w1, w0, [sp, #60]
	add	x3, x19, #32
	mov	w2, #10
	bl	_vpdstrtouint
	cbnz	w0, LBB0_1
; %bb.9:
	ldp	w1, w0, [sp, #52]
	add	x3, x19, #28
	mov	w2, #10
	bl	_vpdstrtouint
	cbnz	w0, LBB0_1
; %bb.10:
	ldr	w0, [x19, #24]
	ldr	w1, [sp, #48]
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, #40]
	ldr	w0, [x9]
	cbnz	x8, LBB0_15
; %bb.11:
	cbnz	w0, LBB0_15
; %bb.12:
	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]
LBB0_13:
	ldr	w0, [x19, #8]
	ldr	w1, [sp, #12]
	mov	w2, #6
	bl	_hex2bin
	tbnz	w0, #31, LBB0_17
; %bb.14:
	mov	w0, #0
	b	LBB0_1
LBB0_15:
	bl	_hex_to_bin
	ldr	x8, [x19]
	str	w0, [x8]
	ldr	x8, [sp, #32]
	ldr	w0, [x8]
	bl	_hex_to_bin
	ldr	x8, [x19]
	str	w0, [x8, #4]
	ldp	w1, w0, [sp, #24]
	ldr	x3, [x19, #16]
	mov	w2, #16
	bl	_vpdstrtou16
	cbnz	w0, LBB0_1
; %bb.16:
	ldp	w1, w0, [sp, #16]
	ldr	x8, [x19, #16]
	add	x3, x8, #4
	mov	w2, #16
	bl	_vpdstrtou16
	cbnz	w0, LBB0_1
	b	LBB0_13
LBB0_17:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_VPD_BASE,4,2                   ; @VPD_BASE
	.comm	_SERNUM_LEN,4,2                 ; @SERNUM_LEN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_get_vpd_params
.subsections_via_symbols
