	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function build_lso_seg
_build_lso_seg:                         ## @build_lso_seg
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movl	(%rsi), %edi
	addl	$4, %edi
	movl	$16, %esi
	callq	_ALIGN
	movl	%eax, %r12d
	movq	_MLX4_IB_CACHE_LINE_SIZE@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	(%rax), %r12d
	seta	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	$64, %edi
	callq	_cpu_to_be32
	movl	%eax, (%r15)
LBB0_2:
	movq	_MLX4_IB_QP_LSO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	testl	%eax, (%r14)
	jne	LBB0_4
## %bb.3:
	movl	4(%r14), %eax
	movl	%r12d, %ecx
	shrl	$4, %ecx
	subl	%ecx, %eax
	xorl	%edi, %edi
	cmpl	%eax, 12(%rbx)
	seta	%dil
LBB0_4:
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_6:
	movl	(%r13), %edi
	movl	(%rbx), %edx
	movl	8(%rbx), %esi
	callq	_memcpy
	movl	4(%rbx), %edi
	shll	$16, %edi
	orl	(%rbx), %edi
	callq	_cpu_to_be32
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%r12d, (%rax)
	xorl	%eax, %eax
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX4_IB_CACHE_LINE_SIZE,4,2    ## @MLX4_IB_CACHE_LINE_SIZE
	.comm	_MLX4_IB_QP_LSO,4,2             ## @MLX4_IB_QP_LSO
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_build_lso_seg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function build_lso_seg
_build_lso_seg:                         ; @build_lso_seg
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x25, x5
	mov	x20, x4
	mov	x19, x3
	mov	x24, x2
	mov	x21, x1
	mov	x23, x0
	ldr	w8, [x1]
	add	w0, w8, #4
	mov	w1, #16
	bl	_ALIGN
	mov	x22, x0
Lloh0:
	adrp	x8, _MLX4_IB_CACHE_LINE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX4_IB_CACHE_LINE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	cset	w0, hi
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #64
	bl	_cpu_to_be32
	str	w0, [x25]
LBB0_2:
	ldr	w8, [x24]
Lloh3:
	adrp	x9, _MLX4_IB_QP_LSO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MLX4_IB_QP_LSO@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
	mov	w0, #0
	bl	_unlikely
	cbz	x0, LBB0_6
LBB0_4:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_5:
	ldr	w8, [x21, #12]
	ldr	w9, [x24, #4]
	sub	w9, w9, w22, lsr #4
	cmp	w8, w9
	cset	w0, hi
	bl	_unlikely
	cbnz	x0, LBB0_4
LBB0_6:
	ldr	w0, [x23]
	ldr	w1, [x21, #8]
	ldr	w2, [x21]
	bl	_memcpy
	ldp	w9, w8, [x21]
	orr	w0, w9, w8, lsl #16
	bl	_cpu_to_be32
	mov	x8, x0
	mov	w0, #0
	str	w8, [x20]
	str	w22, [x19]
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX4_IB_CACHE_LINE_SIZE,4,2    ; @MLX4_IB_CACHE_LINE_SIZE
	.comm	_MLX4_IB_QP_LSO,4,2             ; @MLX4_IB_QP_LSO
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_build_lso_seg
.subsections_via_symbols
