	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function process_answer_detail
_process_answer_detail:                 ## @process_answer_detail
	.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	%r9, -48(%rbp)                  ## 8-byte Spill
	movq	%r8, %r15
	movq	%rcx, %r13
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	%rsi, %rdi
	movl	%edx, %esi
	callq	_context_serial_getcmd
	movq	_UB_LIBCMD_ANSWER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	%r12, %rdi
	callq	_lock_basic_lock
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rcx
	callq	_context_deserialize_answer
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movl	64(%rax), %edi
	callq	_log_assert
	cmpq	$0, 56(%rbx)
	je	LBB0_6
## %bb.5:
	movq	%r14, %rcx
	movq	$0, (%r13)
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_1:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_context_serial_getcmd
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_log_err
	xorl	%eax, %eax
	jmp	LBB0_17
LBB0_3:
	movq	%r12, %rdi
	callq	_lock_basic_unlock
	jmp	LBB0_16
LBB0_6:
	movq	%r14, %rcx
	movq	48(%rbx), %rax
	movq	%rax, (%r13)
	movq	40(%rbx), %rax
LBB0_7:
	movq	16(%rbp), %r14
	movq	%rax, (%r15)
	cmpl	$0, (%rcx)
	je	LBB0_9
## %bb.8:
	movq	$0, (%r14)
	movq	8(%rbx), %rdi
	callq	_ub_resolve_free
	movq	%r12, %r15
	jmp	LBB0_14
LBB0_9:
	movq	24(%rbx), %rdi
	callq	_sldns_buffer_new
	movq	%rax, %r15
	xorl	%eax, %eax
	callq	_regional_create
	movq	%r14, %rcx
	movq	8(%rbx), %rdx
	movq	%rdx, (%r14)
	movq	_LDNS_RCODE_SERVFAIL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rdx)
	testq	%rax, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_10
## %bb.11:
	testq	%r15, %r15
	movq	%r14, %rcx
	movq	%r15, %r14
	movq	%r12, %r15
	movq	%rcx, %r12
	je	LBB0_13
## %bb.12:
	movq	%r14, %rdi
	callq	_sldns_buffer_clear
	movq	16(%rbx), %rsi
	movq	24(%rbx), %rdx
	movq	%r14, %rdi
	callq	_sldns_buffer_write
	movq	%r14, %rdi
	callq	_sldns_buffer_flip
	movq	(%r12), %rdi
	movl	32(%rbx), %ecx
	movq	%r14, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_libworker_enter_result
	movq	(%r12), %rdx
	jmp	LBB0_13
LBB0_10:
	movq	%r14, %rcx
	movq	%r15, %r14
	movq	%r12, %r15
	movq	%rcx, %r12
LBB0_13:
	movq	16(%rbx), %rcx
	movq	%rcx, 8(%rdx)
	movl	24(%rbx), %eax
	movq	(%r12), %rcx
	movl	%eax, (%rcx)
	movq	$0, 16(%rbx)
	movq	%r14, %rdi
	callq	_sldns_buffer_free
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_regional_destroy
	movq	%r12, %r14
LBB0_14:
	movq	$0, 8(%rbx)
	leaq	8(%r15), %rdi
	movl	(%rbx), %esi
	callq	_rbtree_delete
	decl	4(%r15)
	movq	%rbx, %rdi
	callq	_context_query_delete
	movq	%r15, %rdi
	callq	_lock_basic_unlock
	movl	$2, %eax
	cmpq	$0, (%r13)
	jne	LBB0_17
## %bb.15:
	movq	(%r14), %rdi
	callq	_ub_resolve_free
LBB0_16:
	movl	$1, %eax
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UB_LIBCMD_ANSWER,8,3           ## @UB_LIBCMD_ANSWER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error: bad data from bg worker %d"

	.comm	_LDNS_RCODE_SERVFAIL,4,2        ## @LDNS_RCODE_SERVFAIL
	.no_dead_strip	_process_answer_detail
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function process_answer_detail
_process_answer_detail:                 ; @process_answer_detail
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x6
	mov	x23, x5
	mov	x24, x4
	mov	x20, x3
	mov	x22, x2
	mov	x25, x1
	mov	x21, x0
	mov	x0, x1
	mov	x1, x2
	bl	_context_serial_getcmd
Lloh0:
	adrp	x8, _UB_LIBCMD_ANSWER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UB_LIBCMD_ANSWER@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.1:
	mov	x0, x21
	bl	_lock_basic_lock
	mov	x0, x21
	mov	x1, x25
	mov	x2, x22
	mov	x3, x23
	bl	_context_deserialize_answer
	cbz	x0, LBB0_5
; %bb.2:
	mov	x22, x0
	ldr	w0, [x0, #64]
	bl	_log_assert
	ldr	x8, [x22, #56]
	cbz	x8, LBB0_6
; %bb.3:
	mov	x8, #0
	str	xzr, [x20]
	b	LBB0_7
LBB0_4:
	mov	x0, x25
	mov	x1, x22
	bl	_context_serial_getcmd
	mov	x1, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_log_err
	mov	w0, #0
	b	LBB0_17
LBB0_5:
	mov	x0, x21
	bl	_lock_basic_unlock
	b	LBB0_16
LBB0_6:
	ldr	x8, [x22, #48]
	str	x8, [x20]
	ldr	x8, [x22, #40]
LBB0_7:
	str	x8, [x24]
	ldr	w8, [x23]
	cbz	w8, LBB0_9
; %bb.8:
	str	xzr, [x19]
	ldr	x0, [x22, #8]
	bl	_ub_resolve_free
	b	LBB0_13
LBB0_9:
	ldr	x0, [x22, #24]
	bl	_sldns_buffer_new
	mov	x23, x0
	bl	_regional_create
	mov	x24, x0
	ldr	x8, [x22, #8]
	str	x8, [x19]
Lloh5:
	adrp	x9, _LDNS_RCODE_SERVFAIL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _LDNS_RCODE_SERVFAIL@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	str	w9, [x8, #16]
	cbz	x0, LBB0_12
; %bb.10:
	cbz	x23, LBB0_12
; %bb.11:
	mov	x0, x23
	bl	_sldns_buffer_clear
	ldp	x1, x2, [x22, #16]
	mov	x0, x23
	bl	_sldns_buffer_write
	mov	x0, x23
	bl	_sldns_buffer_flip
	ldr	x0, [x19]
	ldr	w3, [x22, #32]
	mov	x1, x23
	mov	x2, x24
	bl	_libworker_enter_result
	ldr	x8, [x19]
LBB0_12:
	ldp	x9, x10, [x22, #16]
	str	x9, [x8, #8]
	ldr	x8, [x19]
	str	w10, [x8]
	str	xzr, [x22, #16]
	mov	x0, x23
	bl	_sldns_buffer_free
	mov	x0, x24
	bl	_regional_destroy
LBB0_13:
	str	xzr, [x22, #8]
	add	x0, x21, #8
	ldr	w1, [x22]
	bl	_rbtree_delete
	ldr	w8, [x21, #4]
	sub	w8, w8, #1
	str	w8, [x21, #4]
	mov	x0, x22
	bl	_context_query_delete
	mov	x0, x21
	bl	_lock_basic_unlock
	ldr	x8, [x20]
	cbz	x8, LBB0_15
; %bb.14:
	mov	w0, #2
	b	LBB0_17
LBB0_15:
	ldr	x0, [x19]
	bl	_ub_resolve_free
LBB0_16:
	mov	w0, #1
LBB0_17:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_UB_LIBCMD_ANSWER,8,3           ; @UB_LIBCMD_ANSWER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error: bad data from bg worker %d"

	.comm	_LDNS_RCODE_SERVFAIL,4,2        ; @LDNS_RCODE_SERVFAIL
	.no_dead_strip	_process_answer_detail
.subsections_via_symbols
