	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function gl_create_visual
LCPI0_0:
	.quad	0x406fe00000000000              ## double 255
LCPI0_1:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_gl_create_visual
	.p2align	4, 0x90
_gl_create_visual:                      ## @gl_create_visual
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movsd	%xmm3, -48(%rbp)                ## 8-byte Spill
	movsd	%xmm2, -56(%rbp)                ## 8-byte Spill
	movsd	%xmm1, -64(%rbp)                ## 8-byte Spill
	movl	%r9d, %r12d
	movl	%r8d, %r13d
	movl	%ecx, %ebx
	movq	%rdx, %r15
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	xorl	%edi, %edi
	movsd	%xmm0, -72(%rbp)                ## 8-byte Spill
	ucomisd	%xmm0, %xmm1
	setae	%dil
	callq	_assert
	xorl	%edi, %edi
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	ucomisd	-64(%rbp), %xmm0                ## 8-byte Folded Reload
	setae	%dil
	callq	_assert
	xorl	%edi, %edi
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	ucomisd	-56(%rbp), %xmm0                ## 8-byte Folded Reload
	setae	%dil
	callq	_assert
	xorl	%edi, %edi
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	ucomisd	-48(%rbp), %xmm0                ## 8-byte Folded Reload
	setae	%dil
	callq	_assert
	xorl	%eax, %eax
	cmpl	$32, %ebx
	ja	LBB0_16
## %bb.1:
	cmpl	$32, %r13d
	ja	LBB0_16
## %bb.2:
	cmpl	$32, %r12d
	ja	LBB0_16
## %bb.3:
	movl	$1, %edi
	movl	$120, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%r14, 112(%rax)
	movq	%r15, 104(%rax)
	movsd	-72(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	movsd	%xmm2, (%rax)
	movsd	-64(%rbp), %xmm3                ## 8-byte Reload
                                        ## xmm3 = mem[0],zero
	movsd	%xmm3, 8(%rax)
	movsd	-56(%rbp), %xmm4                ## 8-byte Reload
                                        ## xmm4 = mem[0],zero
	movsd	%xmm4, 16(%rax)
	movsd	-48(%rbp), %xmm5                ## 8-byte Reload
                                        ## xmm5 = mem[0],zero
	movsd	%xmm5, 24(%rax)
	xorpd	%xmm0, %xmm0
	ucomisd	%xmm0, %xmm2
	jne	LBB0_6
	jnp	LBB0_7
LBB0_6:
	movsd	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero
	divsd	%xmm2, %xmm1
	cvtsd2ss	%xmm1, %xmm1
	movss	%xmm1, 32(%rax)
LBB0_7:
	ucomisd	%xmm0, %xmm3
	jne	LBB0_8
	jnp	LBB0_9
LBB0_8:
	movsd	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero
	divsd	%xmm3, %xmm0
	cvtsd2ss	%xmm0, %xmm0
	movss	%xmm0, 36(%rax)
LBB0_9:
	xorpd	%xmm0, %xmm0
	ucomisd	%xmm0, %xmm4
	jne	LBB0_10
	jnp	LBB0_11
LBB0_10:
	movsd	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero
	divsd	%xmm4, %xmm1
	cvtsd2ss	%xmm1, %xmm1
	movss	%xmm1, 40(%rax)
LBB0_11:
	movl	48(%rbp), %r8d
	movl	40(%rbp), %r9d
	movl	32(%rbp), %ecx
	movl	24(%rbp), %edx
	movl	16(%rbp), %r10d
	ucomisd	%xmm0, %xmm5
	jne	LBB0_12
	jnp	LBB0_13
LBB0_12:
	movsd	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero
	divsd	%xmm5, %xmm0
	cvtsd2ss	%xmm0, %xmm0
	movss	%xmm0, 44(%rax)
LBB0_13:
	movl	%edx, 48(%rax)
	movl	%ecx, 52(%rax)
	xorl	%edi, %edi
	testl	%ebx, %ebx
	setne	%dil
	shll	$5, %edi
	xorl	%ebx, %ebx
	testl	%r12d, %r12d
	setne	%bl
	shll	$5, %ebx
	xorl	%ecx, %ecx
	testl	%r13d, %r13d
	setne	%cl
	shll	$5, %ecx
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	ucomisd	%xmm0, %xmm5
	movq	_GL_FALSE@GOTPCREL(%rip), %rsi
	movq	_GL_TRUE@GOTPCREL(%rip), %rdx
	cmovneq	%rsi, %rdx
	cmovpq	%rsi, %rdx
	ucomisd	%xmm0, %xmm4
	cmovneq	%rsi, %rdx
	cmovpq	%rsi, %rdx
	ucomisd	%xmm0, %xmm3
	cmovneq	%rsi, %rdx
	cmovpq	%rsi, %rdx
	ucomisd	%xmm0, %xmm2
	cmovneq	%rsi, %rdx
	cmovpq	%rsi, %rdx
	movl	$32, %esi
	cmpq	$0, -80(%rbp)                   ## 8-byte Folded Reload
	cmovel	%r8d, %esi
	movl	%r9d, 56(%rax)
	movl	%esi, 60(%rax)
	movl	%r10d, 64(%rax)
	movl	%edi, 68(%rax)
	movl	%ebx, 72(%rax)
	movl	%ecx, 76(%rax)
	movq	(%rdx), %rcx
	movq	%rcx, 96(%rax)
	je	LBB0_16
## %bb.14:
	movq	_GL_TRUE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 88(%rax)
	testq	%r15, %r15
	je	LBB0_16
## %bb.15:
	movq	%rcx, 80(%rax)
	jmp	LBB0_16
LBB0_4:
	xorl	%eax, %eax
LBB0_16:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_TRUE,8,3                    ## @GL_TRUE
	.comm	_GL_FALSE,8,3                   ## @GL_FALSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gl_create_visual               ; -- Begin function gl_create_visual
	.p2align	2
_gl_create_visual:                      ; @gl_create_visual
	.cfi_startproc
; %bb.0:
	stp	d13, d12, [sp, #-128]!          ; 16-byte Folded Spill
	.cfi_def_cfa_offset 128
	stp	d11, d10, [sp, #16]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset b8, -88
	.cfi_offset b9, -96
	.cfi_offset b10, -104
	.cfi_offset b11, -112
	.cfi_offset b12, -120
	.cfi_offset b13, -128
	mov	x25, x7
	mov	x23, x6
	mov	x22, x5
	mov	x21, x4
	mov	x24, x3
	mov	x19, x2
	fmov	d11, d3
	fmov	d10, d2
	fmov	d9, d1
	fmov	d8, d0
	mov	x20, x1
	mov	x26, x0
	mov	x8, #246290604621824
	movk	x8, #16495, lsl #48
	fmov	d12, x8
	fcmp	d0, d12
	cset	w0, ls
	bl	_assert
	fcmp	d9, d12
	cset	w0, ls
	bl	_assert
	fcmp	d10, d12
	cset	w0, ls
	bl	_assert
	fcmp	d11, d12
	cset	w0, ls
	bl	_assert
	mov	x0, #0
	cmp	w24, #32
	b.hi	LBB0_15
; %bb.1:
	cmp	w21, #32
	b.hi	LBB0_15
; %bb.2:
	cmp	w22, #32
	b.hi	LBB0_15
; %bb.3:
	mov	w0, #1
	mov	w1, #120
	bl	_calloc
	cbz	x0, LBB0_15
; %bb.4:
	stp	x19, x26, [x0, #104]
	stp	d8, d9, [x0]
	fcmp	d8, #0.0
	stp	d10, d11, [x0, #16]
	b.eq	LBB0_6
; %bb.5:
	fmov	d0, #1.00000000
	fdiv	d0, d0, d8
	fcvt	s0, d0
	str	s0, [x0, #32]
LBB0_6:
	fcmp	d9, #0.0
	b.eq	LBB0_8
; %bb.7:
	fmov	d0, #1.00000000
	fdiv	d0, d0, d9
	fcvt	s0, d0
	str	s0, [x0, #36]
LBB0_8:
	fcmp	d10, #0.0
	b.eq	LBB0_10
; %bb.9:
	fmov	d0, #1.00000000
	fdiv	d0, d0, d10
	fcvt	s0, d0
	str	s0, [x0, #40]
LBB0_10:
	ldp	w9, w8, [x29, #20]
	fcmp	d11, #0.0
	ldr	w10, [x29, #16]
	b.eq	LBB0_12
; %bb.11:
	fmov	d0, #1.00000000
	fdiv	d0, d0, d11
	fcvt	s0, d0
	str	s0, [x0, #44]
LBB0_12:
	stp	w25, w10, [x0, #48]
	cmp	x20, #0
	mov	w10, #32
	csel	w8, w8, w10, eq
	stp	w9, w8, [x0, #56]
	cmp	w24, #0
	cset	w8, ne
	lsl	w8, w8, #5
	stp	w23, w8, [x0, #64]
	cmp	w22, #0
	cset	w8, ne
	lsl	w8, w8, #5
	cmp	w21, #0
	cset	w9, ne
	lsl	w9, w9, #5
	stp	w8, w9, [x0, #72]
	mov	x8, #246290604621824
	movk	x8, #16495, lsl #48
	fmov	d0, x8
	fcmp	d11, d0
	fccmp	d10, d0, #0, eq
	fccmp	d9, d0, #0, eq
Lloh0:
	adrp	x8, _GL_TRUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GL_TRUE@GOTPAGEOFF]
	fccmp	d8, d0, #0, eq
Lloh2:
	adrp	x9, _GL_FALSE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _GL_FALSE@GOTPAGEOFF]
	csel	x9, x8, x9, eq
	ldr	x9, [x9]
	str	x9, [x0, #96]
	cbz	x20, LBB0_15
; %bb.13:
	ldr	x8, [x8]
	str	x8, [x0, #88]
	cbz	x19, LBB0_15
; %bb.14:
	str	x8, [x0, #80]
LBB0_15:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #16]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp], #128            ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_TRUE,8,3                    ; @GL_TRUE
	.comm	_GL_FALSE,8,3                   ; @GL_FALSE
.subsections_via_symbols
