	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_DMA_wrapper               ## -- Begin function mlx4_DMA_wrapper
	.p2align	4, 0x90
_mlx4_DMA_wrapper:                      ## @mlx4_DMA_wrapper
	.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	%r9, %rbx
	movq	%rdx, %r14
	cmpq	$0, 24(%r9)
	je	LBB0_2
## %bb.1:
	movl	(%rcx), %ecx
	cmpq	$0, 16(%rbx)
	je	LBB0_5
LBB0_4:
	movl	(%r8), %eax
	jmp	LBB0_6
LBB0_2:
	movl	(%r14), %ecx
	cmpq	$0, 16(%rbx)
	jne	LBB0_4
LBB0_5:
	movl	4(%r14), %eax
LBB0_6:
	movl	%eax, -28(%rbp)
	movl	%ecx, %eax
	andl	$-256, %eax
	orl	%esi, %eax
	cmpq	$0, 8(%rbx)
	cmovel	%ecx, %eax
	movl	(%rbx), %ecx
	movl	16(%r14), %r8d
	movl	8(%r14), %r10d
	movl	12(%r14), %r9d
	movq	_MLX4_CMD_TIME_CLASS_A@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r11d
	movq	_MLX4_CMD_NATIVE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r15d
	subq	$8, %rsp
	leaq	-28(%rbp), %rdx
	movl	%eax, %esi
	pushq	%r15
	pushq	%r11
	pushq	%r10
	callq	___mlx4_cmd
	addq	$32, %rsp
	cmpl	$0, (%rbx)
	je	LBB0_8
## %bb.7:
	movl	-28(%rbp), %ecx
	movl	%ecx, 4(%r14)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX4_CMD_TIME_CLASS_A,4,2      ## @MLX4_CMD_TIME_CLASS_A
	.comm	_MLX4_CMD_NATIVE,4,2            ## @MLX4_CMD_NATIVE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_DMA_wrapper               ; -- Begin function mlx4_DMA_wrapper
	.p2align	2
_mlx4_DMA_wrapper:                      ; @mlx4_DMA_wrapper
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x5
	mov	x19, x2
	ldr	x8, [x5, #24]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	w8, [x3]
	ldr	x9, [x20, #16]
	cbz	x9, LBB0_4
LBB0_2:
	ldr	w9, [x4]
	b	LBB0_5
LBB0_3:
	ldr	w8, [x19]
	ldr	x9, [x20, #16]
	cbnz	x9, LBB0_2
LBB0_4:
	ldr	w9, [x19, #4]
LBB0_5:
	str	w9, [sp, #12]
	ldr	x9, [x20, #8]
	and	w10, w8, #0xffffff00
	orr	w10, w10, w1
	cmp	x9, #0
	csel	w1, w8, w10, eq
	ldr	w3, [x20]
	ldp	w5, w4, [x19, #12]
	ldr	w6, [x19, #8]
Lloh0:
	adrp	x8, _MLX4_CMD_TIME_CLASS_A@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX4_CMD_TIME_CLASS_A@GOTPAGEOFF]
Lloh2:
	ldr	w7, [x8]
Lloh3:
	adrp	x8, _MLX4_CMD_NATIVE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLX4_CMD_NATIVE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp]
	add	x2, sp, #12
	bl	___mlx4_cmd
	ldr	w8, [x20]
	cbz	w8, LBB0_7
; %bb.6:
	ldr	w8, [sp, #12]
	str	w8, [x19, #4]
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX4_CMD_TIME_CLASS_A,4,2      ; @MLX4_CMD_TIME_CLASS_A
	.comm	_MLX4_CMD_NATIVE,4,2            ; @MLX4_CMD_NATIVE
.subsections_via_symbols
