	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gdb_kod_query
_gdb_kod_query:                         ## @gdb_kod_query
	.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	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_TARGET_OBJECT_KOD@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_current_target@GOTPCREL(%rip), %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_target_read_partial
	movq	%rax, %rbx
	testl	%ebx, %ebx
	js	LBB0_1
## %bb.2:
	movl	(%r12), %eax
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	cmpl	%ebx, %eax
	cmovll	%eax, %ebx
	movq	%r15, %rdi
	callq	_strlen
	cmpl	%ebx, %eax
	jl	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	callq	_error
LBB0_6:
	movl	(%r13), %esi
	movq	_current_target@GOTPCREL(%rip), %rdi
	movq	%r15, %rdx
	movq	%r14, %rcx
	xorl	%r8d, %r8d
	movl	%ebx, %r9d
	callq	_target_read_partial
	testq	%rax, %rax
	js	LBB0_7
## %bb.9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_8
LBB0_3:
	movl	%ebx, (%r12)
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.3(%rip), %rsi
LBB0_8:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_strcpy                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_current_target,4,2             ## @current_target
	.comm	_TARGET_OBJECT_KOD,4,2          ## @TARGET_OBJECT_KOD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ERR: Kernel Object Display not supported by current target\n"

L_.str.1:                               ## @.str.1
	.asciz	"OK"

L_.str.2:                               ## @.str.2
	.asciz	"kod: query argument too long"

L_.str.3:                               ## @.str.3
	.asciz	"ERR: remote query failed"

	.no_dead_strip	_gdb_kod_query
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gdb_kod_query
_gdb_kod_query:                         ; @gdb_kod_query
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _TARGET_OBJECT_KOD@GOTPAGE
Lloh1:
	ldr	x22, [x22, _TARGET_OBJECT_KOD@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh2:
	adrp	x0, _current_target@GOTPAGE
Lloh3:
	ldr	x0, [x0, _current_target@GOTPAGEOFF]
	mov	x2, #0
	mov	x3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_target_read_partial
	tbnz	w0, #31, LBB0_6
; %bb.1:
	ldr	w8, [x21]
	cbz	w8, LBB0_7
; %bb.2:
	cmp	w8, w0
	csel	w21, w8, w0, lt
	mov	x0, x20
	bl	_strlen
	cmp	w0, w21
	b.lt	LBB0_4
; %bb.3:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_error
LBB0_4:
	ldr	w1, [x22]
Lloh6:
	adrp	x0, _current_target@GOTPAGE
Lloh7:
	ldr	x0, [x0, _current_target@GOTPAGEOFF]
	mov	x2, x20
	mov	x3, x19
	mov	w4, #0
	mov	x5, x21
	bl	_target_read_partial
	tbnz	x0, #63, LBB0_8
; %bb.5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_9
LBB0_7:
	str	w0, [x21]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_strcpy
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_current_target,4,2             ; @current_target
	.comm	_TARGET_OBJECT_KOD,4,2          ; @TARGET_OBJECT_KOD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ERR: Kernel Object Display not supported by current target\n"

l_.str.1:                               ; @.str.1
	.asciz	"OK"

l_.str.2:                               ; @.str.2
	.asciz	"kod: query argument too long"

l_.str.3:                               ; @.str.3
	.asciz	"ERR: remote query failed"

	.no_dead_strip	_gdb_kod_query
.subsections_via_symbols
