	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function edns_keepalive
_edns_keepalive:                        ## @edns_keepalive
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	(%rdx), %rax
	movq	_comm_udp@GOTPCREL(%rip), %rcx
	movl	$1, %r14d
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.1:
	movq	%rdx, %rbx
	movq	%rdi, %r12
	cmpl	$0, 8(%rdx)
	jne	LBB0_3
## %bb.2:
	movl	(%rsi), %edi
	movq	_LDNS_EDNS_KEEPALIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_edns_opt_list_find
	testq	%rax, %rax
	je	LBB0_6
LBB0_3:
	movslq	12(%rbx), %rax
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$37, %rax
	addl	%ecx, %eax
	movzbl	%ah, %ecx
	movq	%rcx, -64(%rbp)
	movzbl	%al, %eax
	movq	%rax, -56(%rbp)
	movq	_LDNS_EDNS_KEEPALIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rcx
	movq	%r12, %rdi
	movl	$16, %edx
	movq	%r15, %r8
	callq	_edns_opt_list_append
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	$1, 8(%rbx)
	jmp	LBB0_6
LBB0_5:
	xorl	%r14d, %r14d
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movl	%r14d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_comm_udp,8,3                   ## @comm_udp
	.comm	_LDNS_EDNS_KEEPALIVE,4,2        ## @LDNS_EDNS_KEEPALIVE
	.no_dead_strip	_edns_keepalive
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function edns_keepalive
_edns_keepalive:                        ; @edns_keepalive
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x8, [x2]
Lloh3:
	adrp	x9, _comm_udp@GOTPAGE
Lloh4:
	ldr	x9, [x9, _comm_udp@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
LBB0_1:
	mov	w0, #1
	b	LBB0_6
LBB0_2:
	mov	x20, x3
	mov	x19, x2
	mov	x21, x0
	ldr	w8, [x2, #8]
Lloh6:
	adrp	x22, _LDNS_EDNS_KEEPALIVE@GOTPAGE
Lloh7:
	ldr	x22, [x22, _LDNS_EDNS_KEEPALIVE@GOTPAGEOFF]
	cbnz	w8, LBB0_4
; %bb.3:
	ldr	w0, [x1]
	ldr	w1, [x22]
	bl	_edns_opt_list_find
	cbz	x0, LBB0_1
LBB0_4:
	ldrsw	x8, [x19, #12]
	mov	w9, #34079
	movk	w9, #20971, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w8, w8, w9
	ubfx	w9, w8, #8, #8
	and	w8, w8, #0xff
	stp	x9, x8, [sp, #8]
	ldr	w1, [x22]
	add	x3, sp, #8
	mov	x0, x21
	mov	w2, #16
	mov	x4, x20
	bl	_edns_opt_list_append
	cbz	w0, LBB0_6
; %bb.5:
	mov	w0, #1
	str	w0, [x19, #8]
LBB0_6:
	ldr	x8, [sp, #24]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	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
	add	sp, sp, #80
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_comm_udp,8,3                   ; @comm_udp
	.comm	_LDNS_EDNS_KEEPALIVE,4,2        ; @LDNS_EDNS_KEEPALIVE
	.no_dead_strip	_edns_keepalive
.subsections_via_symbols
