	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sw_SwapBuffers                 ## -- Begin function sw_SwapBuffers
	.p2align	4, 0x90
_sw_SwapBuffers:                        ## @sw_SwapBuffers
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	(%rsi), %rbx
	movq	32(%rbx), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.2:
	cmpl	$0, 16(%rbx)
	je	LBB0_3
## %bb.4:
	movq	8(%rbx), %rax
	movl	(%rax), %r14d
	movl	20(%rbx), %edi
	movl	%r14d, %esi
	callq	_WIDTH_BYTES_ALIGN32
	movl	(%rbx), %r8d
	xorps	%xmm0, %xmm0
	movups	%xmm0, -8(%rbp)
	movl	%r8d, -24(%rbp)
	movl	20(%rbx), %ecx
	movl	%ecx, -16(%rbp)
	cmpl	$16, %r14d
	jne	LBB0_5
## %bb.6:
	movq	_BI_BITFIELDS@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_1:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_11
LBB0_3:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_11
LBB0_5:
	movq	_BI_RGB@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movl	%eax, -20(%rbp)
	movl	24(%rbx), %edi
	movl	16(%rbx), %eax
	movq	8(%rbx), %rdx
	movq	8(%rdx), %rdx
	movq	_PFD_TYPE_COLORINDEX@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_8
## %bb.9:
	movq	_DIB_PAL_COLORS@GOTPCREL(%rip), %rdx
	jmp	LBB0_10
LBB0_8:
	movq	_DIB_RGB_COLORS@GOTPCREL(%rip), %rdx
LBB0_10:
	movl	(%rdx), %ebx
	leaq	-48(%rbp), %r10
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%r9d, %r9d
	pushq	%rbx
	pushq	%r10
	pushq	%rax
	pushq	%r8
	pushq	$0
	pushq	$0
	callq	_SetDIBitsToDevice
	addq	$48, %rsp
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	setne	%al
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_13
## %bb.12:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_BI_BITFIELDS,4,2               ## @BI_BITFIELDS
	.comm	_BI_RGB,4,2                     ## @BI_RGB
	.comm	_PFD_TYPE_COLORINDEX,8,3        ## @PFD_TYPE_COLORINDEX
	.comm	_DIB_PAL_COLORS,4,2             ## @DIB_PAL_COLORS
	.comm	_DIB_RGB_COLORS,4,2             ## @DIB_RGB_COLORS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sw_SwapBuffers                 ; -- Begin function sw_SwapBuffers
	.p2align	2
_sw_SwapBuffers:                        ; @sw_SwapBuffers
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	ldr	x20, [x1]
	ldr	x8, [x20, #32]
	ldr	w8, [x8]
	cbz	w8, LBB0_3
; %bb.1:
	ldr	w8, [x20, #16]
	cbz	w8, LBB0_4
; %bb.2:
	ldr	x8, [x20, #8]
	ldr	w19, [x8]
	ldr	w0, [x20, #20]
	mov	x1, x19
	bl	_WIDTH_BYTES_ALIGN32
	ldr	w4, [x20]
	stp	xzr, xzr, [sp, #64]
	str	w4, [sp, #48]
	ldr	w3, [x20, #20]
	str	w3, [sp, #56]
Lloh3:
	adrp	x8, _BI_BITFIELDS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BI_BITFIELDS@GOTPAGEOFF]
Lloh5:
	adrp	x9, _BI_RGB@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BI_RGB@GOTPAGEOFF]
	cmp	w19, #16
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [sp, #52]
	ldr	w0, [x20, #24]
	ldr	w8, [x20, #16]
	ldr	x9, [x20, #8]
	ldr	x9, [x9, #8]
Lloh7:
	adrp	x10, _PFD_TYPE_COLORINDEX@GOTPAGE
Lloh8:
	ldr	x10, [x10, _PFD_TYPE_COLORINDEX@GOTPAGEOFF]
Lloh9:
	adrp	x11, _DIB_PAL_COLORS@GOTPAGE
Lloh10:
	ldr	x11, [x11, _DIB_PAL_COLORS@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
Lloh12:
	adrp	x12, _DIB_RGB_COLORS@GOTPAGE
Lloh13:
	ldr	x12, [x12, _DIB_RGB_COLORS@GOTPAGEOFF]
	cmp	x9, x10
	csel	x9, x11, x12, eq
	ldr	w9, [x9]
	str	w9, [sp, #16]
	add	x9, sp, #24
	str	x9, [sp, #8]
	stp	w4, w8, [sp]
	mov	w1, #0
	mov	w2, #0
	mov	w5, #0
	mov	w6, #0
	mov	w7, #0
	bl	_SetDIBitsToDevice
	cmp	x0, #0
	cset	w0, ne
	b	LBB0_6
LBB0_3:
Lloh14:
	adrp	x8, _TRUE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh16:
	adrp	x8, _FALSE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
LBB0_6:
	ldur	x8, [x29, #-24]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh11
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_BI_BITFIELDS,4,2               ; @BI_BITFIELDS
	.comm	_BI_RGB,4,2                     ; @BI_RGB
	.comm	_PFD_TYPE_COLORINDEX,8,3        ; @PFD_TYPE_COLORINDEX
	.comm	_DIB_PAL_COLORS,4,2             ; @DIB_PAL_COLORS
	.comm	_DIB_RGB_COLORS,4,2             ; @DIB_RGB_COLORS
.subsections_via_symbols
