	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function makeContextCurrentWGL
_makeContextCurrentWGL:                 ## @makeContextCurrentWGL
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movq	%rdi, %rbx
	movq	(%rdi), %rsi
	movq	8(%rdi), %rdi
	callq	_wglMakeCurrent
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	__glfw@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	jmp	LBB0_3
LBB0_5:
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_wglMakeCurrent
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:
	movq	_GLFW_PLATFORM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_7
LBB0_4:
	movq	_GLFW_PLATFORM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
LBB0_7:
	callq	__glfwInputErrorWin32
LBB0_8:
	movq	__glfw@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	__glfwPlatformSetTls            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	__glfw,4,2                      ## @_glfw
	.comm	_GLFW_PLATFORM_ERROR,4,2        ## @GLFW_PLATFORM_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WGL: Failed to make context current"

L_.str.1:                               ## @.str.1
	.asciz	"WGL: Failed to clear current context"

	.no_dead_strip	_makeContextCurrentWGL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function makeContextCurrentWGL
_makeContextCurrentWGL:                 ; @makeContextCurrentWGL
	.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
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x0, [x0, #8]
	ldr	x1, [x19]
	bl	_wglMakeCurrent
	cbz	x0, LBB0_5
; %bb.2:
Lloh0:
	adrp	x0, __glfw@GOTPAGE
Lloh1:
	ldr	x0, [x0, __glfw@GOTPAGEOFF]
	mov	x1, x19
	b	LBB0_8
LBB0_3:
	mov	x1, #0
	bl	_wglMakeCurrent
	cbnz	x0, LBB0_7
; %bb.4:
Lloh2:
	adrp	x8, _GLFW_PLATFORM_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GLFW_PLATFORM_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh7:
	adrp	x8, _GLFW_PLATFORM_ERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GLFW_PLATFORM_ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
LBB0_6:
	bl	__glfwInputErrorWin32
LBB0_7:
Lloh12:
	adrp	x0, __glfw@GOTPAGE
Lloh13:
	ldr	x0, [x0, __glfw@GOTPAGEOFF]
	mov	x1, #0
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	__glfwPlatformSetTls
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	__glfw,4,2                      ; @_glfw
	.comm	_GLFW_PLATFORM_ERROR,4,2        ; @GLFW_PLATFORM_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WGL: Failed to make context current"

l_.str.1:                               ; @.str.1
	.asciz	"WGL: Failed to clear current context"

	.no_dead_strip	_makeContextCurrentWGL
.subsections_via_symbols
