	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function SYSLINK_SetFont
_SYSLINK_SetFont:                       ## @SYSLINK_SetFont
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rdi, %rbx
	movl	16(%rdi), %r14d
	movl	%esi, 16(%rdi)
	movq	8(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_DeleteObject
	movq	$0, 8(%rbx)
LBB0_2:
	movl	(%rbx), %edi
	leaq	-52(%rbp), %rsi
	callq	_GetClientRect
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movl	(%rbx), %edi
	callq	_GetDC
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	%rax, %r12
	leaq	-48(%rbp), %rsi
	movq	%rax, %rdi
	callq	_GetTextMetricsW
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movl	16(%rbx), %edi
	leaq	-40(%rbp), %rdx
	movl	$4, %esi
	callq	_GetObjectW
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	leaq	-40(%rbp), %rdi
	callq	_CreateFontIndirectW
	movq	%rax, 8(%rbx)
	movl	-48(%rbp), %eax
	movl	%eax, 4(%rbx)
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str(%rip), %rdi
	callq	_ERR
LBB0_8:
	leaq	-52(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_SYSLINK_Render
	movl	(%rbx), %edi
	movq	%r12, %rsi
	callq	_ReleaseDC
LBB0_9:
	testq	%r15, %r15
	je	LBB0_11
## %bb.10:
	movl	(%rbx), %edi
	movq	_RDW_INVALIDATE@GOTPCREL(%rip), %rax
	movq	_RDW_UPDATENOW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_RedrawWindow
LBB0_11:
	movl	%r14d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRUE,4,2                       ## @TRUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to create link font!\n"

	.comm	_RDW_INVALIDATE,4,2             ## @RDW_INVALIDATE
	.comm	_RDW_UPDATENOW,4,2              ## @RDW_UPDATENOW
	.no_dead_strip	_SYSLINK_SetFont
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function SYSLINK_SetFont
_SYSLINK_SetFont:                       ; @SYSLINK_SetFont
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x2
	mov	x20, x0
	ldr	w19, [x0, #16]
	str	w1, [x0, #16]
	ldr	x0, [x0, #8]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_DeleteObject
	str	xzr, [x20, #8]
LBB0_2:
	ldr	w0, [x20]
	add	x1, sp, #12
	bl	_GetClientRect
	cbz	x0, LBB0_9
; %bb.3:
	ldr	w0, [x20]
	bl	_GetDC
	cbz	x0, LBB0_9
; %bb.4:
	mov	x22, x0
	add	x1, sp, #16
	bl	_GetTextMetricsW
	cbz	x0, LBB0_7
; %bb.5:
	ldr	w0, [x20, #16]
	add	x2, sp, #24
	mov	w1, #4
	bl	_GetObjectW
	cbz	x0, LBB0_7
; %bb.6:
Lloh0:
	adrp	x8, _TRUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	add	x0, sp, #24
	bl	_CreateFontIndirectW
	str	x0, [x20, #8]
	ldr	w8, [sp, #16]
	str	w8, [x20, #4]
	b	LBB0_8
LBB0_7:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ERR
LBB0_8:
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, x22
	bl	_SYSLINK_Render
	ldr	w0, [x20]
	mov	x1, x22
	bl	_ReleaseDC
LBB0_9:
	cbz	x21, LBB0_11
; %bb.10:
Lloh5:
	adrp	x8, _RDW_INVALIDATE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RDW_INVALIDATE@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _RDW_UPDATENOW@GOTPAGE
Lloh9:
	ldr	x9, [x9, _RDW_UPDATENOW@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x1, #0
	mov	x2, #0
	bl	_RedrawWindow
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_TRUE,4,2                       ; @TRUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to create link font!\n"

	.comm	_RDW_INVALIDATE,4,2             ; @RDW_INVALIDATE
	.comm	_RDW_UPDATENOW,4,2              ; @RDW_UPDATENOW
	.no_dead_strip	_SYSLINK_SetFont
.subsections_via_symbols
