	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function niu_vpd_parse_version
_niu_vpd_parse_version:                 ## @niu_vpd_parse_version
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %rdi
	callq	_strlen
	cmpl	$5, %eax
	jl	LBB0_8
## %bb.1:
	movl	%eax, %r14d
	movq	8(%r15), %rbx
	addl	$-4, %r14d
	leaq	L_.str(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$6, %edx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	decq	%r14
	jne	LBB0_2
	jmp	LBB0_8
LBB0_4:
	addq	$5, %rbx
	leaq	16(%r15), %rdx
	leaq	24(%r15), %r14
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rcx
	callq	_sscanf
	movq	_probe@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_KERN_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	4(%r15), %ecx
	movq	16(%r15), %r9
	movq	24(%r15), %rax
	movq	%rax, (%rsp)
	leaq	L_.str.2(%rip), %r8
	movq	%r15, %rdi
	callq	_netif_printk
	movq	_NIU_VPD_MIN_MAJOR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, 16(%r15)
	jg	LBB0_7
## %bb.5:
	jne	LBB0_8
## %bb.6:
	movq	(%r14), %rax
	movq	_NIU_VPD_MIN_MINOR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_8
LBB0_7:
	movq	_NIU_FLAGS_VPD_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FCode "

L_.str.1:                               ## @.str.1
	.asciz	"%d.%d"

	.comm	_probe,4,2                      ## @probe
	.comm	_KERN_DEBUG,4,2                 ## @KERN_DEBUG
L_.str.2:                               ## @.str.2
	.asciz	"VPD_SCAN: FCODE major(%d) minor(%d)\n"

	.comm	_NIU_VPD_MIN_MAJOR,8,3          ## @NIU_VPD_MIN_MAJOR
	.comm	_NIU_VPD_MIN_MINOR,8,3          ## @NIU_VPD_MIN_MINOR
	.comm	_NIU_FLAGS_VPD_VALID,4,2        ## @NIU_FLAGS_VPD_VALID
	.no_dead_strip	_niu_vpd_parse_version
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function niu_vpd_parse_version
_niu_vpd_parse_version:                 ; @niu_vpd_parse_version
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
	ldr	x0, [x0, #8]
	bl	_strlen
	cmp	w0, #5
	b.lt	LBB0_8
; %bb.1:
	ldr	x20, [x19, #8]
	sub	w22, w0, #4
Lloh0:
	adrp	x21, l_.str@PAGE
Lloh1:
	add	x21, x21, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	mov	w2, #6
	bl	_strncmp
	cbz	w0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x20, x20, #1
	subs	x22, x22, #1
	b.ne	LBB0_2
	b	LBB0_8
LBB0_4:
	add	x0, x20, #5
	add	x2, x19, #16
	add	x20, x19, #24
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x3, x20
	bl	_sscanf
Lloh4:
	adrp	x8, _probe@GOTPAGE
Lloh5:
	ldr	x8, [x8, _probe@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x8, _KERN_DEBUG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _KERN_DEBUG@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	ldr	w3, [x19, #4]
	ldp	x5, x6, [x19, #16]
Lloh10:
	adrp	x4, l_.str.2@PAGE
Lloh11:
	add	x4, x4, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_netif_printk
	ldr	x8, [x19, #16]
Lloh12:
	adrp	x9, _NIU_VPD_MIN_MAJOR@GOTPAGE
Lloh13:
	ldr	x9, [x9, _NIU_VPD_MIN_MAJOR@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.gt	LBB0_7
; %bb.5:
	b.ne	LBB0_8
; %bb.6:
	ldr	x8, [x20]
Lloh15:
	adrp	x9, _NIU_VPD_MIN_MINOR@GOTPAGE
Lloh16:
	ldr	x9, [x9, _NIU_VPD_MIN_MINOR@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_8
LBB0_7:
Lloh18:
	adrp	x8, _NIU_FLAGS_VPD_VALID@GOTPAGE
Lloh19:
	ldr	x8, [x8, _NIU_FLAGS_VPD_VALID@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FCode "

l_.str.1:                               ; @.str.1
	.asciz	"%d.%d"

	.comm	_probe,4,2                      ; @probe
	.comm	_KERN_DEBUG,4,2                 ; @KERN_DEBUG
l_.str.2:                               ; @.str.2
	.asciz	"VPD_SCAN: FCODE major(%d) minor(%d)\n"

	.comm	_NIU_VPD_MIN_MAJOR,8,3          ; @NIU_VPD_MIN_MAJOR
	.comm	_NIU_VPD_MIN_MINOR,8,3          ; @NIU_VPD_MIN_MINOR
	.comm	_NIU_FLAGS_VPD_VALID,4,2        ; @NIU_FLAGS_VPD_VALID
	.no_dead_strip	_niu_vpd_parse_version
.subsections_via_symbols
