	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_libworker_handle_reply         ## -- Begin function libworker_handle_reply
	.p2align	4, 0x90
_libworker_handle_reply:                ## @libworker_handle_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	(%rsi), %rax
	movq	(%rax), %r15
	movq	%rsi, -32(%rbp)
	movq	$0, -40(%rbp)
	testl	%edx, %edx
	je	LBB0_2
## %bb.1:
	movl	%edx, %ecx
	movq	(%r15), %rax
	jmp	LBB0_8
LBB0_2:
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_sldns_buffer_begin
	movl	%eax, %edi
	callq	_LDNS_QR_WIRE
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	(%rbx), %edi
	callq	_sldns_buffer_begin
	movl	%eax, %edi
	callq	_LDNS_OPCODE_WIRE
	movq	_LDNS_PACKET_QUERY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movl	(%rbx), %edi
	callq	_sldns_buffer_begin
	movl	%eax, %edi
	callq	_LDNS_QDCOUNT
	cmpl	$2, %eax
	jl	LBB0_6
LBB0_5:
	movq	(%r15), %rax
	movq	_NETEVENT_TIMEOUT@GOTPCREL(%rip), %rcx
LBB0_7:
	movl	(%rcx), %ecx
LBB0_8:
	movl	(%rax), %edi
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdx
	callq	_mesh_report_reply
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	(%r15), %rax
	movq	_NETEVENT_NOERROR@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_PACKET_QUERY,8,3          ## @LDNS_PACKET_QUERY
	.comm	_NETEVENT_TIMEOUT,4,2           ## @NETEVENT_TIMEOUT
	.comm	_NETEVENT_NOERROR,4,2           ## @NETEVENT_NOERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_libworker_handle_reply         ; -- Begin function libworker_handle_reply
	.p2align	2
_libworker_handle_reply:                ; @libworker_handle_reply
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x3
	ldr	x8, [x1]
	ldr	x21, [x8]
	stp	xzr, x1, [sp]
	cbz	w2, LBB0_2
; %bb.1:
	mov	x3, x2
	ldr	x8, [x21]
	b	LBB0_7
LBB0_2:
	mov	x20, x0
	ldr	w0, [x0]
	bl	_sldns_buffer_begin
	bl	_LDNS_QR_WIRE
	cbz	w0, LBB0_5
; %bb.3:
	ldr	w0, [x20]
	bl	_sldns_buffer_begin
	bl	_LDNS_OPCODE_WIRE
Lloh0:
	adrp	x8, _LDNS_PACKET_QUERY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LDNS_PACKET_QUERY@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.4:
	ldr	w0, [x20]
	bl	_sldns_buffer_begin
	bl	_LDNS_QDCOUNT
	cmp	w0, #2
	b.lt	LBB0_8
LBB0_5:
	ldr	x8, [x21]
Lloh3:
	adrp	x9, _NETEVENT_TIMEOUT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NETEVENT_TIMEOUT@GOTPAGEOFF]
LBB0_6:
	ldr	w3, [x9]
LBB0_7:
	ldr	w0, [x8]
	mov	x1, sp
	mov	x2, x19
	bl	_mesh_report_reply
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_8:
	ldr	x8, [x21]
Lloh5:
	adrp	x9, _NETEVENT_NOERROR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _NETEVENT_NOERROR@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_PACKET_QUERY,8,3          ; @LDNS_PACKET_QUERY
	.comm	_NETEVENT_TIMEOUT,4,2           ; @NETEVENT_TIMEOUT
	.comm	_NETEVENT_NOERROR,4,2           ; @NETEVENT_NOERROR
.subsections_via_symbols
