	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function worker_check_request
_worker_check_request:                  ## @worker_check_request
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_sldns_buffer_limit
	movq	_LDNS_HEADER_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_4
## %bb.1:
	movq	_VERB_QUERY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	movq	%rbx, %rdi
	callq	_sldns_buffer_limit
	movq	_NORMAL_UDP_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_7
## %bb.5:
	movq	(%r14), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:
	movq	_VERB_QUERY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
LBB0_7:
	movq	%rbx, %rdi
	callq	_sldns_buffer_begin
	movl	%eax, %edi
	callq	_LDNS_QR_WIRE
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_VERB_QUERY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_2:
	xorl	%eax, %eax
	callq	_verbose
	movl	$-1, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%rbx, %rdi
	callq	_sldns_buffer_begin
	movl	%eax, %edi
	callq	_LDNS_TC_WIRE
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_sldns_buffer_begin
	movl	%eax, %edi
	testq	%r15, %r15
	je	LBB0_11
## %bb.10:
	callq	_LDNS_TC_CLR
	movq	_VERB_QUERY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_verbose
	jmp	LBB0_17
LBB0_11:
	callq	_LDNS_OPCODE_WIRE
	movq	_LDNS_PACKET_QUERY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_14
## %bb.12:
	movq	%rbx, %rdi
	callq	_sldns_buffer_begin
	movl	%eax, %edi
	callq	_LDNS_OPCODE_WIRE
	movq	_LDNS_PACKET_NOTIFY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
LBB0_14:
	movq	%rbx, %rdi
	callq	_sldns_buffer_begin
	movl	%eax, %edi
	callq	_LDNS_QDCOUNT
	cmpl	$1, %eax
	jne	LBB0_15
## %bb.19:
	movq	%rbx, %rdi
	callq	_sldns_buffer_begin
	movl	%eax, %edi
	callq	_LDNS_ANCOUNT
	testl	%eax, %eax
	je	LBB0_23
## %bb.20:
	movq	%rbx, %rdi
	callq	_sldns_buffer_begin
	movl	%eax, %edi
	callq	_LDNS_ANCOUNT
	cmpl	$1, %eax
	jne	LBB0_22
## %bb.21:
	movq	%rbx, %rdi
	callq	_sldns_buffer_begin
	movl	%eax, %edi
	callq	_LDNS_OPCODE_WIRE
	movq	_LDNS_PACKET_NOTIFY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_22
LBB0_23:
	movq	%rbx, %rdi
	callq	_sldns_buffer_begin
	movl	%eax, %edi
	callq	_LDNS_NSCOUNT
	testl	%eax, %eax
	je	LBB0_25
## %bb.24:
	movq	_VERB_QUERY@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	callq	_sldns_buffer_begin
	movl	%eax, %edi
	callq	_LDNS_NSCOUNT
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_16
LBB0_15:
	movq	_VERB_QUERY@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	callq	_sldns_buffer_begin
	movl	%eax, %edi
	callq	_LDNS_QDCOUNT
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_16
LBB0_13:
	movq	_VERB_QUERY@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	callq	_sldns_buffer_begin
	movl	%eax, %edi
	callq	_LDNS_OPCODE_WIRE
	leaq	L_.str.4(%rip), %rsi
	movl	%r15d, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_verbose
	movq	_LDNS_RCODE_NOTIMPL@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_22:
	movq	_VERB_QUERY@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	callq	_sldns_buffer_begin
	movl	%eax, %edi
	callq	_LDNS_ANCOUNT
	leaq	L_.str.6(%rip), %rsi
LBB0_16:
	movl	%r15d, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_verbose
LBB0_17:
	movq	_LDNS_RCODE_FORMERR@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_worker_err_ratelimit           ## TAILCALL
LBB0_25:
	movq	%rbx, %rdi
	callq	_sldns_buffer_begin
	movl	%eax, %edi
	callq	_LDNS_ARCOUNT
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	$2, %ecx
	jl	LBB0_3
## %bb.26:
	movq	_VERB_QUERY@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	callq	_sldns_buffer_begin
	movl	%eax, %edi
	callq	_LDNS_ARCOUNT
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_HEADER_SIZE,8,3           ## @LDNS_HEADER_SIZE
	.comm	_VERB_QUERY,4,2                 ## @VERB_QUERY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"request too short, discarded"

	.comm	_NORMAL_UDP_SIZE,8,3            ## @NORMAL_UDP_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"request too large, discarded"

L_.str.2:                               ## @.str.2
	.asciz	"request has QR bit on, discarded"

L_.str.3:                               ## @.str.3
	.asciz	"request bad, has TC bit on"

	.comm	_LDNS_RCODE_FORMERR,4,2         ## @LDNS_RCODE_FORMERR
	.comm	_LDNS_PACKET_QUERY,8,3          ## @LDNS_PACKET_QUERY
	.comm	_LDNS_PACKET_NOTIFY,8,3         ## @LDNS_PACKET_NOTIFY
L_.str.4:                               ## @.str.4
	.asciz	"request unknown opcode %d"

	.comm	_LDNS_RCODE_NOTIMPL,4,2         ## @LDNS_RCODE_NOTIMPL
L_.str.5:                               ## @.str.5
	.asciz	"request wrong nr qd=%d"

L_.str.6:                               ## @.str.6
	.asciz	"request wrong nr an=%d"

L_.str.7:                               ## @.str.7
	.asciz	"request wrong nr ns=%d"

L_.str.8:                               ## @.str.8
	.asciz	"request wrong nr ar=%d"

	.no_dead_strip	_worker_check_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function worker_check_request
_worker_check_request:                  ; @worker_check_request
	.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, x1
	mov	x20, x0
	bl	_sldns_buffer_limit
Lloh0:
	adrp	x8, _LDNS_HEADER_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LDNS_HEADER_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _VERB_QUERY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VERB_QUERY@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_7
LBB0_2:
	mov	x0, x20
	bl	_sldns_buffer_limit
Lloh8:
	adrp	x8, _NORMAL_UDP_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NORMAL_UDP_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.le	LBB0_5
; %bb.3:
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.4:
Lloh11:
	adrp	x8, _VERB_QUERY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VERB_QUERY@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_5:
	mov	x0, x20
	bl	_sldns_buffer_begin
	bl	_LDNS_QR_WIRE
	cbz	x0, LBB0_9
; %bb.6:
Lloh16:
	adrp	x8, _VERB_QUERY@GOTPAGE
Lloh17:
	ldr	x8, [x8, _VERB_QUERY@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_7:
	bl	_verbose
	mov	w0, #-1
LBB0_8:
	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_9:
	mov	x0, x20
	bl	_sldns_buffer_begin
	bl	_LDNS_TC_WIRE
	mov	x21, x0
	mov	x0, x20
	bl	_sldns_buffer_begin
	cbz	x21, LBB0_11
; %bb.10:
	bl	_LDNS_TC_CLR
Lloh21:
	adrp	x8, _VERB_QUERY@GOTPAGE
Lloh22:
	ldr	x8, [x8, _VERB_QUERY@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_23
LBB0_11:
	bl	_LDNS_OPCODE_WIRE
Lloh26:
	adrp	x8, _LDNS_PACKET_QUERY@GOTPAGE
Lloh27:
	ldr	x8, [x8, _LDNS_PACKET_QUERY@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_13
; %bb.12:
	mov	x0, x20
	bl	_sldns_buffer_begin
	bl	_LDNS_OPCODE_WIRE
Lloh29:
	adrp	x8, _LDNS_PACKET_NOTIFY@GOTPAGE
Lloh30:
	ldr	x8, [x8, _LDNS_PACKET_NOTIFY@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_20
LBB0_13:
	mov	x0, x20
	bl	_sldns_buffer_begin
	bl	_LDNS_QDCOUNT
	cmp	w0, #1
	b.ne	LBB0_19
; %bb.14:
	mov	x0, x20
	bl	_sldns_buffer_begin
	bl	_LDNS_ANCOUNT
	cbz	w0, LBB0_17
; %bb.15:
	mov	x0, x20
	bl	_sldns_buffer_begin
	bl	_LDNS_ANCOUNT
	cmp	w0, #1
	b.ne	LBB0_21
; %bb.16:
	mov	x0, x20
	bl	_sldns_buffer_begin
	bl	_LDNS_OPCODE_WIRE
Lloh32:
	adrp	x8, _LDNS_PACKET_NOTIFY@GOTPAGE
Lloh33:
	ldr	x8, [x8, _LDNS_PACKET_NOTIFY@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_21
LBB0_17:
	mov	x0, x20
	bl	_sldns_buffer_begin
	bl	_LDNS_NSCOUNT
	cbz	w0, LBB0_25
; %bb.18:
Lloh35:
	adrp	x8, _VERB_QUERY@GOTPAGE
Lloh36:
	ldr	x8, [x8, _VERB_QUERY@GOTPAGEOFF]
Lloh37:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_sldns_buffer_begin
	bl	_LDNS_NSCOUNT
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh38:
	adrp	x1, l_.str.7@PAGE
Lloh39:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_22
LBB0_19:
Lloh40:
	adrp	x8, _VERB_QUERY@GOTPAGE
Lloh41:
	ldr	x8, [x8, _VERB_QUERY@GOTPAGEOFF]
Lloh42:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_sldns_buffer_begin
	bl	_LDNS_QDCOUNT
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh43:
	adrp	x1, l_.str.5@PAGE
Lloh44:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_22
LBB0_20:
Lloh45:
	adrp	x8, _VERB_QUERY@GOTPAGE
Lloh46:
	ldr	x8, [x8, _VERB_QUERY@GOTPAGEOFF]
Lloh47:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_sldns_buffer_begin
	bl	_LDNS_OPCODE_WIRE
	str	x0, [sp]
Lloh48:
	adrp	x1, l_.str.4@PAGE
Lloh49:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_verbose
Lloh50:
	adrp	x8, _LDNS_RCODE_NOTIMPL@GOTPAGE
Lloh51:
	ldr	x8, [x8, _LDNS_RCODE_NOTIMPL@GOTPAGEOFF]
	b	LBB0_24
LBB0_21:
Lloh52:
	adrp	x8, _VERB_QUERY@GOTPAGE
Lloh53:
	ldr	x8, [x8, _VERB_QUERY@GOTPAGEOFF]
Lloh54:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_sldns_buffer_begin
	bl	_LDNS_ANCOUNT
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh55:
	adrp	x1, l_.str.6@PAGE
Lloh56:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_22:
	mov	x0, x21
LBB0_23:
	bl	_verbose
Lloh57:
	adrp	x8, _LDNS_RCODE_FORMERR@GOTPAGE
Lloh58:
	ldr	x8, [x8, _LDNS_RCODE_FORMERR@GOTPAGEOFF]
LBB0_24:
	ldr	w1, [x8]
	mov	x0, x19
	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
	b	_worker_err_ratelimit
LBB0_25:
	mov	x0, x20
	bl	_sldns_buffer_begin
	bl	_LDNS_ARCOUNT
	cmp	w0, #2
	b.lt	LBB0_27
; %bb.26:
Lloh59:
	adrp	x8, _VERB_QUERY@GOTPAGE
Lloh60:
	ldr	x8, [x8, _VERB_QUERY@GOTPAGEOFF]
Lloh61:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_sldns_buffer_begin
	bl	_LDNS_ARCOUNT
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh62:
	adrp	x1, l_.str.8@PAGE
Lloh63:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_22
LBB0_27:
	mov	w0, #0
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_HEADER_SIZE,8,3           ; @LDNS_HEADER_SIZE
	.comm	_VERB_QUERY,4,2                 ; @VERB_QUERY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"request too short, discarded"

	.comm	_NORMAL_UDP_SIZE,8,3            ; @NORMAL_UDP_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"request too large, discarded"

l_.str.2:                               ; @.str.2
	.asciz	"request has QR bit on, discarded"

l_.str.3:                               ; @.str.3
	.asciz	"request bad, has TC bit on"

	.comm	_LDNS_RCODE_FORMERR,4,2         ; @LDNS_RCODE_FORMERR
	.comm	_LDNS_PACKET_QUERY,8,3          ; @LDNS_PACKET_QUERY
	.comm	_LDNS_PACKET_NOTIFY,8,3         ; @LDNS_PACKET_NOTIFY
l_.str.4:                               ; @.str.4
	.asciz	"request unknown opcode %d"

	.comm	_LDNS_RCODE_NOTIMPL,4,2         ; @LDNS_RCODE_NOTIMPL
l_.str.5:                               ; @.str.5
	.asciz	"request wrong nr qd=%d"

l_.str.6:                               ; @.str.6
	.asciz	"request wrong nr an=%d"

l_.str.7:                               ; @.str.7
	.asciz	"request wrong nr ns=%d"

l_.str.8:                               ; @.str.8
	.asciz	"request wrong nr ar=%d"

	.no_dead_strip	_worker_check_request
.subsections_via_symbols
