	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function d3dfonts_w32_get_message_width
_d3dfonts_w32_get_message_width:        ## @d3dfonts_w32_get_message_width
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$48, %rsp
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -32(%rbp)
	movq	$0, -16(%rbp)
	xorl	%eax, %eax
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	%rsi, %r10
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.2:
	xorl	%ecx, %ecx
	cmpl	$1, %edx
	sbbl	%ecx, %ecx
	movl	(%rdi), %edi
	orl	%edx, %ecx
	movq	_DT_CALCRECT@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	$0, (%rsp)
	leaq	-32(%rbp), %r8
	xorl	%esi, %esi
	movq	%r10, %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_d3d9x_font_draw_text
	movl	-32(%rbp), %eax
	subl	-28(%rbp), %eax
LBB0_3:
	addq	$48, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DT_CALCRECT,4,2                ## @DT_CALCRECT
	.no_dead_strip	_d3dfonts_w32_get_message_width
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function d3dfonts_w32_get_message_width
_d3dfonts_w32_get_message_width:        ; @d3dfonts_w32_get_message_width
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x9, x0
	mov	w0, #0
	stp	xzr, xzr, [sp, #8]
	str	xzr, [sp, #24]
	cbz	x9, LBB0_3
; %bb.1:
	mov	x8, x1
	cbz	x1, LBB0_3
; %bb.2:
	ldr	w0, [x9]
	cmp	w2, #0
	csinv	w3, w2, wzr, ne
Lloh0:
	adrp	x9, _DT_CALCRECT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DT_CALCRECT@GOTPAGEOFF]
Lloh2:
	ldr	w5, [x9]
	add	x4, sp, #8
	mov	x1, #0
	mov	x2, x8
	mov	w6, #0
	bl	_d3d9x_font_draw_text
	ldp	w8, w9, [sp, #8]
	sub	w0, w8, w9
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DT_CALCRECT,4,2                ; @DT_CALCRECT
	.no_dead_strip	_d3dfonts_w32_get_message_width
.subsections_via_symbols
