	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_edns_register_option           ## -- Begin function edns_register_option
	.p2align	4, 0x90
_edns_register_option:                  ## @edns_register_option
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpq	$0, 16(%rcx)
	je	LBB0_1
## %bb.4:
	leaq	L_.str(%rip), %rdi
LBB0_5:
	callq	_log_err
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_1:
	movq	(%rcx), %r8
	testq	%r8, %r8
	je	LBB0_2
## %bb.6:
	movq	8(%rcx), %rax
	xorl	%r9d, %r9d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdi, (%rax)
	je	LBB0_3
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%r9
	addq	$16, %rax
	cmpq	%r9, %r8
	jne	LBB0_7
## %bb.9:
	movq	%r8, %r9
	jmp	LBB0_10
LBB0_2:
	xorl	%r9d, %r9d
LBB0_3:
	cmpq	%r8, %r9
	jne	LBB0_13
LBB0_10:
	movq	_MAX_KNOWN_EDNS_OPTS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r8
	jae	LBB0_11
## %bb.12:
	incq	%r8
	movq	%r8, (%rcx)
LBB0_13:
	movq	8(%rcx), %rax
	shlq	$4, %r9
	movq	%rdi, (%rax,%r9)
	movl	%esi, 8(%rax,%r9)
	movl	%edx, 12(%rax,%r9)
	movl	$1, %eax
	popq	%rbp
	retq
LBB0_11:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid edns registration: trying to register option after module init phase"

	.comm	_MAX_KNOWN_EDNS_OPTS,8,3        ## @MAX_KNOWN_EDNS_OPTS
L_.str.1:                               ## @.str.1
	.asciz	"invalid edns registration: maximum options reached"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_edns_register_option           ; -- Begin function edns_register_option
	.p2align	2
_edns_register_option:                  ; @edns_register_option
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x3, #16]
	cbz	x8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
LBB0_2:
	bl	_log_err
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	x8, [x3]
	cbz	x8, LBB0_8
; %bb.4:
	mov	x9, #0
	ldr	x10, [x3, #8]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10]
	cmp	x11, x0
	b.eq	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x9, #1
	add	x10, x10, #16
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.7:
	mov	x9, x8
	b	LBB0_10
LBB0_8:
	mov	x9, #0
LBB0_9:
	cmp	x9, x8
	b.ne	LBB0_12
LBB0_10:
Lloh2:
	adrp	x10, _MAX_KNOWN_EDNS_OPTS@GOTPAGE
Lloh3:
	ldr	x10, [x10, _MAX_KNOWN_EDNS_OPTS@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	cmp	x8, x10
	b.hs	LBB0_13
; %bb.11:
	add	x8, x8, #1
	str	x8, [x3]
LBB0_12:
	ldr	x8, [x3, #8]
	add	x8, x8, x9, lsl #4
	str	x0, [x8]
	stp	w1, w2, [x8, #8]
	mov	w0, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_13:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid edns registration: trying to register option after module init phase"

	.comm	_MAX_KNOWN_EDNS_OPTS,8,3        ; @MAX_KNOWN_EDNS_OPTS
l_.str.1:                               ; @.str.1
	.asciz	"invalid edns registration: maximum options reached"

.subsections_via_symbols
