	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_fpga_device_brb
_mlx5_fpga_device_brb:                  ## @mlx5_fpga_device_brb
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r15
	movq	_MLX5_FPGA_CTRL_OPERATION_SANDBOX_BYPASS_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_mlx5_fpga_ctrl_op
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_7
LBB0_2:
	movq	_MLX5_FPGA_CTRL_OPERATION_RESET_SANDBOX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_mlx5_fpga_ctrl_op
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_7
LBB0_4:
	movq	_MLX5_FPGA_CTRL_OPERATION_SANDBOX_BYPASS_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_mlx5_fpga_ctrl_op
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
LBB0_7:
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_mlx5_fpga_err
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_FPGA_CTRL_OPERATION_SANDBOX_BYPASS_ON,4,2 ## @MLX5_FPGA_CTRL_OPERATION_SANDBOX_BYPASS_ON
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to set bypass on: %d\n"

	.comm	_MLX5_FPGA_CTRL_OPERATION_RESET_SANDBOX,4,2 ## @MLX5_FPGA_CTRL_OPERATION_RESET_SANDBOX
L_.str.1:                               ## @.str.1
	.asciz	"Failed to reset SBU: %d\n"

	.comm	_MLX5_FPGA_CTRL_OPERATION_SANDBOX_BYPASS_OFF,4,2 ## @MLX5_FPGA_CTRL_OPERATION_SANDBOX_BYPASS_OFF
L_.str.2:                               ## @.str.2
	.asciz	"Failed to set bypass off: %d\n"

	.no_dead_strip	_mlx5_fpga_device_brb
.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_brb
_mlx5_fpga_device_brb:                  ; @mlx5_fpga_device_brb
	.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	x21, [x0]
Lloh0:
	adrp	x8, _MLX5_FPGA_CTRL_OPERATION_SANDBOX_BYPASS_ON@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX5_FPGA_CTRL_OPERATION_SANDBOX_BYPASS_ON@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_mlx5_fpga_ctrl_op
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_2:
Lloh5:
	adrp	x8, _MLX5_FPGA_CTRL_OPERATION_RESET_SANDBOX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MLX5_FPGA_CTRL_OPERATION_RESET_SANDBOX@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_mlx5_fpga_ctrl_op
	cbz	w0, LBB0_4
; %bb.3:
	mov	x20, x0
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_4:
Lloh10:
	adrp	x8, _MLX5_FPGA_CTRL_OPERATION_SANDBOX_BYPASS_OFF@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MLX5_FPGA_CTRL_OPERATION_SANDBOX_BYPASS_OFF@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_mlx5_fpga_ctrl_op
	mov	x20, x0
	cbz	w0, LBB0_7
; %bb.5:
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_6:
	mov	x0, x19
	mov	x2, x20
	bl	_mlx5_fpga_err
LBB0_7:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_FPGA_CTRL_OPERATION_SANDBOX_BYPASS_ON,4,2 ; @MLX5_FPGA_CTRL_OPERATION_SANDBOX_BYPASS_ON
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to set bypass on: %d\n"

	.comm	_MLX5_FPGA_CTRL_OPERATION_RESET_SANDBOX,4,2 ; @MLX5_FPGA_CTRL_OPERATION_RESET_SANDBOX
l_.str.1:                               ; @.str.1
	.asciz	"Failed to reset SBU: %d\n"

	.comm	_MLX5_FPGA_CTRL_OPERATION_SANDBOX_BYPASS_OFF,4,2 ; @MLX5_FPGA_CTRL_OPERATION_SANDBOX_BYPASS_OFF
l_.str.2:                               ; @.str.2
	.asciz	"Failed to set bypass off: %d\n"

	.no_dead_strip	_mlx5_fpga_device_brb
.subsections_via_symbols
