	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function taskdialog_get_text_extent
_taskdialog_get_text_extent:            ## @taskdialog_get_text_extent
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	movl	16(%rdi), %eax
	movq	_DIALOG_SPACING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%ecx, %ecx
	subl	%ecx, %eax
	cltq
	movq	%rax, -96(%rbp)
	movq	$0, -48(%rbp)
	movq	%rsi, %rdi
	callq	_IS_INTRESOURCE
	testq	%rax, %rax
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_6
## %bb.1:
	testq	%r14, %r14
	je	LBB0_2
## %bb.3:
	movq	8(%r15), %rax
	jmp	LBB0_4
LBB0_6:
	movq	%rbx, -48(%rbp)
	movq	%rbx, %rdi
	callq	_strlenW
	movl	%eax, %r12d
	jmp	LBB0_7
LBB0_2:
	movq	_COMCTL32_hModule@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %edi
	leaq	-48(%rbp), %rdx
	movl	%ebx, %esi
	xorl	%ecx, %ecx
	callq	_LoadStringW
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	leaq	L_.str(%rip), %rdi
	callq	_WARN
	leaq	_taskdialog_get_text_extent.nulW(%rip), %rax
	movq	%rax, -48(%rbp)
	xorl	%r12d, %r12d
LBB0_7:
	xorl	%edi, %edi
	callq	_GetDC
	movl	%eax, %ebx
	movl	(%r15), %esi
	movl	%eax, %edi
	callq	_SelectObject
	movl	%eax, %r13d
	leaq	-88(%rbp), %r14
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_dialogunits_to_pixels
	movq	_DT_LEFT@GOTPCREL(%rip), %rax
	movq	_DT_EXPANDTABS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	orl	(%rax), %r8d
	movq	_DT_CALCRECT@GOTPCREL(%rip), %rax
	orl	(%rax), %r8d
	movq	-48(%rbp), %rsi
	movq	_DT_WORDBREAK@GOTPCREL(%rip), %rax
	orl	(%rax), %r8d
	leaq	-112(%rbp), %rcx
	movl	%ebx, %edi
	movl	%r12d, %edx
	callq	_DrawTextW
	leaq	-104(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_pixels_to_dialogunits
	movl	%ebx, %edi
	movl	%r13d, %esi
	callq	_SelectObject
	xorl	%edi, %edi
	movl	%ebx, %esi
	callq	_ReleaseDC
	movq	-88(%rbp), %rax
	subq	-96(%rbp), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 8(%rcx)
	movq	-104(%rbp), %rax
	subq	-112(%rbp), %rax
	movq	%rax, (%rcx)
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DIALOG_SPACING,4,2             ## @DIALOG_SPACING
	.section	__TEXT,__const
	.p2align	2                               ## @taskdialog_get_text_extent.nulW
_taskdialog_get_text_extent.nulW:
	.long	0                               ## 0x0

	.comm	_COMCTL32_hModule,4,2           ## @COMCTL32_hModule
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to load text\n"

	.comm	_DT_LEFT,4,2                    ## @DT_LEFT
	.comm	_DT_EXPANDTABS,4,2              ## @DT_EXPANDTABS
	.comm	_DT_CALCRECT,4,2                ## @DT_CALCRECT
	.comm	_DT_WORDBREAK,4,2               ## @DT_WORDBREAK
	.no_dead_strip	_taskdialog_get_text_extent
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function taskdialog_get_text_extent
_taskdialog_get_text_extent:            ; @taskdialog_get_text_extent
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #32]
	str	q0, [sp, #16]
Lloh0:
	adrp	x8, _DIALOG_SPACING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DIALOG_SPACING@GOTPAGEOFF]
	ldr	w9, [x0, #16]
Lloh2:
	ldr	w8, [x8]
	sub	w8, w9, w8, lsl #1
	sxtw	x8, w8
	str	x8, [sp, #32]
	str	xzr, [sp, #8]
	mov	x0, x1
	bl	_IS_INTRESOURCE
	cbz	x0, LBB0_3
; %bb.1:
	cbz	x22, LBB0_4
; %bb.2:
	ldr	x8, [x20, #8]
	b	LBB0_5
LBB0_3:
	str	x21, [sp, #8]
	mov	x0, x21
	bl	_strlenW
	mov	x21, x0
	b	LBB0_7
LBB0_4:
Lloh3:
	adrp	x8, _COMCTL32_hModule@GOTPAGE
Lloh4:
	ldr	x8, [x8, _COMCTL32_hModule@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	add	x2, sp, #8
	mov	x1, x21
	mov	w3, #0
	bl	_LoadStringW
	mov	x21, x0
	cbnz	w0, LBB0_7
; %bb.6:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_WARN
Lloh7:
	adrp	x8, _taskdialog_get_text_extent.nulW@PAGE
Lloh8:
	add	x8, x8, _taskdialog_get_text_extent.nulW@PAGEOFF
	str	x8, [sp, #8]
LBB0_7:
	mov	w0, #0
	bl	_GetDC
	mov	x22, x0
	ldr	w1, [x20]
	bl	_SelectObject
	mov	x23, x0
	add	x25, sp, #16
	add	x24, x25, #24
	mov	x0, x20
	mov	x1, x24
	mov	x2, #0
	bl	_dialogunits_to_pixels
	ldr	x1, [sp, #8]
Lloh9:
	adrp	x8, _DT_LEFT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DT_LEFT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _DT_EXPANDTABS@GOTPAGE
Lloh13:
	ldr	x9, [x9, _DT_EXPANDTABS@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh15:
	adrp	x9, _DT_CALCRECT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _DT_CALCRECT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh18:
	adrp	x9, _DT_WORDBREAK@GOTPAGE
Lloh19:
	ldr	x9, [x9, _DT_WORDBREAK@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w4, w8, w9
	add	x3, sp, #16
	mov	x0, x22
	mov	x2, x21
	bl	_DrawTextW
	orr	x2, x25, #0x8
	mov	x0, x20
	mov	x1, x24
	bl	_pixels_to_dialogunits
	mov	x0, x22
	mov	x1, x23
	bl	_SelectObject
	mov	w0, #0
	mov	x1, x22
	bl	_ReleaseDC
	ldp	x9, x8, [sp, #32]
	sub	x8, x8, x9
	ldp	x10, x9, [sp, #16]
	sub	x9, x9, x10
	stp	x9, x8, [x19]
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DIALOG_SPACING,4,2             ; @DIALOG_SPACING
	.section	__TEXT,__const
	.p2align	2                               ; @taskdialog_get_text_extent.nulW
_taskdialog_get_text_extent.nulW:
	.long	0                               ; 0x0

	.comm	_COMCTL32_hModule,4,2           ; @COMCTL32_hModule
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to load text\n"

	.comm	_DT_LEFT,4,2                    ; @DT_LEFT
	.comm	_DT_EXPANDTABS,4,2              ; @DT_EXPANDTABS
	.comm	_DT_CALCRECT,4,2                ; @DT_CALCRECT
	.comm	_DT_WORDBREAK,4,2               ; @DT_WORDBREAK
	.no_dead_strip	_taskdialog_get_text_extent
.subsections_via_symbols
