	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setcolreg
_setcolreg:                             ## @setcolreg
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $r8d killed $r8d def $r8
	movl	%ecx, %r14d
	movl	%edx, %r13d
	movl	%esi, %r15d
	movq	40(%r9), %rax
	movq	_FB_VISUAL_TRUECOLOR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.1:
	cmpl	$17, %r8d
	jge	LBB0_2
## %bb.3:
	movb	$16, %cl
	subb	24(%r9), %cl
	sarl	%cl, %r15d
	movb	$16, %cl
	subb	16(%r9), %cl
	sarl	%cl, %r13d
	movb	$16, %cl
	subb	8(%r9), %cl
	movq	32(%r9), %rax
	sarl	%cl, %r14d
	movb	28(%r9), %cl
	shll	%cl, %r15d
	movb	20(%r9), %cl
	shll	%cl, %r13d
	movb	12(%r9), %cl
	shll	%cl, %r14d
	orl	%r15d, %r13d
	orl	%r13d, %r14d
	movl	(%r9), %ecx
	testl	%ecx, %ecx
	jle	LBB0_5
## %bb.4:
	movl	$-1, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	notl	%edx
	movb	4(%r9), %cl
	shll	%cl, %edx
	orl	%edx, %r14d
LBB0_5:
	movslq	%r8d, %rcx
	movl	%r14d, (%rax,%rcx,4)
	xorl	%ebx, %ebx
	jmp	LBB0_19
LBB0_6:
	movq	%rdi, %rbx
	movq	48(%r9), %r12
	movq	8(%r12), %rcx
	cmpl	$16, (%rcx)
	jne	LBB0_7
## %bb.8:
	movl	4(%rcx), %eax
	cmpl	$64, %r8d
	jl	LBB0_10
## %bb.9:
	cmpl	$16, %eax
	je	LBB0_2
LBB0_10:
	cmpl	$32, %r8d
	jl	LBB0_12
## %bb.11:
	cmpl	$15, %eax
	jne	LBB0_12
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_19
LBB0_7:
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r12
	movl	%r8d, %r9d
LBB0_17:
	xorl	%ebx, %ebx
	cmpl	$16, 4(%rcx)
	je	LBB0_19
## %bb.18:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%r13d, %edx
	movl	%r14d, %ecx
	movl	%r9d, %r8d
	callq	*(%rax)
LBB0_19:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	leal	(,%r8,8), %r9d
	cmpl	$16, %eax
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	jne	LBB0_13
## %bb.14:
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	cmpl	$31, %r8d
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	jg	LBB0_16
## %bb.15:
	movq	(%r12), %rax
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r13d, %edx
	movl	%r14d, %ecx
	movl	%r9d, %r8d
	callq	*(%rax)
	movq	(%r12), %rax
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	orl	$1, %r8d
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r13d, %edx
	movl	%r14d, %ecx
	callq	*(%rax)
	movq	(%r12), %rax
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	orl	$2, %r8d
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r13d, %edx
	movl	%r14d, %ecx
	callq	*(%rax)
	movq	(%r12), %rax
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	orl	$3, %r8d
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r13d, %edx
	movl	%r14d, %ecx
	callq	*(%rax)
	movq	(%r12), %rax
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	orl	$4, %r8d
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r13d, %edx
	movl	%r14d, %ecx
	callq	*(%rax)
	movq	(%r12), %rax
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	orl	$5, %r8d
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r13d, %edx
	movl	%r14d, %ecx
	callq	*(%rax)
	movq	(%r12), %rax
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	orl	$6, %r8d
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r13d, %edx
	movl	%r14d, %ecx
	callq	*(%rax)
	movq	(%r12), %rax
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	orl	$7, %r8d
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r13d, %edx
	movl	%r14d, %ecx
	callq	*(%rax)
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
LBB0_16:
	movq	(%r12), %rax
	movq	%rbx, %rdi
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	%r9d, %ebx
	sarl	%ebx
	leaq	-52(%rbp), %rsi
	leaq	-84(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movl	%ebx, %r8d
	callq	*8(%rax)
	movq	(%r12), %rax
	movl	-52(%rbp), %esi
	movl	-48(%rbp), %ecx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %edx
	movl	%ebx, %r8d
	callq	*(%rax)
	movq	(%r12), %rax
	movl	-52(%rbp), %esi
	movl	-48(%rbp), %ecx
	movl	%ebx, %r8d
	orl	$1, %r8d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %edx
	callq	*(%rax)
	movq	(%r12), %rax
	movl	-52(%rbp), %esi
	movl	-48(%rbp), %ecx
	movl	%ebx, %r8d
	orl	$2, %r8d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %edx
	callq	*(%rax)
	movq	(%r12), %rax
	movl	-52(%rbp), %esi
	movl	-48(%rbp), %ecx
	orl	$3, %ebx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdi, %r12
	movl	%r13d, %edx
	movl	%ebx, %r8d
	callq	*(%rax)
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_17
LBB0_13:
	movq	%rbx, %r12
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_FB_VISUAL_TRUECOLOR,8,3        ## @FB_VISUAL_TRUECOLOR
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_setcolreg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setcolreg
_setcolreg:                             ; @setcolreg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x3
	mov	x20, x2
	mov	x21, x1
	ldr	x8, [x5, #40]
Lloh0:
	adrp	x9, _FB_VISUAL_TRUECOLOR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FB_VISUAL_TRUECOLOR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	cmp	w4, #17
	b.ge	LBB0_10
; %bb.2:
	mov	w8, #16
	ldp	w9, w10, [x5, #24]
	sub	w9, w8, w9
	asr	w9, w21, w9
	ldp	w11, w12, [x5, #16]
	sub	w11, w8, w11
	asr	w11, w20, w11
	ldp	w13, w14, [x5, #8]
	sub	w8, w8, w13
	asr	w13, w19, w8
	lsl	w9, w9, w10
	ldr	x8, [x5, #32]
	lsl	w10, w11, w12
	orr	w9, w10, w9
	lsl	w10, w13, w14
	orr	w9, w9, w10
	ldr	w10, [x5]
	cmp	w10, #1
	b.lt	LBB0_4
; %bb.3:
	mov	w11, #-1
	lsl	w10, w11, w10
	mvn	w10, w10
	ldr	w11, [x5, #4]
	lsl	w10, w10, w11
	orr	w9, w10, w9
LBB0_4:
	mov	w0, #0
	str	w9, [x8, w4, sxtw #2]
	b	LBB0_15
LBB0_5:
	mov	x22, x0
	ldr	x25, [x5, #48]
	ldr	x26, [x25, #8]
	ldr	w8, [x26]
	cmp	w8, #16
	b.ne	LBB0_11
; %bb.6:
	ldr	w8, [x26, #4]
	cmp	w4, #64
	b.lt	LBB0_8
; %bb.7:
	cmp	w8, #16
	b.eq	LBB0_10
LBB0_8:
	cmp	w4, #32
	b.lt	LBB0_16
; %bb.9:
	cmp	w8, #15
	b.ne	LBB0_16
LBB0_10:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
LBB0_11:
	mov	x23, x4
LBB0_12:
	ldr	w8, [x26, #4]
	cmp	w8, #16
	b.eq	LBB0_14
; %bb.13:
	ldr	x8, [x25]
	ldr	x8, [x8]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	mov	x4, x23
	blr	x8
LBB0_14:
	mov	w0, #0
LBB0_15:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_16:
	lsl	w23, w4, #3
	cmp	w8, #16
	b.ne	LBB0_12
; %bb.17:
	cmp	w4, #31
	b.gt	LBB0_19
; %bb.18:
	ldr	x8, [x25]
	ldr	x8, [x8]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	mov	x4, x23
	blr	x8
	ldr	x8, [x25]
	ldr	x8, [x8]
	orr	w4, w23, #0x1
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	blr	x8
	ldr	x8, [x25]
	ldr	x8, [x8]
	orr	w4, w23, #0x2
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	blr	x8
	ldr	x8, [x25]
	ldr	x8, [x8]
	orr	w4, w23, #0x3
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	blr	x8
	ldr	x8, [x25]
	ldr	x8, [x8]
	orr	w4, w23, #0x4
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	blr	x8
	ldr	x8, [x25]
	ldr	x8, [x8]
	mov	w9, #5
	orr	w4, w23, w9
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	blr	x8
	ldr	x8, [x25]
	ldr	x8, [x8]
	orr	w4, w23, #0x6
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	blr	x8
	ldr	x8, [x25]
	ldr	x8, [x8]
	orr	w4, w23, #0x7
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	blr	x8
LBB0_19:
	ldr	x8, [x25]
	ldr	x8, [x8, #8]
	asr	w24, w23, #1
	add	x1, sp, #12
	add	x2, sp, #8
	add	x3, sp, #4
	mov	x0, x22
	mov	x4, x24
	blr	x8
	ldr	x8, [x25]
	ldr	x8, [x8]
	ldr	w1, [sp, #12]
	ldr	w3, [sp, #4]
	mov	x0, x22
	mov	x2, x20
	mov	x4, x24
	blr	x8
	ldr	x8, [x25]
	ldr	x8, [x8]
	ldr	w1, [sp, #12]
	ldr	w3, [sp, #4]
	orr	w4, w24, #0x1
	mov	x0, x22
	mov	x2, x20
	blr	x8
	ldr	x8, [x25]
	ldr	x8, [x8]
	ldr	w1, [sp, #12]
	ldr	w3, [sp, #4]
	orr	w4, w24, #0x2
	mov	x0, x22
	mov	x2, x20
	blr	x8
	ldr	x8, [x25]
	ldr	x8, [x8]
	ldr	w1, [sp, #12]
	ldr	w3, [sp, #4]
	orr	w4, w24, #0x3
	mov	x0, x22
	mov	x2, x20
	blr	x8
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_FB_VISUAL_TRUECOLOR,8,3        ; @FB_VISUAL_TRUECOLOR
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_setcolreg
.subsections_via_symbols
