	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_resolver_new_frm_file     ## -- Begin function ldns_resolver_new_frm_file
	.p2align	4, 0x90
_ldns_resolver_new_frm_file:            ## @ldns_resolver_new_frm_file
	.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	%rdi, %r14
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	leaq	L_.str(%rip), %rax
	movq	%rsi, %rdi
	movq	%rax, %rsi
	jmp	LBB0_3
LBB0_1:
	movq	_LDNS_RESOLV_CONF@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	leaq	L_.str(%rip), %rsi
LBB0_3:
	callq	_fopen
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	leaq	-32(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_ldns_resolver_new_frm_fp
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_fclose
	movq	_LDNS_STATUS_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_10
## %bb.6:
	movq	-32(%rbp), %rdi
	testq	%r14, %r14
	je	LBB0_8
## %bb.7:
	movq	%rdi, (%r14)
	jmp	LBB0_10
LBB0_4:
	movq	_LDNS_STATUS_FILE_ERR@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	callq	_ldns_resolver_free
	movq	_LDNS_STATUS_NULL@GOTPCREL(%rip), %rax
LBB0_9:
	movq	(%rax), %r15
LBB0_10:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_RESOLV_CONF,8,3           ## @LDNS_RESOLV_CONF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

	.comm	_LDNS_STATUS_FILE_ERR,8,3       ## @LDNS_STATUS_FILE_ERR
	.comm	_LDNS_STATUS_OK,8,3             ## @LDNS_STATUS_OK
	.comm	_LDNS_STATUS_NULL,8,3           ## @LDNS_STATUS_NULL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_resolver_new_frm_file     ; -- Begin function ldns_resolver_new_frm_file
	.p2align	2
_ldns_resolver_new_frm_file:            ; @ldns_resolver_new_frm_file
	.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, x0
	cbz	x1, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	mov	x0, x1
	mov	x1, x8
	b	LBB0_3
LBB0_2:
Lloh2:
	adrp	x8, _LDNS_RESOLV_CONF@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LDNS_RESOLV_CONF@GOTPAGEOFF]
Lloh4:
	ldr	x0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
LBB0_3:
	bl	_fopen
	mov	x21, x0
	cbz	x0, LBB0_7
; %bb.4:
	add	x0, sp, #8
	mov	x1, x21
	bl	_ldns_resolver_new_frm_fp
	mov	x20, x0
	mov	x0, x21
	bl	_fclose
Lloh7:
	adrp	x8, _LDNS_STATUS_OK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LDNS_STATUS_OK@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x20, x8
	b.ne	LBB0_10
; %bb.5:
	ldr	x0, [sp, #8]
	cbz	x19, LBB0_8
; %bb.6:
	str	x0, [x19]
	b	LBB0_10
LBB0_7:
Lloh10:
	adrp	x8, _LDNS_STATUS_FILE_ERR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LDNS_STATUS_FILE_ERR@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
	bl	_ldns_resolver_free
Lloh12:
	adrp	x8, _LDNS_STATUS_NULL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LDNS_STATUS_NULL@GOTPAGEOFF]
LBB0_9:
	ldr	x20, [x8]
LBB0_10:
	mov	x0, x20
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RESOLV_CONF,8,3           ; @LDNS_RESOLV_CONF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

	.comm	_LDNS_STATUS_FILE_ERR,8,3       ; @LDNS_STATUS_FILE_ERR
	.comm	_LDNS_STATUS_OK,8,3             ; @LDNS_STATUS_OK
	.comm	_LDNS_STATUS_NULL,8,3           ; @LDNS_STATUS_NULL
.subsections_via_symbols
