	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ui__refresh_dimensions         ## -- Begin function ui__refresh_dimensions
	.p2align	4, 0x90
_ui__refresh_dimensions:                ## @ui__refresh_dimensions
	.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
	movq	_ui__need_resize@GOTPCREL(%rip), %rax
	testl	%edi, %edi
	jne	LBB0_3
## %bb.1:
	cmpq	$0, (%rax)
	jne	LBB0_3
## %bb.2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_3:
	movq	$0, (%rax)
	movq	_ui__lock@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_pthread_mutex_lock
	xorl	%eax, %eax
	callq	_SLtt_get_screen_size
	xorl	%eax, %eax
	callq	_SLsmg_reinit_smg
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_pthread_mutex_unlock           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ui__need_resize,8,3            ## @ui__need_resize
	.comm	_ui__lock,4,2                   ## @ui__lock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ui__refresh_dimensions         ; -- Begin function ui__refresh_dimensions
	.p2align	2
_ui__refresh_dimensions:                ; @ui__refresh_dimensions
	.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
Lloh0:
	adrp	x8, _ui__need_resize@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ui__need_resize@GOTPAGEOFF]
	cbnz	w0, LBB0_3
; %bb.1:
	ldr	x9, [x8]
	cbnz	x9, LBB0_3
; %bb.2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	str	xzr, [x8]
Lloh2:
	adrp	x19, _ui__lock@GOTPAGE
Lloh3:
	ldr	x19, [x19, _ui__lock@GOTPAGEOFF]
	mov	x0, x19
	bl	_pthread_mutex_lock
	bl	_SLtt_get_screen_size
	bl	_SLsmg_reinit_smg
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pthread_mutex_unlock
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_ui__need_resize,8,3            ; @ui__need_resize
	.comm	_ui__lock,4,2                   ; @ui__lock
.subsections_via_symbols
