	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ldns_pkt_query_new_frm_str_internal
_ldns_pkt_query_new_frm_str_internal:   ## @ldns_pkt_query_new_frm_str_internal
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movl	%r8d, %ebx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r13
	xorl	%eax, %eax
	callq	_ldns_pkt_new
	movq	_LDNS_STATUS_MEM_ERR@GOTPCREL(%rip), %r14
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rax, %r12
	movq	%rax, %rdi
	movl	%ebx, %esi
	callq	_ldns_pkt_set_flags
	movq	_LDNS_STATUS_ERR@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_ldns_rr_new
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:
	movq	%rax, %r13
	movq	_LDNS_RR_TYPE_A@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_LDNS_RR_CLASS_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	-80(%rbp), %rdi
	movq	%r15, %rsi
	callq	_ldns_str2rdf_dname
	movq	_LDNS_STATUS_OK@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	jne	LBB0_11
## %bb.5:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	movl	%ebx, %r15d
	cmovnel	%eax, %r15d
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	cmovnel	%eax, %ebx
	movq	-80(%rbp), %rsi
	movq	%r13, %rdi
	callq	_ldns_rr_set_owner
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_ldns_rr_set_type
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_ldns_rr_set_class
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_ldns_rr_set_question
	movq	_LDNS_SECTION_QUESTION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%r13, %rdx
	callq	_ldns_pkt_push_rr
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.6:
	movq	_LDNS_SECTION_AUTHORITY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_ldns_pkt_push_rr
LBB0_7:
	movq	$0, (%r12)
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_ldns_pkt_set_answerfrom
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%r12, (%rax)
	jmp	LBB0_10
LBB0_2:
	movq	%rcx, %r14
	jmp	LBB0_10
LBB0_11:
	movq	%r13, %rdi
	callq	_ldns_rr_free
	movq	%r12, %rdi
	callq	_ldns_pkt_free
	movq	_LDNS_STATUS_ERR@GOTPCREL(%rip), %r14
	jmp	LBB0_10
LBB0_9:
	movq	%r12, %rdi
	callq	_ldns_pkt_free
	movq	_LDNS_STATUS_NULL@GOTPCREL(%rip), %r14
LBB0_10:
	movq	(%r14), %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_STATUS_MEM_ERR,8,3        ## @LDNS_STATUS_MEM_ERR
	.comm	_LDNS_STATUS_ERR,8,3            ## @LDNS_STATUS_ERR
	.comm	_LDNS_RR_TYPE_A,4,2             ## @LDNS_RR_TYPE_A
	.comm	_LDNS_RR_CLASS_IN,4,2           ## @LDNS_RR_CLASS_IN
	.comm	_LDNS_STATUS_OK,8,3             ## @LDNS_STATUS_OK
	.comm	_LDNS_SECTION_QUESTION,4,2      ## @LDNS_SECTION_QUESTION
	.comm	_LDNS_SECTION_AUTHORITY,4,2     ## @LDNS_SECTION_AUTHORITY
	.comm	_LDNS_STATUS_NULL,8,3           ## @LDNS_STATUS_NULL
	.no_dead_strip	_ldns_pkt_query_new_frm_str_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ldns_pkt_query_new_frm_str_internal
_ldns_pkt_query_new_frm_str_internal:   ; @ldns_pkt_query_new_frm_str_internal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x5
	mov	x22, x4
	mov	x24, x3
	mov	x23, x2
	mov	x25, x1
	mov	x20, x0
	bl	_ldns_pkt_new
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
	mov	x1, x22
	bl	_ldns_pkt_set_flags
	cbz	w0, LBB0_10
; %bb.2:
	bl	_ldns_rr_new
	cbz	x0, LBB0_8
; %bb.3:
	mov	x22, x0
Lloh0:
	adrp	x8, _LDNS_RR_TYPE_A@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LDNS_RR_TYPE_A@GOTPAGEOFF]
Lloh2:
	ldr	w26, [x8]
Lloh3:
	adrp	x8, _LDNS_RR_CLASS_IN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LDNS_RR_CLASS_IN@GOTPAGEOFF]
Lloh5:
	ldr	w27, [x8]
	add	x0, sp, #8
	mov	x1, x25
	bl	_ldns_str2rdf_dname
Lloh6:
	adrp	x8, _LDNS_STATUS_OK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LDNS_STATUS_OK@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.4:
	cmp	w24, #0
	csel	w24, w27, w24, eq
	cmp	w23, #0
	csel	w23, w26, w23, eq
	ldr	x1, [sp, #8]
	mov	x0, x22
	bl	_ldns_rr_set_owner
	mov	x0, x22
	mov	x1, x23
	bl	_ldns_rr_set_type
	mov	x0, x22
	mov	x1, x24
	bl	_ldns_rr_set_class
	mov	x0, x22
	mov	w1, #1
	bl	_ldns_rr_set_question
Lloh9:
	adrp	x8, _LDNS_SECTION_QUESTION@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LDNS_SECTION_QUESTION@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_ldns_pkt_push_rr
	cbz	x21, LBB0_6
; %bb.5:
Lloh12:
	adrp	x8, _LDNS_SECTION_AUTHORITY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LDNS_SECTION_AUTHORITY@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_ldns_pkt_push_rr
LBB0_6:
	str	xzr, [x19]
	mov	x0, x19
	mov	x1, #0
	bl	_ldns_pkt_set_answerfrom
	cbz	x20, LBB0_12
; %bb.7:
	str	x19, [x20]
Lloh15:
	adrp	x8, _LDNS_STATUS_OK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LDNS_STATUS_OK@GOTPAGEOFF]
	b	LBB0_11
LBB0_8:
Lloh17:
	adrp	x8, _LDNS_STATUS_MEM_ERR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LDNS_STATUS_MEM_ERR@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
	mov	x0, x22
	bl	_ldns_rr_free
	mov	x0, x19
	bl	_ldns_pkt_free
LBB0_10:
Lloh19:
	adrp	x8, _LDNS_STATUS_ERR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _LDNS_STATUS_ERR@GOTPAGEOFF]
LBB0_11:
	ldr	x0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_12:
	mov	x0, x19
	bl	_ldns_pkt_free
Lloh21:
	adrp	x8, _LDNS_STATUS_NULL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _LDNS_STATUS_NULL@GOTPAGEOFF]
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_STATUS_MEM_ERR,8,3        ; @LDNS_STATUS_MEM_ERR
	.comm	_LDNS_STATUS_ERR,8,3            ; @LDNS_STATUS_ERR
	.comm	_LDNS_RR_TYPE_A,4,2             ; @LDNS_RR_TYPE_A
	.comm	_LDNS_RR_CLASS_IN,4,2           ; @LDNS_RR_CLASS_IN
	.comm	_LDNS_STATUS_OK,8,3             ; @LDNS_STATUS_OK
	.comm	_LDNS_SECTION_QUESTION,4,2      ; @LDNS_SECTION_QUESTION
	.comm	_LDNS_SECTION_AUTHORITY,4,2     ; @LDNS_SECTION_AUTHORITY
	.comm	_LDNS_STATUS_NULL,8,3           ; @LDNS_STATUS_NULL
	.no_dead_strip	_ldns_pkt_query_new_frm_str_internal
.subsections_via_symbols
