	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function taskdialog_add_control
_taskdialog_add_control:                ## @taskdialog_add_control
	.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
	movl	%r9d, %r13d
	movq	%r8, %r14
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %rbx
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movl	$16, %edi
	callq	_Alloc
	movq	%rax, %r15
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_strlenW
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_IS_INTRESOURCE
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	-56(%rbp), %rdx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r14d, %esi
	xorl	%ecx, %ecx
	callq	_LoadStringW
	jmp	LBB0_3
LBB0_2:
	movq	%r14, -56(%rbp)
	movq	%r14, %rdi
	callq	_strlenW
LBB0_3:
	movl	%eax, %r14d
	shll	$2, %r14d
	leal	4(,%r12,4), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leal	(%r14,%r12,4), %r12d
	addl	$36, %r12d
	movl	%r12d, %edi
	callq	_Alloc
	movq	%rax, 8(%r15)
	movl	%r12d, (%r15)
	movq	_WS_VISIBLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r13d
	movl	%r13d, (%rax)
	movq	$0, 16(%rax)
	movzwl	16(%rbp), %ecx
	movw	%cx, 4(%rax)
	movzwl	24(%rbp), %ecx
	movw	%cx, 6(%rax)
	movzwl	32(%rbp), %ecx
	movw	%cx, 8(%rax)
	movzwl	40(%rbp), %ecx
	movw	%cx, 10(%rax)
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 12(%rax)
	addq	$24, %rax
	movq	%rax, -80(%rbp)
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_template_write_data
	movq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_template_write_data
	leaq	_taskdialog_add_control.nulW(%rip), %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_template_write_data
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	leaq	4(%rbx), %rdi
	addq	$4, %r15
	movq	%r15, %rsi
	callq	_list_add_tail
	incl	(%rbx)
	movl	%r12d, %edi
	movl	$3, %esi
	callq	_ALIGNED_LENGTH
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @taskdialog_add_control.nulW
_taskdialog_add_control.nulW:
	.long	0                               ## 0x0

	.comm	_WS_VISIBLE,4,2                 ## @WS_VISIBLE
	.no_dead_strip	_taskdialog_add_control
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function taskdialog_add_control
_taskdialog_add_control:                ; @taskdialog_add_control
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	stp	w6, w7, [sp, #8]                ; 8-byte Folded Spill
	mov	x25, x5
	mov	x26, x4
	mov	x28, x3
	mov	x21, x2
	mov	x24, x1
	mov	x19, x0
	ldrsh	w22, [x29, #18]
	ldrsh	w23, [x29, #16]
	mov	w0, #16
	bl	_Alloc
	mov	x20, x0
	mov	x0, x21
	bl	_strlenW
	mov	x27, x0
	mov	x0, x26
	bl	_IS_INTRESOURCE
	cbz	x0, LBB0_2
; %bb.1:
	add	x2, sp, #24
	mov	x0, x28
	mov	x1, x26
	mov	w3, #0
	bl	_LoadStringW
	b	LBB0_3
LBB0_2:
	str	x26, [sp, #24]
	mov	x0, x26
	bl	_strlenW
LBB0_3:
	lsl	w26, w0, #2
	lsl	w8, w27, #2
	add	w27, w8, #4
	add	w8, w8, w26
	add	w28, w8, #36
	mov	x0, x28
	bl	_Alloc
	str	x0, [x20, #8]
Lloh0:
	adrp	x8, _WS_VISIBLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WS_VISIBLE@GOTPAGEOFF]
	str	w28, [x20]
Lloh2:
	ldr	w8, [x8]
	orr	w8, w8, w25
	str	w8, [x0]
	str	xzr, [x0, #16]
	ldr	w8, [sp, #8]                    ; 4-byte Folded Reload
	strh	w8, [x0, #4]
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	strh	w8, [x0, #6]
	strh	w23, [x0, #8]
	strh	w22, [x0, #10]
	str	w24, [x0, #12]
	add	x8, x0, #24
	str	x8, [sp, #16]
	add	x0, sp, #16
	mov	x1, x21
	mov	x2, x27
	bl	_template_write_data
	ldr	x1, [sp, #24]
	add	x0, sp, #16
	mov	x2, x26
	bl	_template_write_data
Lloh3:
	adrp	x1, _taskdialog_add_control.nulW@PAGE
Lloh4:
	add	x1, x1, _taskdialog_add_control.nulW@PAGEOFF
	add	x0, sp, #16
	mov	w2, #4
	bl	_template_write_data
	add	x0, x19, #4
	add	x1, x20, #4
	bl	_list_add_tail
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	mov	x0, x28
	mov	w1, #3
	bl	_ALIGNED_LENGTH
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @taskdialog_add_control.nulW
_taskdialog_add_control.nulW:
	.long	0                               ; 0x0

	.comm	_WS_VISIBLE,4,2                 ; @WS_VISIBLE
	.no_dead_strip	_taskdialog_add_control
.subsections_via_symbols
