	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_en_bounce_to_desc
_mlx4_en_bounce_to_desc:                ## @mlx4_en_bounce_to_desc
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rsi, %r15
	movl	(%rsi), %r13d
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	subl	%edx, %r13d
	movq	_LOG_TXBB_SIZE@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r13d
	subl	%r13d, %ebx
	addl	$-4, %ebx
	js	LBB0_5
## %bb.1:
	movl	%r13d, %r12d
	movq	_TXBB_SIZE@GOTPCREL(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r15), %rax
	movq	16(%r15), %rcx
	movl	%ebx, %edx
	leaq	(%rdx,%r12), %rsi
	movl	(%rcx,%rsi), %ecx
	movl	%ecx, (%rax,%rdx,4)
	addl	$-4, %ebx
	js	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %eax
	decl	%eax
	testl	%ebx, %eax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_wmb
	jmp	LBB0_4
LBB0_5:
	addl	$-4, %r13d
	cmpl	$3, %r13d
	jle	LBB0_10
## %bb.6:
	movq	_TXBB_SIZE@GOTPCREL(%rip), %r14
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	_LOG_TXBB_SIZE@GOTPCREL(%rip), %r12
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r15), %rax
	movq	16(%r15), %rcx
	movl	%r13d, %edx
	movl	(%rcx,%rdx), %esi
	movzbl	(%r12), %ecx
	movl	%ebx, %edi
	shll	%cl, %edi
	leaq	(%rax,%rdi,4), %rcx
	movl	%esi, (%rcx,%rdx,4)
	addl	$-4, %r13d
	cmpl	$3, %r13d
	jle	LBB0_11
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %eax
	decl	%eax
	testl	%r13d, %eax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	xorl	%eax, %eax
	callq	_wmb
	jmp	LBB0_9
LBB0_10:
	movq	8(%r15), %rax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	_LOG_TXBB_SIZE@GOTPCREL(%rip), %r12
LBB0_11:
	movb	(%r12), %cl
	shll	%cl, %ebx
	leaq	(%rax,%rbx,4), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LOG_TXBB_SIZE,4,2              ## @LOG_TXBB_SIZE
	.comm	_TXBB_SIZE,4,2                  ## @TXBB_SIZE
	.no_dead_strip	_mlx4_en_bounce_to_desc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_en_bounce_to_desc
_mlx4_en_bounce_to_desc:                ; @mlx4_en_bounce_to_desc
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x1
	ldr	w8, [x1]
	sub	w8, w8, w2
Lloh0:
	adrp	x21, _LOG_TXBB_SIZE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _LOG_TXBB_SIZE@GOTPAGEOFF]
	ldr	w9, [x21]
	lsl	w22, w8, w9
	sub	w8, w3, w22
	subs	w23, w8, #4
	b.mi	LBB0_5
; %bb.1:
Lloh2:
	adrp	x24, _TXBB_SIZE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _TXBB_SIZE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x22, w23, uxtw
	ldp	x10, x9, [x20, #8]
	ldr	w8, [x8, x9]
	str	w8, [x10, w23, uxtw #2]
	subs	w23, w23, #4
	b.mi	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24]
	sub	w8, w8, #1
	tst	w8, w23
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_wmb
	b	LBB0_2
LBB0_5:
	sub	w22, w22, #4
	cmp	w22, #3
	b.le	LBB0_10
; %bb.6:
Lloh4:
	adrp	x23, _TXBB_SIZE@GOTPAGE
Lloh5:
	ldr	x23, [x23, _TXBB_SIZE@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldp	x8, x9, [x20, #8]
	ldr	w9, [x9, w22, uxtw]
	ldr	w10, [x21]
	lsl	w10, w19, w10
	add	x10, x8, w10, uxtw #2
	str	w9, [x10, w22, uxtw #2]
	sub	w22, w22, #4
	cmp	w22, #3
	b.le	LBB0_11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23]
	sub	w8, w8, #1
	tst	w8, w22
	b.ne	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	bl	_wmb
	b	LBB0_7
LBB0_10:
	ldr	x8, [x20, #8]
LBB0_11:
	ldr	w9, [x21]
	lsl	w9, w19, w9
	add	x0, x8, w9, uxtw #2
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_LOG_TXBB_SIZE,4,2              ; @LOG_TXBB_SIZE
	.comm	_TXBB_SIZE,4,2                  ; @TXBB_SIZE
	.no_dead_strip	_mlx4_en_bounce_to_desc
.subsections_via_symbols
