	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mthca_cmd_box
_mthca_cmd_box:                         ## @mthca_cmd_box
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movl	%r9d, %eax
	movl	%r8d, %r9d
	movl	%ecx, %r8d
	movq	16(%rbp), %r10
	movl	%edx, -4(%rbp)
	movq	_MTHCA_CMD_USE_EVENTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rdi)
	je	LBB0_2
## %bb.1:
	leaq	-4(%rbp), %rdx
	xorl	%ecx, %ecx
	pushq	%r10
	pushq	%rax
	callq	_mthca_cmd_wait
	jmp	LBB0_3
LBB0_2:
	leaq	-4(%rbp), %rdx
	xorl	%ecx, %ecx
	pushq	%r10
	pushq	%rax
	callq	_mthca_cmd_poll
LBB0_3:
	addq	$16, %rsp
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MTHCA_CMD_USE_EVENTS,4,2       ## @MTHCA_CMD_USE_EVENTS
	.no_dead_strip	_mthca_cmd_box
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mthca_cmd_box
_mthca_cmd_box:                         ; @mthca_cmd_box
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x7, x6
	mov	x6, x5
	mov	x5, x4
	mov	x4, x3
	stur	w2, [x29, #-4]
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _MTHCA_CMD_USE_EVENTS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MTHCA_CMD_USE_EVENTS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	sub	x2, x29, #4
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	w3, #0
	bl	_mthca_cmd_wait
	b	LBB0_3
LBB0_2:
	mov	w3, #0
	bl	_mthca_cmd_poll
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MTHCA_CMD_USE_EVENTS,4,2       ; @MTHCA_CMD_USE_EVENTS
	.no_dead_strip	_mthca_cmd_box
.subsections_via_symbols
