	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_get_block_order
_mlx5_get_block_order:                  ## @mlx5_get_block_order
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edi, %eax
	sarl	$16, %eax
	xorl	%ecx, %ecx
	cmpl	$65536, %edi                    ## imm = 0x10000
	setae	%cl
	cmovbl	%edi, %eax
	shll	$4, %ecx
	movl	%eax, %edx
	sarl	$8, %edx
	leal	8(%rcx), %esi
	testl	$65280, %eax                    ## imm = 0xFF00
	cmovel	%eax, %edx
	cmovel	%ecx, %esi
	movl	%edx, %ecx
	sarl	$4, %ecx
	leal	4(%rsi), %r8d
	testb	$-16, %dl
	cmovel	%edx, %ecx
	cmovel	%esi, %r8d
	movl	%ecx, %eax
	shrl	$2, %eax
	leal	2(%r8), %edx
	testb	$12, %cl
	cmovel	%ecx, %eax
	cmovel	%r8d, %edx
	shrl	%eax
	andl	$1, %eax
	orl	%edx, %eax
	movl	$-1, %edx
	movl	%eax, %ecx
	shll	%cl, %edx
	notl	%edx
	andl	%edi, %edx
	cmpl	$1, %edx
	sbbl	$-1, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mlx5_get_block_order
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_get_block_order
_mlx5_get_block_order:                  ; @mlx5_get_block_order
	.cfi_startproc
; %bb.0:
	tst	w0, #0xffff0000
	cset	w8, ne
	asr	w9, w0, #16
	cmp	w0, #16, lsl #12                ; =65536
	csel	w9, w0, w9, lo
	lsl	w10, w8, #4
	asr	w11, w9, #8
	mov	w12, #8
	bfi	w12, w8, #4, #1
	tst	w9, #0xff00
	csel	w8, w9, w11, eq
	csel	w9, w10, w12, eq
	asr	w10, w8, #4
	orr	w11, w9, #0x4
	tst	w8, #0xf0
	csel	w8, w8, w10, eq
	csel	w9, w9, w11, eq
	lsr	w10, w8, #2
	orr	w11, w9, #0x2
	tst	w8, #0xc
	csel	w8, w8, w10, eq
	csel	w9, w9, w11, eq
	ubfx	w8, w8, #1, #1
	orr	w8, w8, w9
	mov	w9, #-1
	lsl	w9, w9, w8
	bics	wzr, w0, w9
	cinc	w0, w8, ne
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mlx5_get_block_order
.subsections_via_symbols
