	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ip_LogDNS
_ip_LogDNS:                             ## @ip_LogDNS
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -120(%rbp)                ## 8-byte Spill
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movsbl	(%rdi), %edi
	callq	_ntohs
	movl	%eax, %ebx
	leal	-1(%rbx), %eax
	cmpl	$21, %eax
	jb	LBB0_11
## %bb.1:
	movsbl	1(%r15), %edi
	callq	_ntohs
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movsbl	2(%r15), %edi
	callq	_ntohs
	movl	%eax, -104(%rbp)                ## 4-byte Spill
	movsbl	3(%r15), %edi
	callq	_ntohs
	movl	%eax, -100(%rbp)                ## 4-byte Spill
	movsbl	4(%r15), %edi
	callq	_ntohs
	movl	%eax, %r12d
	movsbl	5(%r15), %edi
	callq	_ntohs
	movl	%eax, -96(%rbp)                 ## 4-byte Spill
	movsbl	6(%r15), %edi
	callq	_ntohs
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	movsbl	7(%r15), %edi
	callq	_ntohs
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	movsbl	8(%r15), %edi
	callq	_ntohs
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	movl	%eax, %r13d
	movsbl	9(%r15), %edi
	callq	_ntohs
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movsbl	10(%r15), %edi
	callq	_ntohs
	movl	%eax, %ebx
	movsbl	11(%r15), %edi
	callq	_ntohs
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	movsbl	12(%r15), %edi
	callq	_ntohs
	movl	%eax, %r14d
	movsbl	13(%r15), %edi
	callq	_ntohs
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movsbl	14(%r15), %edi
	callq	_ntohs
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movsbl	15(%r15), %edi
	callq	_ntohs
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movsbl	16(%r15), %edi
	callq	_ntohs
                                        ## kill: def $eax killed $eax def $rax
	shlq	$56, %r13
	movzbl	-88(%rbp), %ecx                 ## 1-byte Folded Reload
	shlq	$48, %rcx
	orq	%r13, %rcx
	movq	-112(%rbp), %r13                ## 8-byte Reload
	movzbl	-92(%rbp), %edx                 ## 1-byte Folded Reload
	shlq	$40, %rdx
	orq	%rcx, %rdx
	movzbl	-96(%rbp), %ecx                 ## 1-byte Folded Reload
	shlq	$32, %rcx
	orq	%rdx, %rcx
	shll	$24, %r12d
	orq	%rcx, %r12
	movl	-104(%rbp), %esi                ## 4-byte Reload
	shll	$8, %esi
	movzbl	-100(%rbp), %ecx                ## 1-byte Folded Reload
	shll	$16, %ecx
	orq	%r12, %rcx
	movzbl	-64(%rbp), %edx                 ## 1-byte Folded Reload
	movzwl	%si, %esi
	orq	%rcx, %rsi
	orq	%rdx, %rsi
	movq	_OPCODE_QUERY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rsi
	jne	LBB0_11
## %bb.2:
	shll	$8, %ebx
	movzwl	%bx, %ecx
	movzbl	-84(%rbp), %edx                 ## 1-byte Folded Reload
	orl	%ecx, %edx
	shll	$24, %r14d
	movzbl	-80(%rbp), %ecx                 ## 1-byte Folded Reload
	shll	$16, %ecx
	orl	%edx, %ecx
	orl	%r14d, %ecx
	movzbl	-68(%rbp), %edx                 ## 1-byte Folded Reload
	shlq	$32, %rdx
	orq	%rcx, %rdx
	movzbl	-72(%rbp), %ecx                 ## 1-byte Folded Reload
	shlq	$40, %rcx
	orq	%rdx, %rcx
	movzbl	-76(%rbp), %edx                 ## 1-byte Folded Reload
	shlq	$48, %rdx
	orq	%rcx, %rdx
	shlq	$56, %rax
	orq	%rdx, %rax
	testq	%rax, %rax
	jne	LBB0_11
## %bb.3:
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	addq	$17, %r15
	addl	$-17, %r13d
	movq	_MAXHOSTNAMELEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
	incq	%rbx
	movl	%ebx, %r14d
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	leaq	(%r15,%r13), %rax
	addq	$-4, %rax
	movq	%rax, %rcx
	subq	%r15, %rcx
	cmpq	%rbx, %rcx
	leaq	-1(%r15,%r14), %r14
	cmovlq	%rax, %r14
	movq	%r12, %rbx
	cmpq	%r14, %r15
	jae	LBB0_8
## %bb.4:
	movq	%r12, %rax
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	_memcpy
	movl	%r13d, %eax
	addq	%rax, %r15
	addq	%rax, %rbx
	movq	%rbx, %rax
	cmpq	%r14, %r15
	jae	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movsbq	(%r15), %rcx
	incq	%r15
	movq	%r14, %r13
	subq	%r15, %r13
	cmpq	%rcx, %r13
	cmovgel	%ecx, %r13d
	movq	%r12, %rbx
	cmpq	%r12, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movb	$46, (%rax)
	incq	%rax
	movq	%rax, %rbx
	jmp	LBB0_7
LBB0_8:
	movb	$0, (%rbx)
	movq	_LogDNS@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_log_IsKept
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	leaq	-49(%rbp), %r15
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_memcpy
	movsbl	-49(%rbp), %edi
	callq	_ntohs
	movl	%eax, %edi
	callq	_dns_Qtype2Txt
	movq	%rax, %rbx
	addq	$2, %r14
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_memcpy
	movsbl	-49(%rbp), %edi
	callq	_ntohs
	movl	%eax, %edi
	callq	_dns_Qclass2Txt
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
	movq	-120(%rbp), %rdx                ## 8-byte Reload
	movq	%rax, %rcx
	movq	%rbx, %r8
	movq	%r12, %r9
	callq	_log_Printf
LBB0_10:
	movq	-64(%rbp), %rsp                 ## 8-byte Reload
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_OPCODE_QUERY,8,3               ## @OPCODE_QUERY
	.comm	_MAXHOSTNAMELEN,4,2             ## @MAXHOSTNAMELEN
	.comm	_LogDNS,4,2                     ## @LogDNS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%sbound query %s %s %s\n"

	.no_dead_strip	_ip_LogDNS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ip_LogDNS
_ip_LogDNS:                             ; @ip_LogDNS
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #48
	mov	x23, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldrsb	w0, [x0]
	bl	_ntohs
	sub	w8, w0, #1
	cmp	w8, #21
	b.lo	LBB0_11
; %bb.1:
	mov	x21, x0
	ldrsb	w0, [x20, #1]
	bl	_ntohs
	stur	w0, [x29, #-96]                 ; 4-byte Folded Spill
	ldrsb	w0, [x20, #2]
	bl	_ntohs
	stur	w0, [x29, #-100]                ; 4-byte Folded Spill
	ldrsb	w0, [x20, #3]
	bl	_ntohs
	stur	w0, [x29, #-104]                ; 4-byte Folded Spill
	ldrsb	w0, [x20, #4]
	bl	_ntohs
	stur	w0, [x29, #-108]                ; 4-byte Folded Spill
	ldrsb	w0, [x20, #5]
	bl	_ntohs
	stur	w0, [x29, #-112]                ; 4-byte Folded Spill
	ldrsb	w0, [x20, #6]
	bl	_ntohs
	mov	x19, x0
	ldrsb	w0, [x20, #7]
	bl	_ntohs
	mov	x22, x0
	ldrsb	w0, [x20, #8]
	bl	_ntohs
	mov	x27, x0
	ldrsb	w0, [x20, #9]
	bl	_ntohs
	mov	x24, x0
	ldrsb	w0, [x20, #10]
	bl	_ntohs
	stur	w0, [x29, #-116]                ; 4-byte Folded Spill
	ldrsb	w0, [x20, #11]
	bl	_ntohs
	stur	w0, [x29, #-120]                ; 4-byte Folded Spill
	ldrsb	w0, [x20, #12]
	bl	_ntohs
	stur	w0, [x29, #-124]                ; 4-byte Folded Spill
	ldrsb	w0, [x20, #13]
	bl	_ntohs
	mov	x25, x0
	ldrsb	w0, [x20, #14]
	bl	_ntohs
	mov	x26, x0
	ldrsb	w0, [x20, #15]
	bl	_ntohs
	mov	x28, x0
	ldrsb	w0, [x20, #16]
	bl	_ntohs
                                        ; kill: def $w0 killed $w0 def $x0
	and	w8, w22, #0xff
	lsl	x8, x8, #48
	bfi	x8, x27, #56, #8
	and	w9, w19, #0xff
	bfi	x8, x9, #40, #8
	ldur	w9, [x29, #-112]                ; 4-byte Folded Reload
	and	w9, w9, #0xff
	bfi	x8, x9, #32, #8
	ldur	w9, [x29, #-108]                ; 4-byte Folded Reload
	lsl	w9, w9, #24
	orr	x8, x8, x9
	ldp	w9, w10, [x29, #-104]           ; 8-byte Folded Reload
	ubfiz	w9, w9, #16, #8
	orr	x8, x8, x9
	ldur	w9, [x29, #-96]                 ; 4-byte Folded Reload
	and	w9, w9, #0xff
	ubfiz	w10, w10, #8, #8
	orr	x8, x8, x10
	orr	x8, x8, x9
Lloh3:
	adrp	x9, _OPCODE_QUERY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _OPCODE_QUERY@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.2:
	ldur	w8, [x29, #-116]                ; 4-byte Folded Reload
	bfi	w24, w8, #8, #8
	ldur	w8, [x29, #-120]                ; 4-byte Folded Reload
	bfi	w24, w8, #16, #8
	ldur	w8, [x29, #-124]                ; 4-byte Folded Reload
	bfi	w24, w8, #24, #8
	and	w8, w25, #0xff
	bfi	x24, x8, #32, #8
	and	w8, w26, #0xff
	bfi	x24, x8, #40, #8
	and	w8, w28, #0xff
	bfi	x24, x8, #48, #8
	bfi	x24, x0, #56, #8
	cbnz	x24, LBB0_11
; %bb.3:
	mov	x27, x23
	mov	x24, sp
	add	x22, x20, #17
	sub	w12, w21, #17
Lloh6:
	adrp	x8, _MAXHOSTNAMELEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAXHOSTNAMELEN@GOTPAGEOFF]
Lloh8:
	ldrsw	x8, [x8]
	add	x13, x8, #1
	and	x8, x13, #0xffffffff
	mov	x9, x8
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x10, x10, #0x1fffffff0
	sub	x20, x9, x10
	mov	sp, x20
	add	x9, x22, x12
	sub	x9, x9, #4
	add	x8, x22, x8
	sub	x8, x8, #1
	sub	x10, x9, x22
	cmp	x10, x13
	csel	x21, x9, x8, lt
	mov	x8, x20
	cmp	x22, x21
	b.hs	LBB0_8
; %bb.4:
	mov	w25, #46
	mov	x8, x20
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x23
	mov	x1, x22
	mov	x2, x19
	bl	_memcpy
	add	x8, x23, x19
	add	x22, x22, x19
	cmp	x22, x21
	b.hs	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	x9, [x22], #1
	sub	x10, x21, x22
	cmp	x10, x9
	csel	w19, w10, w9, lt
	mov	x23, x20
	cmp	x8, x20
	b.eq	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	strb	w25, [x8], #1
	mov	x23, x8
	b	LBB0_5
LBB0_8:
	strb	wzr, [x8]
Lloh11:
	adrp	x22, _LogDNS@GOTPAGE
Lloh12:
	ldr	x22, [x22, _LogDNS@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_log_IsKept
	cbz	x0, LBB0_10
; %bb.9:
	sub	x0, x29, #89
	mov	x1, x21
	mov	w2, #1
	bl	_memcpy
	ldursb	w0, [x29, #-89]
	bl	_ntohs
	bl	_dns_Qtype2Txt
	mov	x19, x0
	add	x1, x21, #2
	sub	x0, x29, #89
	mov	w2, #1
	bl	_memcpy
	ldursb	w0, [x29, #-89]
	bl	_ntohs
	bl	_dns_Qclass2Txt
	mov	x3, x0
	ldr	w0, [x22]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x27
	mov	x4, x19
	mov	x5, x20
	bl	_log_Printf
LBB0_10:
	mov	sp, x24
LBB0_11:
	ldur	x8, [x29, #-88]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_OPCODE_QUERY,8,3               ; @OPCODE_QUERY
	.comm	_MAXHOSTNAMELEN,4,2             ; @MAXHOSTNAMELEN
	.comm	_LogDNS,4,2                     ; @LogDNS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%sbound query %s %s %s\n"

	.no_dead_strip	_ip_LogDNS
.subsections_via_symbols
