	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function PROPSHEET_CollectSheetInfoA
_PROPSHEET_CollectSheetInfoA:           ## @PROPSHEET_CollectSheetInfoA
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	40(%rdi), %edi
	movl	$4, %esi
	callq	_min
	movl	(%rbx), %edx
	movq	_PSH_USECALLBACK@GOTPCREL(%rip), %rcx
	testl	%edx, (%rcx)
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_1
## %bb.2:
	xorl	%ecx, %ecx
	cmpq	$0, 24(%rbx)
	setne	%cl
	jmp	LBB0_3
LBB0_1:
	xorl	%ecx, %ecx
LBB0_3:
	movl	%ecx, (%r14)
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	leaq	24(%r14), %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_memcpy
	movl	40(%rbx), %r12d
	movl	36(%rbx), %r14d
	movl	32(%rbx), %r13d
	movl	(%rbx), %r15d
	movl	20(%rbx), %edi
	callq	_debugstr_a
	movl	16(%rbx), %r10d
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	movl	%r13d, %r8d
	movl	%eax, %r9d
	xorl	%eax, %eax
	pushq	24(%rbx)
	pushq	%r10
	callq	_TRACE
	addq	$16, %rsp
	movq	_INTRNL_ANY_WIZARD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_5
## %bb.4:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	xorl	%r15d, %r15d
LBB0_7:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%r15, (%rax)
	jmp	LBB0_8
LBB0_5:
	movl	20(%rbx), %edi
	callq	_IS_INTRESOURCE
	testl	%eax, %eax
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	je	LBB0_6
LBB0_8:
	movl	16(%rbx), %eax
	movl	%eax, 16(%r12)
	movq	_PSH_USEPSTARTPAGE@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_10
## %bb.9:
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_TRACE
	jmp	LBB0_11
LBB0_10:
	movq	8(%rbx), %rbx
LBB0_11:
	movq	%rbx, 8(%r12)
	movq	%r12, %rdi
	movl	%r13d, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PROPSHEET_CollectSheetInfoCommon ## TAILCALL
LBB0_6:
	movq	_CP_ACP@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movl	20(%rbx), %edx
	xorl	%esi, %esi
	movl	$-1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_MultiByteToWideChar
	movl	%eax, %r14d
	leal	(,%r14,4), %edi
	callq	_Alloc
	movl	(%r15), %edi
	movq	%rax, %r15
	movl	20(%rbx), %edx
	xorl	%esi, %esi
	movl	$-1, %ecx
	movq	%rax, %r8
	movl	%r14d, %r9d
	callq	_MultiByteToWideChar
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_PSH_USECALLBACK,4,2            ## @PSH_USECALLBACK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n** PROPSHEETHEADER **\ndwSize\t\t%d\ndwFlags\t\t%08x\nhwndParent\t%p\nhInstance\t%p\npszCaption\t'%s'\nnPages\t\t%d\npfnCallback\t%p\n"

	.comm	_INTRNL_ANY_WIZARD,4,2          ## @INTRNL_ANY_WIZARD
	.comm	_CP_ACP,4,2                     ## @CP_ACP
	.comm	_PSH_USEPSTARTPAGE,4,2          ## @PSH_USEPSTARTPAGE
L_.str.1:                               ## @.str.1
	.asciz	"PSH_USEPSTARTPAGE is on\n"

	.no_dead_strip	_PROPSHEET_CollectSheetInfoA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function PROPSHEET_CollectSheetInfoA
_PROPSHEET_CollectSheetInfoA:           ; @PROPSHEET_CollectSheetInfoA
	.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, x1
	mov	x21, x0
	ldr	w0, [x0, #40]
	mov	w1, #4
	bl	_min
	mov	x2, x0
	ldr	w20, [x21]
Lloh0:
	adrp	x8, _PSH_USECALLBACK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PSH_USECALLBACK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x21, #24]
	cmp	x8, #0
	cset	w8, ne
	b	LBB0_3
LBB0_2:
	mov	w8, #0
LBB0_3:
	mov	x22, x19
	str	w8, [x22], #24
	mov	x0, x22
	mov	x1, x21
	bl	_memcpy
	ldr	w0, [x21, #20]
	ldp	w25, w23, [x21, #36]
	ldr	w24, [x21]
	ldr	w26, [x21, #32]
	bl	_debugstr_a
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x21, #24]
	ldr	w9, [x21, #16]
	stp	x9, x8, [sp, #40]
	stp	x26, x0, [sp, #24]
	stp	x24, x25, [sp, #8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	str	x23, [sp]
	bl	_TRACE
	ldr	w8, [x21]
Lloh5:
	adrp	x9, _INTRNL_ANY_WIZARD@GOTPAGE
Lloh6:
	ldr	x9, [x9, _INTRNL_ANY_WIZARD@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.4:
	mov	x23, #0
LBB0_5:
	str	x23, [x22]
	b	LBB0_7
LBB0_6:
	ldr	w0, [x21, #20]
	bl	_IS_INTRESOURCE
	cbz	w0, LBB0_11
LBB0_7:
	ldr	w8, [x21, #16]
	str	w8, [x19, #16]
Lloh8:
	adrp	x8, _PSH_USEPSTARTPAGE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PSH_USEPSTARTPAGE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_9
; %bb.8:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TRACE
	mov	x8, #0
	b	LBB0_10
LBB0_9:
	ldr	x8, [x21, #8]
LBB0_10:
	str	x8, [x19, #8]
	mov	x0, x19
	mov	x1, x20
	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
	b	_PROPSHEET_CollectSheetInfoCommon
LBB0_11:
Lloh13:
	adrp	x25, _CP_ACP@GOTPAGE
Lloh14:
	ldr	x25, [x25, _CP_ACP@GOTPAGEOFF]
	ldr	w0, [x25]
	ldr	w2, [x21, #20]
	mov	w1, #0
	mov	w3, #-1
	mov	x4, #0
	mov	w5, #0
	bl	_MultiByteToWideChar
	mov	x24, x0
	lsl	w0, w0, #2
	bl	_Alloc
	mov	x23, x0
	ldr	w0, [x25]
	ldr	w2, [x21, #20]
	mov	w1, #0
	mov	w3, #-1
	mov	x4, x23
	mov	x5, x24
	bl	_MultiByteToWideChar
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_PSH_USECALLBACK,4,2            ; @PSH_USECALLBACK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n** PROPSHEETHEADER **\ndwSize\t\t%d\ndwFlags\t\t%08x\nhwndParent\t%p\nhInstance\t%p\npszCaption\t'%s'\nnPages\t\t%d\npfnCallback\t%p\n"

	.comm	_INTRNL_ANY_WIZARD,4,2          ; @INTRNL_ANY_WIZARD
	.comm	_CP_ACP,4,2                     ; @CP_ACP
	.comm	_PSH_USEPSTARTPAGE,4,2          ; @PSH_USEPSTARTPAGE
l_.str.1:                               ; @.str.1
	.asciz	"PSH_USEPSTARTPAGE is on\n"

	.no_dead_strip	_PROPSHEET_CollectSheetInfoA
.subsections_via_symbols
