	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_windbg_get_target_base         ## -- Begin function windbg_get_target_base
	.p2align	4, 0x90
_windbg_get_target_base:                ## @windbg_get_target_base
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	$0, -24(%rbp)
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.1:
	movq	%rdi, %rbx
	cmpl	$0, 20(%rdi)
	je	LBB0_12
## %bb.2:
	cmpl	$0, 16(%rbx)
	je	LBB0_12
## %bb.3:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.4:
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_windbg_va_to_pa
	testl	%eax, %eax
	je	LBB0_12
## %bb.5:
	movq	-32(%rbp), %r14
	movq	_P_ImageBaseAddress@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_O_
	addq	%rax, %r14
	movb	(%rbx), %cl
	movl	$4, %eax
	shll	%cl, %eax
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	movl	%eax, %ecx
	callq	_windbg_read_at_phys
	testl	%eax, %eax
	je	LBB0_12
## %bb.6:
	movq	-24(%rbp), %rax
	jmp	LBB0_13
LBB0_12:
	xorl	%eax, %eax
LBB0_13:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_P_ImageBaseAddress,4,2         ## @P_ImageBaseAddress
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_windbg_get_target_base         ; -- Begin function windbg_get_target_base
	.p2align	2
_windbg_get_target_base:                ; @windbg_get_target_base
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	str	xzr, [sp]
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #20]
	cbz	w8, LBB0_6
; %bb.2:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_6
; %bb.3:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_6
; %bb.4:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_windbg_va_to_pa
	cbz	w0, LBB0_6
; %bb.5:
	ldr	x20, [sp, #8]
Lloh0:
	adrp	x8, _P_ImageBaseAddress@GOTPAGE
Lloh1:
	ldr	x8, [x8, _P_ImageBaseAddress@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_O_
	add	x2, x0, x20
	ldr	w8, [x19]
	mov	w9, #4
	lsl	w3, w9, w8
	mov	x1, sp
	mov	x0, x19
	bl	_windbg_read_at_phys
	ldr	x8, [sp]
	cmp	w0, #0
	csel	x0, xzr, x8, eq
	b	LBB0_7
LBB0_6:
	mov	x0, #0
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_P_ImageBaseAddress,4,2         ; @P_ImageBaseAddress
.subsections_via_symbols
