	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tomb_mbs                       ## -- Begin function tomb_mbs
	.p2align	4, 0x90
_tomb_mbs:                              ## @tomb_mbs
	.cfi_startproc
## %bb.0:
	movl	%esi, %ecx
	movl	$4, %eax
	cmpl	$16777215, %esi                 ## imm = 0xFFFFFF
	ja	LBB0_3
## %bb.1:
	movl	$3, %eax
	testl	$16711680, %ecx                 ## imm = 0xFF0000
	jne	LBB0_3
## %bb.2:
	movl	%ecx, %eax
	andl	$65280, %eax                    ## imm = 0xFF00
	cmpl	$1, %eax
	movl	$2, %eax
	sbbl	$0, %eax
LBB0_3:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
	leal	-1(%rax), %r8d
	movl	%eax, %r9d
	movl	%eax, %edx
	andl	$3, %r9d
	je	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	decl	%edx
	movzbl	%cl, %esi
	movl	%esi, (%rdi,%rdx,4)
	sarl	$8, %ecx
	decl	%r9d
	jne	LBB0_4
LBB0_5:
	cmpl	$3, %r8d
	jb	LBB0_8
## %bb.6:
	addl	$-2, %edx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	leal	1(%rdx), %r8d
	movzbl	%cl, %esi
	movl	%esi, (%rdi,%r8,4)
	movzbl	%ch, %ebx
	movl	%edx, %esi
	movl	%ebx, (%rdi,%rsi,4)
	movl	%ecx, %esi
	shrl	$16, %esi
	leal	-1(%rdx), %ebx
	movzbl	%sil, %esi
	movl	%esi, (%rdi,%rbx,4)
	leal	-2(%rdx), %esi
	movl	%ecx, %ebx
	shrl	$24, %ebx
	movl	%ebx, (%rdi,%rsi,4)
	sarl	$31, %ecx
	addl	$-4, %edx
	cmpl	$-2, %edx
	jne	LBB0_7
LBB0_8:
	movl	%eax, %ecx
	movl	$0, (%rdi,%rcx,4)
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tomb_mbs                       ; -- Begin function tomb_mbs
	.p2align	2
_tomb_mbs:                              ; @tomb_mbs
	.cfi_startproc
; %bb.0:
	mov	x9, #0
	mov	w8, #4
	tst	w1, #0xff00
	mov	w10, #1
	cinc	w10, w10, ne
	tst	w1, #0xff0000
	mov	w11, #3
	csel	w10, w11, w10, ne
	lsr	w11, w1, #24
	cmp	w11, #0
	csel	w8, w8, w10, ne
	sub	w10, w8, #1
	add	x10, x0, w10, uxtw #2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	and	w11, w1, #0xff
	str	w11, [x10, x9, lsl #2]
	asr	w1, w1, #8
	sub	x9, x9, #1
	cmn	w8, w9
	b.ne	LBB0_1
; %bb.2:
	str	wzr, [x0, x8, lsl #2]
	mov	x0, x8
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
