	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function myri10ge_validate_firmware
_myri10ge_validate_firmware:            ## @myri10ge_validate_firmware
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	32(%rdi), %r14
	movl	4(%rsi), %edi
	callq	_ntohl
	movq	_MCP_TYPE_ETH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	(%rbx), %rdi
	movl	(%r15), %esi
	movl	$8, %edx
	callq	_strncpy
	movq	(%rbx), %rax
	movb	$0, 7(%rax)
	movq	(%rbx), %rdi
	leaq	8(%rbx), %rdx
	leaq	16(%rbx), %r15
	leaq	24(%rbx), %r8
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rcx
	callq	_sscanf
	movq	8(%rbx), %rax
	movq	_MXGEFW_VERSION_MAJOR@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_4
## %bb.3:
	movq	(%r15), %rax
	movq	_MXGEFW_VERSION_MINOR@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	cmpq	(%rcx), %rax
	je	LBB0_6
LBB0_4:
	movq	(%rbx), %rdx
	leaq	L_.str.2(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	(%r12), %rdx
	movq	_MXGEFW_VERSION_MINOR@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_5
LBB0_1:
	movl	4(%r15), %edi
	callq	_ntohl
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
LBB0_6:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MCP_TYPE_ETH,8,3               ## @MCP_TYPE_ETH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bad firmware type: 0x%x\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"%d.%d.%d"

	.comm	_MXGEFW_VERSION_MAJOR,8,3       ## @MXGEFW_VERSION_MAJOR
	.comm	_MXGEFW_VERSION_MINOR,8,3       ## @MXGEFW_VERSION_MINOR
L_.str.2:                               ## @.str.2
	.asciz	"Found firmware version %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"Driver needs %d.%d\n"

	.no_dead_strip	_myri10ge_validate_firmware
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function myri10ge_validate_firmware
_myri10ge_validate_firmware:            ; @myri10ge_validate_firmware
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x1
	mov	x20, x0
	ldr	x19, [x0, #32]
	ldr	w0, [x1, #4]
	bl	_ntohl
Lloh0:
	adrp	x8, _MCP_TYPE_ETH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MCP_TYPE_ETH@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.1:
	ldr	x0, [x20]
	ldr	w1, [x21]
	mov	w2, #8
	bl	_strncpy
	ldr	x8, [x20]
	strb	wzr, [x8, #7]
	ldr	x0, [x20]
	add	x2, x20, #8
	add	x21, x20, #16
	add	x4, x20, #24
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x3, x21
	bl	_sscanf
	ldr	x8, [x20, #8]
Lloh5:
	adrp	x22, _MXGEFW_VERSION_MAJOR@GOTPAGE
Lloh6:
	ldr	x22, [x22, _MXGEFW_VERSION_MAJOR@GOTPAGEOFF]
	ldr	x9, [x22]
Lloh7:
	adrp	x23, _MXGEFW_VERSION_MINOR@GOTPAGE
Lloh8:
	ldr	x23, [x23, _MXGEFW_VERSION_MINOR@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	ldr	x8, [x21]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	mov	w0, #0
	b	LBB0_7
LBB0_4:
	ldr	w0, [x21, #4]
	bl	_ntohl
	mov	x2, x0
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:
	ldr	x2, [x20]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x2, [x22]
	ldr	x8, [x23]
	str	x8, [sp]
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_6:
	mov	x0, x19
	bl	_dev_err
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MCP_TYPE_ETH,8,3               ; @MCP_TYPE_ETH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bad firmware type: 0x%x\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"%d.%d.%d"

	.comm	_MXGEFW_VERSION_MAJOR,8,3       ; @MXGEFW_VERSION_MAJOR
	.comm	_MXGEFW_VERSION_MINOR,8,3       ; @MXGEFW_VERSION_MINOR
l_.str.2:                               ; @.str.2
	.asciz	"Found firmware version %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"Driver needs %d.%d\n"

	.no_dead_strip	_myri10ge_validate_firmware
.subsections_via_symbols
