	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_extract_edns             ## -- Begin function parse_extract_edns
	.p2align	4, 0x90
_parse_extract_edns:                    ## @parse_extract_edns
	.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	%rsi, %r15
	movq	24(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.1:
	movq	%rdx, %r14
	movq	%rdi, %r12
	addq	$24, %rdi
	movq	_LDNS_RR_TYPE_OPT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	56(%rdx), %rcx
	movq	%rdx, %rsi
	testq	%rcx, %rcx
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %rdx
	cmpq	%rax, (%rcx)
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rsi, %r13
	testq	%rbx, %rbx
	movq	%rdx, %rbx
	je	LBB0_5
	jmp	LBB0_4
LBB0_6:
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.8:
	movq	8(%rbx), %rax
	movq	_LDNS_SECTION_ADDITIONAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.9:
	cmpl	$0, 16(%rbx)
	je	LBB0_4
## %bb.10:
	cmpq	$0, 32(%rbx)
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_11
## %bb.12:
	xorl	%edi, %edi
	cmpq	$0, 48(%rbx)
	setne	%dil
	jmp	LBB0_13
LBB0_7:
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movl	$512, (%r15)                    ## imm = 0x200
	jmp	LBB0_16
LBB0_4:
	movq	_LDNS_RCODE_FORMERR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	xorl	%edi, %edi
LBB0_13:
	callq	_log_assert
	leaq	56(%r13), %rax
	testq	%r13, %r13
	cmoveq	-48(%rbp), %rax                 ## 8-byte Folded Reload
	movq	56(%rbx), %rcx
	movq	%rcx, (%rax)
	cmpq	16(%r12), %rbx
	jne	LBB0_15
## %bb.14:
	movq	%r13, 16(%r12)
LBB0_15:
	decl	8(%r12)
	decl	4(%r12)
	decl	(%r12)
	movl	$1, 4(%r15)
	movq	48(%rbx), %rax
	movq	(%rax), %rdi
	movl	(%rdi), %eax
	movl	%eax, 24(%r15)
	movl	4(%rdi), %eax
	movl	%eax, 20(%r15)
	addq	$8, %rdi
	callq	_sldns_read_uint16
	movl	%eax, 16(%r15)
	movl	40(%rbx), %edi
	callq	_ntohs
	movl	%eax, (%r15)
	movq	$0, 8(%r15)
	movq	32(%rbx), %rax
	movslq	(%rax), %rsi
	addq	$-2, %rsi
	movq	8(%rax), %rdi
	addq	$24, %rdi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_parse_edns_options
	xorl	%ebx, %ebx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_RR_TYPE_OPT,8,3           ## @LDNS_RR_TYPE_OPT
	.comm	_LDNS_RCODE_FORMERR,4,2         ## @LDNS_RCODE_FORMERR
	.comm	_LDNS_SECTION_ADDITIONAL,8,3    ## @LDNS_SECTION_ADDITIONAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_extract_edns             ; -- Begin function parse_extract_edns
	.p2align	2
_parse_extract_edns:                    ; @parse_extract_edns
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x24, x0
	ldr	x10, [x24, #24]!
	cbz	x10, LBB0_11
; %bb.1:
	mov	x20, x2
	mov	x21, x0
	mov	x23, #0
	mov	x9, #0
	mov	x0, #0
Lloh0:
	adrp	x8, _LDNS_RR_TYPE_OPT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LDNS_RR_TYPE_OPT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, x9
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x11, #56]
	mov	x9, x22
	mov	x0, x11
	cbz	x10, LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x11, x10
	ldr	x10, [x10]
	cmp	x10, x8
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, x11
	mov	x23, x0
	cbz	x9, LBB0_3
	b	LBB0_12
LBB0_6:
	cbz	x22, LBB0_11
; %bb.7:
	ldr	x8, [x22, #8]
Lloh3:
	adrp	x9, _LDNS_SECTION_ADDITIONAL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LDNS_SECTION_ADDITIONAL@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.8:
	ldr	w8, [x22, #16]
	cbz	w8, LBB0_12
; %bb.9:
	ldr	x8, [x22, #32]
	cbz	x8, LBB0_14
; %bb.10:
	ldr	x8, [x22, #48]
	cmp	x8, #0
	cset	w0, ne
	b	LBB0_15
LBB0_11:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	mov	w0, #0
	mov	w8, #512
	str	w8, [x19]
	b	LBB0_13
LBB0_12:
Lloh6:
	adrp	x8, _LDNS_RCODE_FORMERR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LDNS_RCODE_FORMERR@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
LBB0_13:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_14:
	mov	w0, #0
LBB0_15:
	bl	_log_assert
	ldr	x8, [x22, #56]
	add	x9, x23, #56
	cmp	x23, #0
	csel	x9, x24, x9, eq
	str	x8, [x9]
	ldr	x8, [x21, #16]
	cmp	x22, x8
	b.ne	LBB0_17
; %bb.16:
	str	x23, [x21, #16]
LBB0_17:
	ldr	w8, [x21, #8]
	sub	w8, w8, #1
	str	w8, [x21, #8]
	ldr	d0, [x21]
	movi.2d	v1, #0xffffffffffffffff
	add.2s	v0, v0, v1
	str	d0, [x21]
	mov	w8, #1
	str	w8, [x19, #4]
	ldr	x8, [x22, #48]
	ldr	x8, [x8]
	ldr	w9, [x8]
	str	w9, [x19, #24]
	ldr	w9, [x8, #4]
	str	w9, [x19, #20]
	add	x0, x8, #8
	bl	_sldns_read_uint16
	str	w0, [x19, #16]
	ldr	w0, [x22, #40]
	bl	_ntohs
	str	w0, [x19]
	str	xzr, [x19, #8]
	ldr	x8, [x22, #32]
	ldrsw	x9, [x8]
	sub	x1, x9, #2
	ldr	x8, [x8, #8]
	add	x0, x8, #24
	mov	x2, x19
	mov	x3, x20
	bl	_parse_edns_options
	mov	w0, #0
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RR_TYPE_OPT,8,3           ; @LDNS_RR_TYPE_OPT
	.comm	_LDNS_RCODE_FORMERR,4,2         ; @LDNS_RCODE_FORMERR
	.comm	_LDNS_SECTION_ADDITIONAL,8,3    ; @LDNS_SECTION_ADDITIONAL
.subsections_via_symbols
