	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qp_get_mtt_size
_qp_get_mtt_size:                       ## @qp_get_mtt_size
	.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	%rdi, %rbx
	movl	(%rdi), %eax
	movl	4(%rdi), %r12d
	andl	$63, %eax
	addl	$12, %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%r12d, %r15d
	shrl	$3, %r15d
	andl	$15, %r15d
	andl	$7, %r12d
	movl	8(%rdi), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	20(%rdi), %edi
	callq	_be32_to_cpu
	shrl	$24, %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	16(%rbx), %edi
	callq	_be32_to_cpu
	movl	%eax, %r14d
	shrl	$13, %r14d
	movl	16(%rbx), %edi
	callq	_be32_to_cpu
	shrl	$16, %eax
	movzbl	%al, %eax
	movq	_MLX4_QP_ST_XRC@GOTPCREL(%rip), %rcx
	xorl	%r13d, %r13d
	cmpq	%rax, (%rcx)
	sete	%r13b
	movl	12(%rbx), %edi
	callq	_be32_to_cpu
	andl	$4032, %eax                     ## imm = 0xFC0
	addl	%r15d, %r12d
	movl	$16, %esi
	movl	$16, %edx
	movl	%r12d, %ecx
	shll	%cl, %edx
	orl	-48(%rbp), %r14d                ## 4-byte Folded Reload
	andl	$1, %r14d
	xorl	%ecx, %ecx
	orl	%r13d, %r14d
	jne	LBB0_2
## %bb.1:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %edi
	andl	$7, %edi
	shrl	$3, %ecx
	andl	$15, %ecx
	addl	%edi, %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %esi
	movl	%esi, %ecx
LBB0_2:
	addl	%edx, %eax
	addl	%ecx, %eax
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shrl	%cl, %eax
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_roundup_pow_of_two             ## TAILCALL
LBB0_3:
	movl	$1, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX4_QP_ST_XRC,8,3             ## @MLX4_QP_ST_XRC
	.no_dead_strip	_qp_get_mtt_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qp_get_mtt_size
_qp_get_mtt_size:                       ; @qp_get_mtt_size
	.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	x19, x0
	ldp	w8, w9, [x0]
	and	w8, w8, #0x3f
	add	w21, w8, #12
	ubfx	w22, w9, #3, #4
	and	w23, w9, #0x7
	ldr	w24, [x0, #8]
	ldr	w0, [x0, #20]
	bl	_be32_to_cpu
	mov	x20, x0
	ldr	w0, [x19, #16]
	bl	_be32_to_cpu
	lsr	w25, w0, #13
	ldr	w0, [x19, #16]
	bl	_be32_to_cpu
	ubfx	w8, w0, #16, #8
Lloh0:
	adrp	x9, _MLX4_QP_ST_XRC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MLX4_QP_ST_XRC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x9, x8
	cset	w26, eq
	ldr	w0, [x19, #12]
	bl	_be32_to_cpu
	and	w8, w0, #0xfc0
	add	w9, w22, w23
	mov	w10, #16
	lsl	w9, w10, w9
	orr	w11, w25, w20, lsr #24
	and	w11, w11, #0x1
	orr	w11, w11, w26
	and	w12, w24, #0x7
	ubfx	w13, w24, #3, #4
	add	w12, w13, w12
	lsl	w10, w10, w12
	cmp	w11, #0
	csel	w10, wzr, w10, ne
	add	w8, w8, w9
	add	w8, w8, w10
	lsr	w0, w8, w21
	cbz	w0, LBB0_2
; %bb.1:
	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
	b	_roundup_pow_of_two
LBB0_2:
	mov	w0, #1
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX4_QP_ST_XRC,8,3             ; @MLX4_QP_ST_XRC
	.no_dead_strip	_qp_get_mtt_size
.subsections_via_symbols
