	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_respip_rewrite_reply           ## -- Begin function respip_rewrite_reply
	.p2align	4, 0x90
_respip_rewrite_reply:                  ## @respip_rewrite_reply
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movq	24(%rbp), %r10
	movl	16(%rbp), %r15d
	movq	$0, -88(%rbp)
	movq	_respip_none@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$-1, -52(%rbp)
	movq	$0, -80(%rbp)
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r8
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r9, -128(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	56(%rsi), %rbx
	movq	(%rsi), %rax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movq	8(%rsi), %rax
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	movq	48(%rsi), %r15
	movq	40(%rsi), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	16(%rsi), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	32(%rsi), %r14
	movq	24(%rsi), %r13
	testq	%r14, %r14
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_8
## %bb.3:
	movq	%r14, %rdi
	callq	_lock_rw_rdlock
	movq	8(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.4:
	leaq	-88(%rbp), %rdx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_respip_addr_lookup
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rax, %r12
	movl	(%rax), %eax
	jmp	LBB0_15
LBB0_1:
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	jmp	LBB0_33
LBB0_6:
	cmpl	$0, 4(%r14)
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	je	LBB0_7
LBB0_8:
	movl	$1, %eax
	testq	%r13, %r13
	je	LBB0_9
## %bb.11:
	leaq	8(%r13), %rsi
	leaq	-88(%rbp), %rdx
	movq	%r8, %rdi
	callq	_respip_addr_lookup
	testq	%rax, %rax
	je	LBB0_12
## %bb.14:
	movq	%rax, %r12
	movl	8(%rax), %edi
	movl	(%rax), %r10d
	movl	4(%rax), %esi
	movl	(%r13), %eax
	movl	4(%r13), %r11d
	movq	%rbx, %rdx
	movq	-136(%rbp), %rcx                ## 8-byte Reload
	movq	%r15, %r8
	movq	-144(%rbp), %r9                 ## 8-byte Reload
	pushq	%rax
	pushq	%r11
	leaq	-52(%rbp), %rax
	pushq	%rax
	pushq	%r10
	callq	_local_data_find_tag_action
	addq	$32, %rsp
LBB0_15:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	$1, %eax
	movl	16(%rbp), %ebx
	movq	%rbx, %r15
	testl	%r15d, %r15d
	jne	LBB0_24
## %bb.16:
	movq	_respip_always_refuse@GOTPCREL(%rip), %rax
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	cmpl	(%rax), %esi
	je	LBB0_22
## %bb.17:
	movq	_respip_always_transparent@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	je	LBB0_22
## %bb.18:
	movq	_respip_always_nxdomain@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	je	LBB0_22
## %bb.19:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movq	-88(%rbp), %r8
	movl	-52(%rbp), %r10d
	movl	(%r13), %eax
	movl	4(%r13), %r11d
	subq	$8, %rsp
	leaq	-80(%rbp), %r15
	movq	%r12, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	-104(%rbp), %r9                 ## 8-byte Reload
	pushq	24(%rbp)
	pushq	%r15
	pushq	%rax
	pushq	%r11
	pushq	-112(%rbp)                      ## 8-byte Folded Reload
	pushq	-120(%rbp)                      ## 8-byte Folded Reload
	pushq	%r10
	callq	_respip_data_answer
	addq	$64, %rsp
	testl	%eax, %eax
	js	LBB0_20
## %bb.21:
	movl	16(%rbp), %ebx
	movq	%rbx, %r15
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	jne	LBB0_13
LBB0_22:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	-88(%rbp), %rcx
                                        ## kill: def $esi killed $esi killed $rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	-104(%rbp), %r8                 ## 8-byte Reload
	movq	24(%rbp), %r9
	callq	_respip_nodata_answer
	testl	%eax, %eax
	jne	LBB0_13
## %bb.23:
	xorl	%eax, %eax
	testq	%r14, %r14
	jne	LBB0_25
	jmp	LBB0_26
LBB0_9:
	xorl	%r12d, %r12d
LBB0_10:
	movl	16(%rbp), %ebx
	movq	%rbx, %r15
LBB0_24:
	testq	%r14, %r14
	jne	LBB0_25
LBB0_26:
	testl	%eax, %eax
	je	LBB0_27
LBB0_28:
	movq	-80(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_32
## %bb.29:
	movq	(%rax), %r14
	movq	_LDNS_RR_TYPE_CNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ntohs
	cmpq	%rax, %r14
	jne	LBB0_32
## %bb.30:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movq	_LDNS_RR_TYPE_ANY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_32
## %bb.31:
	movq	-80(%rbp), %rax
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	movq	%rax, (%rcx)
LBB0_32:
	movq	24(%rbp), %r10
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	-48(%rbp), %rax                 ## 8-byte Reload
LBB0_33:
	movq	-80(%rbp), %rcx
	movl	-52(%rbp), %r8d
	movq	%rbx, %rdi
	movl	%eax, %esi
	movq	%r12, %rdx
	movq	%r13, %r9
	pushq	%r10
	pushq	%r15
	callq	_populate_action_info
	addq	$16, %rsp
	jmp	LBB0_34
LBB0_7:
	movl	$1, %eax
	xorl	%r12d, %r12d
	movl	16(%rbp), %ebx
	movq	%rbx, %r15
	jmp	LBB0_25
LBB0_12:
	xorl	%r12d, %r12d
	movl	16(%rbp), %ebx
	movq	%rbx, %r15
LBB0_13:
	movl	$1, %eax
	testq	%r14, %r14
	je	LBB0_26
LBB0_25:
	movq	%r14, %rdi
	movl	%eax, %ebx
	callq	_lock_rw_unlock
	movl	%ebx, %eax
	testl	%eax, %eax
	jne	LBB0_28
LBB0_27:
	xorl	%eax, %eax
LBB0_34:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	xorl	%eax, %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_respip_none,4,2                ## @respip_none
	.comm	_respip_always_refuse,4,2       ## @respip_always_refuse
	.comm	_respip_always_transparent,4,2  ## @respip_always_transparent
	.comm	_respip_always_nxdomain,4,2     ## @respip_always_nxdomain
	.comm	_LDNS_RR_TYPE_CNAME,4,2         ## @LDNS_RR_TYPE_CNAME
	.comm	_LDNS_RR_TYPE_ANY,4,2           ## @LDNS_RR_TYPE_ANY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_respip_rewrite_reply           ; -- Begin function respip_rewrite_reply
	.p2align	2
_respip_rewrite_reply:                  ; @respip_rewrite_reply
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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
	mov	x20, x6
	mov	x9, x4
	stur	xzr, [x29, #-88]
Lloh0:
	adrp	x8, _respip_none@GOTPAGE
Lloh1:
	ldr	x8, [x8, _respip_none@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
	mov	w8, #-1
	stur	w8, [x29, #-92]
	str	xzr, [sp, #88]
	cbz	x1, LBB0_5
; %bb.1:
	mov	x23, x2
	stp	x3, x0, [sp, #56]               ; 16-byte Folded Spill
	stp	x9, x7, [sp, #72]               ; 16-byte Folded Spill
	ldp	x21, x25, [x1, #48]
	ldp	x28, x19, [x1]
	ldp	x27, x8, [x1, #32]
	stp	x8, x5, [sp, #40]               ; 16-byte Folded Spill
	ldp	x8, x22, [x1, #16]
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
	cbz	x27, LBB0_7
; %bb.2:
	mov	x0, x27
	bl	_lock_rw_rdlock
	ldr	x1, [x27, #8]
	cbz	x1, LBB0_6
; %bb.3:
	sub	x2, x29, #88
	mov	x0, x23
	bl	_respip_addr_lookup
	cbz	x0, LBB0_6
; %bb.4:
	mov	x26, x0
	ldr	w24, [x0]
	cbnz	w20, LBB0_18
	b	LBB0_10
LBB0_5:
	mov	x26, #0
	mov	x22, #0
	b	LBB0_26
LBB0_6:
	ldr	w8, [x27, #4]
	cbz	w8, LBB0_27
LBB0_7:
	cbz	x22, LBB0_17
; %bb.8:
	add	x1, x22, #8
	sub	x2, x29, #88
	mov	x0, x23
	bl	_respip_addr_lookup
	mov	x26, x0
	cbz	x0, LBB0_18
; %bb.9:
	ldp	w1, w0, [x26, #4]
	ldr	w6, [x26]
	ldp	w9, w8, [x22]
	stp	w8, w9, [sp]
	sub	x7, x29, #92
	mov	x2, x25
	mov	x3, x28
	mov	x4, x21
	mov	x5, x19
	bl	_local_data_find_tag_action
	mov	x24, x0
	cbnz	w20, LBB0_18
LBB0_10:
Lloh3:
	adrp	x8, _respip_always_refuse@GOTPAGE
Lloh4:
	ldr	x8, [x8, _respip_always_refuse@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w24, w8
	ldr	x19, [sp, #80]                  ; 8-byte Folded Reload
	b.eq	LBB0_15
; %bb.11:
Lloh6:
	adrp	x8, _respip_always_transparent@GOTPAGE
Lloh7:
	ldr	x8, [x8, _respip_always_transparent@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w24, w8
	b.eq	LBB0_15
; %bb.12:
Lloh9:
	adrp	x8, _respip_always_nxdomain@GOTPAGE
Lloh10:
	ldr	x8, [x8, _respip_always_nxdomain@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w24, w8
	b.eq	LBB0_15
; %bb.13:
	ldp	x5, x8, [sp, #56]               ; 16-byte Folded Reload
	ldr	w2, [x8]
	ldur	x4, [x29, #-88]
	ldur	w6, [x29, #-92]
	ldp	w9, w8, [x22]
	add	x10, sp, #88
	stp	x10, x19, [sp, #16]
	stp	w8, w9, [sp, #8]
	ldp	x8, x7, [sp, #32]               ; 16-byte Folded Reload
	str	x8, [sp]
	mov	x0, x26
	mov	x1, x24
	mov	x3, x23
	bl	_respip_data_answer
	tbnz	w0, #31, LBB0_16
; %bb.14:
	cbnz	w0, LBB0_18
LBB0_15:
	ldp	x4, x8, [sp, #56]               ; 16-byte Folded Reload
	ldr	w0, [x8]
	ldur	x3, [x29, #-88]
	mov	x1, x24
	mov	x2, x23
	mov	x5, x19
	bl	_respip_nodata_answer
	cbnz	w0, LBB0_18
LBB0_16:
	mov	w19, #0
	b	LBB0_19
LBB0_17:
	mov	x26, #0
LBB0_18:
	mov	w19, #1
LBB0_19:
	cbnz	x27, LBB0_28
; %bb.20:
	cbz	w19, LBB0_29
LBB0_21:
	ldr	x8, [sp, #88]
	cbz	x8, LBB0_25
; %bb.22:
	ldr	x19, [x8]
Lloh12:
	adrp	x8, _LDNS_RR_TYPE_CNAME@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LDNS_RR_TYPE_CNAME@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_ntohs
	cmp	x19, x0
	b.ne	LBB0_25
; %bb.23:
	ldr	x8, [sp, #64]                   ; 8-byte Folded Reload
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _LDNS_RR_TYPE_ANY@GOTPAGE
Lloh16:
	ldr	x9, [x9, _LDNS_RR_TYPE_ANY@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_25
; %bb.24:
	ldr	x8, [sp, #88]
	ldr	x9, [sp, #48]                   ; 8-byte Folded Reload
	str	x8, [x9]
LBB0_25:
	ldp	x9, x7, [sp, #72]               ; 16-byte Folded Reload
LBB0_26:
	ldr	x3, [sp, #88]
	ldur	w4, [x29, #-92]
	mov	x0, x9
	mov	x1, x24
	mov	x2, x26
	mov	x5, x22
	mov	x6, x20
	bl	_populate_action_info
	b	LBB0_30
LBB0_27:
	mov	x26, #0
	mov	w19, #1
LBB0_28:
	mov	x0, x27
	bl	_lock_rw_unlock
	cbnz	w19, LBB0_21
LBB0_29:
	mov	w0, #0
LBB0_30:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_respip_none,4,2                ; @respip_none
	.comm	_respip_always_refuse,4,2       ; @respip_always_refuse
	.comm	_respip_always_transparent,4,2  ; @respip_always_transparent
	.comm	_respip_always_nxdomain,4,2     ; @respip_always_nxdomain
	.comm	_LDNS_RR_TYPE_CNAME,4,2         ; @LDNS_RR_TYPE_CNAME
	.comm	_LDNS_RR_TYPE_ANY,4,2           ; @LDNS_RR_TYPE_ANY
.subsections_via_symbols
