	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_mod
_check_mod:                             ## @check_mod
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	-32(%rbp), %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	%rbx, -24(%rbp)
	xorl	%eax, %eax
	callq	_regional_create
	movl	%eax, -32(%rbp)
	movq	_BUFSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sldns_buffer_new
	movl	%eax, -28(%rbp)
	cmpl	$0, -32(%rbp)
	je	LBB0_2
## %bb.1:
	testl	%eax, %eax
	jne	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_fatal_exit
LBB0_3:
	leaq	-32(%rbp), %rdi
	callq	_edns_known_options_init
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_fatal_exit
LBB0_5:
	leaq	-32(%rbp), %rdi
	xorl	%esi, %esi
	callq	*16(%r14)
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movl	8(%r14), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_fatal_exit
LBB0_7:
	leaq	-32(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	*(%r14)
	movl	-28(%rbp), %edi
	callq	_sldns_buffer_free
	movl	-32(%rbp), %edi
	callq	_regional_destroy
	movq	%rbx, %rdi
	callq	_edns_known_options_delete
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BUFSIZ,4,2                     ## @BUFSIZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of memory"

L_.str.1:                               ## @.str.1
	.asciz	"bad config for %s module"

	.no_dead_strip	_check_mod
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_mod
_check_mod:                             ; @check_mod
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x1
	mov	x20, x0
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	str	x20, [sp, #24]
	bl	_regional_create
	str	w0, [sp, #16]
Lloh0:
	adrp	x8, _BUFSIZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BUFSIZ@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_sldns_buffer_new
	str	w0, [sp, #20]
	ldr	w8, [sp, #16]
	cmp	w8, #0
	ccmp	w0, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_fatal_exit
LBB0_2:
	add	x0, sp, #16
	bl	_edns_known_options_init
	cbnz	w0, LBB0_4
; %bb.3:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_fatal_exit
LBB0_4:
	ldr	x8, [x19, #16]
	add	x0, sp, #16
	mov	w1, #0
	blr	x8
	cbnz	w0, LBB0_6
; %bb.5:
	ldr	w8, [x19, #8]
	str	x8, [sp]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_fatal_exit
LBB0_6:
	ldr	x8, [x19]
	add	x0, sp, #16
	mov	w1, #0
	blr	x8
	ldr	w0, [sp, #20]
	bl	_sldns_buffer_free
	ldr	w0, [sp, #16]
	bl	_regional_destroy
	add	x0, sp, #16
	bl	_edns_known_options_delete
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_BUFSIZ,4,2                     ; @BUFSIZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of memory"

l_.str.1:                               ; @.str.1
	.asciz	"bad config for %s module"

	.no_dead_strip	_check_mod
.subsections_via_symbols
