	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function falcon_parse_firmware_image
_falcon_parse_firmware_image:           ## @falcon_parse_firmware_image
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	32(%rdi), %rax
	movq	(%rax), %rcx
	movq	_PCI_VENDOR_ID_NVIDIA@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_1
## %bb.3:
	cmpl	$1, 8(%rax)
	jne	LBB0_4
## %bb.5:
	movq	16(%rax), %rcx
	cmpq	(%rdi), %rcx
	jle	LBB0_7
## %bb.6:
	movl	40(%rdi), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_2
LBB0_1:
	movl	40(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	movl	40(%rdi), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_7:
	movslq	24(%rax), %rcx
	movl	32(%rax), %edx
	movl	%edx, 28(%rdi)
	movl	28(%rax), %edx
	movl	%edx, 24(%rdi)
	shlq	$4, %rcx
	movups	(%rax,%rcx), %xmm0
	movups	%xmm0, 8(%rdi)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_VENDOR_ID_NVIDIA,8,3       ## @PCI_VENDOR_ID_NVIDIA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"incorrect firmware magic\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"unsupported firmware version\n"

L_.str.2:                               ## @.str.2
	.asciz	"firmware image size inconsistency\n"

	.no_dead_strip	_falcon_parse_firmware_image
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function falcon_parse_firmware_image
_falcon_parse_firmware_image:           ; @falcon_parse_firmware_image
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x9, [x0, #32]
	ldr	x8, [x9]
Lloh0:
	adrp	x10, _PCI_VENDOR_ID_NVIDIA@GOTPAGE
Lloh1:
	ldr	x10, [x10, _PCI_VENDOR_ID_NVIDIA@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x8, x10
	b.ne	LBB0_4
; %bb.1:
	ldr	w8, [x9, #8]
	cmp	w8, #1
	b.ne	LBB0_5
; %bb.2:
	ldr	x8, [x9, #16]
	ldr	x10, [x0]
	cmp	x8, x10
	b.le	LBB0_8
; %bb.3:
	ldr	w0, [x0, #40]
Lloh3:
	adrp	x1, l_.str.2@PAGE
Lloh4:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_4:
	ldr	w0, [x0, #40]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:
	ldr	w0, [x0, #40]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	bl	_dev_err
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w8, w8
LBB0_7:
	mov	x0, x8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	w8, #0
	ldrsw	x10, [x9, #24]
	ldur	d0, [x9, #28]
	str	d0, [x0, #24]
	ldr	q0, [x9, x10, lsl #4]
	stur	q0, [x0, #8]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_VENDOR_ID_NVIDIA,8,3       ; @PCI_VENDOR_ID_NVIDIA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"incorrect firmware magic\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"unsupported firmware version\n"

l_.str.2:                               ; @.str.2
	.asciz	"firmware image size inconsistency\n"

	.no_dead_strip	_falcon_parse_firmware_image
.subsections_via_symbols
