	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function WINHELP_HandleCommand
_WINHELP_HandleCommand:                 ## @WINHELP_HandleCommand
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rax
	movl	(%rsi), %esi
	cmpl	$169731333, %esi                ## imm = 0xA1DE505
	jne	LBB0_1
## %bb.2:
	movq	8(%rax), %r14
	movl	$1, %ebx
	testq	%r14, %r14
	je	LBB0_21
## %bb.3:
	movq	(%r14), %rax
	movslq	%r14d, %rbx
	addq	%rax, %rbx
	testq	%rax, %rax
	cmoveq	%rax, %rbx
	movl	16(%r14), %r15d
	movl	8(%r14), %r12d
	movl	12(%r14), %r13d
	movq	%rbx, %rdi
	callq	_debugstr_a
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%r13d, %ecx
	movl	%eax, %r8d
	callq	_WINE_TRACE
	movl	8(%r14), %esi
	leal	-128(%rsi), %eax
	cmpl	$6, %eax
	ja	LBB0_19
## %bb.4:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_13:
	testq	%rbx, %rbx
	je	LBB0_20
## %bb.14:
	movl	12(%r14), %esi
	movq	%rbx, %rdi
	callq	_MACRO_SetContents
	jmp	LBB0_20
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_WINE_FIXME
	jmp	LBB0_21
LBB0_19:
	leaq	L_.str.4(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_WINE_FIXME
	jmp	LBB0_20
LBB0_11:
	xorl	%eax, %eax
	callq	_MACRO_HelpOn
	xorl	%eax, %eax
	callq	_WINHELP_HasWorkingWindow
	testl	%eax, %eax
	jne	LBB0_20
LBB0_12:
	xorl	%eax, %eax
	callq	_MACRO_Exit
	jmp	LBB0_20
LBB0_17:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_WINE_FIXME
	testq	%rbx, %rbx
	je	LBB0_20
## %bb.18:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_MACRO_JumpHash
	jmp	LBB0_20
LBB0_15:
	testq	%rbx, %rbx
	je	LBB0_20
## %bb.16:
	movl	12(%r14), %esi
	movq	%rbx, %rdi
	callq	_MACRO_PopupContext
LBB0_20:
	movl	$1, %ebx
LBB0_21:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.6:
	movl	12(%r14), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_MACRO_JumpContext
	jmp	LBB0_7
LBB0_9:
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.10:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_MACRO_JumpContents
LBB0_7:
	xorl	%eax, %eax
	callq	_WINHELP_HasWorkingWindow
	testl	%eax, %eax
	movl	$1, %ebx
	jne	LBB0_21
## %bb.8:
	xorl	%eax, %eax
	callq	_MACRO_Exit
	jmp	LBB0_21
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_13
	.long	L0_0_set_12
	.long	L0_0_set_11
	.long	L0_0_set_17
	.long	L0_0_set_15
	.long	L0_0_set_5
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Wrong magic number (%08lx)\n"

L_.str.1:                               ## @.str.1
	.asciz	"Got[%u]: cmd=%u data=%08x fn=%s\n"

L_.str.2:                               ## @.str.2
	.asciz	"main"

L_.str.3:                               ## @.str.3
	.asciz	"HELP_FINDER: stub\n"

L_.str.4:                               ## @.str.4
	.asciz	"Unhandled command (%x) for remote winhelp control\n"

	.no_dead_strip	_WINHELP_HandleCommand
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function WINHELP_HandleCommand
_WINHELP_HandleCommand:                 ; @WINHELP_HandleCommand
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	w8, [x1]
	mov	w9, #58629
	movk	w9, #2589, lsl #16
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.1:
	ldr	x23, [x1, #8]
	cbz	x23, LBB0_19
; %bb.2:
	ldr	x8, [x23]
	add	x9, x8, w23, sxtw
	cmp	x8, #0
	csel	x19, xzr, x9, eq
	ldp	w22, w20, [x23, #12]
	ldr	w21, [x23, #8]
	mov	x0, x19
	bl	_debugstr_a
	mov	x4, x0
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	bl	_WINE_TRACE
	ldr	w8, [x23, #8]
	sub	w9, w8, #128
	cmp	w9, #6
	b.hi	LBB0_7
; %bb.3:
Lloh2:
	adrp	x8, lJTI0_0@PAGE
Lloh3:
	add	x8, x8, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x8, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	cbz	x19, LBB0_19
; %bb.5:
	ldr	w1, [x23, #12]
	mov	x0, x19
	bl	_MACRO_SetContents
	b	LBB0_19
LBB0_6:
	str	x8, [sp]
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_WINE_FIXME
	mov	w0, #0
	b	LBB0_20
LBB0_7:
	str	x8, [sp]
Lloh6:
	adrp	x0, l_.str.4@PAGE
Lloh7:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_WINE_FIXME
	b	LBB0_19
LBB0_8:
	bl	_MACRO_HelpOn
	b	LBB0_17
LBB0_9:
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_WINE_FIXME
	cbz	x19, LBB0_19
; %bb.10:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	w2, #0
	bl	_MACRO_JumpHash
	b	LBB0_19
LBB0_11:
	cbz	x19, LBB0_19
; %bb.12:
	ldr	w1, [x23, #12]
	mov	x0, x19
	bl	_MACRO_PopupContext
	b	LBB0_19
LBB0_13:
	cbz	x19, LBB0_17
; %bb.14:
	ldr	w2, [x23, #12]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_MACRO_JumpContext
	b	LBB0_17
LBB0_15:
	cbz	x19, LBB0_17
; %bb.16:
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_MACRO_JumpContents
LBB0_17:
	bl	_WINHELP_HasWorkingWindow
	cbnz	w0, LBB0_19
LBB0_18:
	bl	_MACRO_Exit
LBB0_19:
	mov	w0, #1
LBB0_20:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_18-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_11-LBB0_4)>>2
	.byte	(LBB0_13-LBB0_4)>>2
	.byte	(LBB0_15-LBB0_4)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Wrong magic number (%08lx)\n"

l_.str.1:                               ; @.str.1
	.asciz	"Got[%u]: cmd=%u data=%08x fn=%s\n"

l_.str.2:                               ; @.str.2
	.asciz	"main"

l_.str.3:                               ; @.str.3
	.asciz	"HELP_FINDER: stub\n"

l_.str.4:                               ; @.str.4
	.asciz	"Unhandled command (%x) for remote winhelp control\n"

	.no_dead_strip	_WINHELP_HandleCommand
.subsections_via_symbols
