	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_fpga_device_load_check
_mlx5_fpga_device_load_check:           ## @mlx5_fpga_device_load_check
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	8(%rdi), %edi
	leaq	-32(%rbp), %rsi
	callq	_mlx5_fpga_query
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_mlx5_fpga_err
	jmp	LBB0_4
LBB0_2:
	movl	-20(%rbp), %ecx
	movl	%ecx, 4(%r14)
	movl	-24(%rbp), %r8d
	movl	%r8d, (%r14)
	movq	-32(%rbp), %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_mlx5_fpga_dbg
	movq	-32(%rbp), %rax
	movq	_MLX5_FPGA_STATUS_SUCCESS@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movl	(%r14), %edi
	callq	_mlx5_fpga_image_name
	movq	-32(%rbp), %rcx
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_mlx5_fpga_err
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to query status: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Status %u; Admin image %u; Oper image %u\n"

	.comm	_MLX5_FPGA_STATUS_SUCCESS,8,3   ## @MLX5_FPGA_STATUS_SUCCESS
L_.str.2:                               ## @.str.2
	.asciz	"%s image failed to load; status %u\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_mlx5_fpga_device_load_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_fpga_device_load_check
_mlx5_fpga_device_load_check:           ; @mlx5_fpga_device_load_check
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0, #8]
	add	x1, sp, #16
	bl	_mlx5_fpga_query
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_mlx5_fpga_err
	b	LBB0_5
LBB0_2:
	ldp	w4, w3, [sp, #24]
	stp	w4, w3, [x19]
	ldr	x2, [sp, #16]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_mlx5_fpga_dbg
	ldr	x8, [sp, #16]
Lloh4:
	adrp	x9, _MLX5_FPGA_STATUS_SUCCESS@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MLX5_FPGA_STATUS_SUCCESS@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	mov	w20, #0
	b	LBB0_5
LBB0_4:
	ldr	w0, [x19]
	bl	_mlx5_fpga_image_name
	mov	x2, x0
	ldr	x8, [sp, #16]
	str	x8, [sp]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_mlx5_fpga_err
Lloh9:
	adrp	x8, _EIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to query status: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Status %u; Admin image %u; Oper image %u\n"

	.comm	_MLX5_FPGA_STATUS_SUCCESS,8,3   ; @MLX5_FPGA_STATUS_SUCCESS
l_.str.2:                               ; @.str.2
	.asciz	"%s image failed to load; status %u\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_mlx5_fpga_device_load_check
.subsections_via_symbols
