	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function updateWindowStyles
_updateWindowStyles:                    ## @updateWindowStyles
	.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
	movq	%rdi, %r15
	movl	(%rdi), %edi
	movq	_GWL_STYLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetWindowLongW
	movq	_WS_OVERLAPPEDWINDOW@GOTPCREL(%rip), %rcx
	movq	_WS_POPUP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	orl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movq	%r15, %rdi
	callq	_getWindowStyle
	movl	%eax, %r14d
	orl	%ebx, %r14d
	movl	(%r15), %edi
	leaq	-72(%rbp), %rsi
	callq	_GetClientRect
	xorl	%eax, %eax
	callq	__glfwIsWindows10AnniversaryUpdateOrGreaterWin32
	movq	%rax, %r13
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_getWindowExStyle
	movl	%eax, %r12d
	testq	%r13, %r13
	je	LBB0_2
## %bb.1:
	movl	(%r15), %edi
	callq	_GetDpiForWindow
	leaq	-72(%rbp), %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	movl	%r12d, %ecx
	movl	%eax, %r8d
	callq	_AdjustWindowRectExForDpi
	jmp	LBB0_3
LBB0_2:
	leaq	-72(%rbp), %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	movl	%r12d, %ecx
	callq	_AdjustWindowRectEx
LBB0_3:
	movl	(%r15), %edi
	leaq	-56(%rbp), %rsi
	callq	_ClientToScreen
	movl	(%r15), %edi
	leaq	-48(%rbp), %rsi
	callq	_ClientToScreen
	movl	(%r15), %edi
	movq	_GWL_STYLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edx
	callq	_SetWindowLongW
	movl	(%r15), %edi
	movq	_HWND_TOP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdx
	movq	-48(%rbp), %r8
	subq	%rdx, %r8
	movq	-72(%rbp), %rcx
	movq	-64(%rbp), %r9
	movq	_SWP_FRAMECHANGED@GOTPCREL(%rip), %rax
	movq	_SWP_NOACTIVATE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ebx
	orl	(%rax), %ebx
	subq	%rcx, %r9
	movq	_SWP_NOZORDER@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%ebx, (%rsp)
	callq	_SetWindowPos
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GWL_STYLE,4,2                  ## @GWL_STYLE
	.comm	_WS_OVERLAPPEDWINDOW,4,2        ## @WS_OVERLAPPEDWINDOW
	.comm	_WS_POPUP,4,2                   ## @WS_POPUP
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_HWND_TOP,4,2                   ## @HWND_TOP
	.comm	_SWP_FRAMECHANGED,4,2           ## @SWP_FRAMECHANGED
	.comm	_SWP_NOACTIVATE,4,2             ## @SWP_NOACTIVATE
	.comm	_SWP_NOZORDER,4,2               ## @SWP_NOZORDER
	.no_dead_strip	_updateWindowStyles
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function updateWindowStyles
_updateWindowStyles:                    ; @updateWindowStyles
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x24, _GWL_STYLE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _GWL_STYLE@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_GetWindowLongW
Lloh2:
	adrp	x8, _WS_OVERLAPPEDWINDOW@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WS_OVERLAPPEDWINDOW@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _WS_POPUP@GOTPAGE
Lloh6:
	ldr	x9, [x9, _WS_POPUP@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w20, w0, w8
	mov	x0, x19
	bl	_getWindowStyle
	orr	w20, w20, w0
	ldr	w0, [x19]
	mov	x1, sp
	bl	_GetClientRect
	bl	__glfwIsWindows10AnniversaryUpdateOrGreaterWin32
	mov	x23, x0
Lloh8:
	adrp	x8, _FALSE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh10:
	ldr	w21, [x8]
	mov	x0, x19
	bl	_getWindowExStyle
	mov	x22, x0
	cbz	x23, LBB0_2
; %bb.1:
	ldr	w0, [x19]
	bl	_GetDpiForWindow
	mov	x4, x0
	mov	x0, sp
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	bl	_AdjustWindowRectExForDpi
	b	LBB0_3
LBB0_2:
	mov	x0, sp
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	bl	_AdjustWindowRectEx
LBB0_3:
	ldr	w0, [x19]
	mov	x21, sp
	add	x1, x21, #16
	bl	_ClientToScreen
	ldr	w0, [x19]
	add	x1, x21, #24
	bl	_ClientToScreen
	ldr	w0, [x19]
	ldr	w1, [x24]
	mov	x2, x20
	bl	_SetWindowLongW
	ldr	w0, [x19]
Lloh11:
	adrp	x8, _HWND_TOP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HWND_TOP@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldp	x2, x8, [sp, #16]
	sub	x4, x8, x2
	ldp	x3, x8, [sp]
	sub	x5, x8, x3
Lloh14:
	adrp	x8, _SWP_FRAMECHANGED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SWP_FRAMECHANGED@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _SWP_NOACTIVATE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _SWP_NOACTIVATE@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh20:
	adrp	x9, _SWP_NOZORDER@GOTPAGE
Lloh21:
	ldr	x9, [x9, _SWP_NOZORDER@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w6, w8, w9
	bl	_SetWindowPos
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_GWL_STYLE,4,2                  ; @GWL_STYLE
	.comm	_WS_OVERLAPPEDWINDOW,4,2        ; @WS_OVERLAPPEDWINDOW
	.comm	_WS_POPUP,4,2                   ; @WS_POPUP
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_HWND_TOP,4,2                   ; @HWND_TOP
	.comm	_SWP_FRAMECHANGED,4,2           ; @SWP_FRAMECHANGED
	.comm	_SWP_NOACTIVATE,4,2             ; @SWP_NOACTIVATE
	.comm	_SWP_NOZORDER,4,2               ; @SWP_NOZORDER
	.no_dead_strip	_updateWindowStyles
.subsections_via_symbols
