	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vc4_ctm_s31_32_to_s0_9
_vc4_ctm_s31_32_to_s0_9:                ## @vc4_ctm_s31_32_to_s0_9
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	movl	$63, %edi
	callq	_BIT_ULL
	testl	%ebx, %eax
	je	LBB0_1
## %bb.2:
	movl	$9, %edi
	callq	_BIT
	movl	%eax, %r14d
	jmp	LBB0_3
LBB0_1:
	xorl	%r14d, %r14d
LBB0_3:
	movl	$62, %edi
	movl	$32, %esi
	callq	_GENMASK_ULL
	testl	%ebx, %eax
	jle	LBB0_5
## %bb.4:
	movl	$8, %edi
	xorl	%esi, %esi
	callq	_GENMASK
	jmp	LBB0_6
LBB0_5:
	sarl	$23, %ebx
	movl	$8, %edi
	xorl	%esi, %esi
	callq	_GENMASK
	andl	%ebx, %eax
LBB0_6:
	orl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_vc4_ctm_s31_32_to_s0_9
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vc4_ctm_s31_32_to_s0_9
_vc4_ctm_s31_32_to_s0_9:                ; @vc4_ctm_s31_32_to_s0_9
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	w0, #63
	bl	_BIT_ULL
	tst	w0, w19
	b.eq	LBB0_2
; %bb.1:
	mov	w0, #9
	bl	_BIT
	mov	x20, x0
	b	LBB0_3
LBB0_2:
	mov	w20, #0
LBB0_3:
	mov	w0, #62
	mov	w1, #32
	bl	_GENMASK_ULL
	and	w8, w0, w19
	mov	w0, #8
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.4:
	mov	w1, #0
	bl	_GENMASK
	b	LBB0_6
LBB0_5:
	mov	w1, #0
	bl	_GENMASK
	and	w0, w0, w19, asr #23
LBB0_6:
	orr	w0, w0, w20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_vc4_ctm_s31_32_to_s0_9
.subsections_via_symbols
