	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ldns_pkt_query_new_internal
_ldns_pkt_query_new_internal:           ## @ldns_pkt_query_new_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %r13
	xorl	%eax, %eax
	callq	_ldns_pkt_new
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	%r14d, %esi
	callq	_ldns_pkt_set_flags
	testl	%eax, %eax
	je	LBB0_13
## %bb.2:
	xorl	%eax, %eax
	callq	_ldns_rr_new
	testq	%rax, %rax
	je	LBB0_12
## %bb.3:
	movq	%rax, %r14
	testl	%r12d, %r12d
	jne	LBB0_5
## %bb.4:
	movq	_LDNS_RR_TYPE_A@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_5:
	testl	%r15d, %r15d
	jne	LBB0_7
## %bb.6:
	movq	_LDNS_RR_CLASS_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_7:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_ldns_rr_set_owner
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_ldns_rr_set_type
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_ldns_rr_set_class
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_ldns_rr_set_question
	movq	_LDNS_SECTION_QUESTION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_ldns_pkt_push_rr
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.8:
	movq	_LDNS_SECTION_AUTHORITY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ldns_pkt_push_rr
LBB0_9:
	movq	$0, (%rbx)
	jmp	LBB0_14
LBB0_12:
	movq	%rbx, %rdi
	callq	_ldns_pkt_free
LBB0_13:
	xorl	%ebx, %ebx
LBB0_14:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_RR_TYPE_A,4,2             ## @LDNS_RR_TYPE_A
	.comm	_LDNS_RR_CLASS_IN,4,2           ## @LDNS_RR_CLASS_IN
	.comm	_LDNS_SECTION_QUESTION,4,2      ## @LDNS_SECTION_QUESTION
	.comm	_LDNS_SECTION_AUTHORITY,4,2     ## @LDNS_SECTION_AUTHORITY
	.no_dead_strip	_ldns_pkt_query_new_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_internal
_ldns_pkt_query_new_internal:           ; @ldns_pkt_query_new_internal
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x4
	mov	x21, x3
	mov	x23, x2
	mov	x24, x1
	mov	x22, x0
	bl	_ldns_pkt_new
	mov	x19, x0
	cbz	x0, LBB0_8
; %bb.1:
	mov	x0, x19
	mov	x1, x21
	bl	_ldns_pkt_set_flags
	cbz	w0, LBB0_7
; %bb.2:
	bl	_ldns_rr_new
	cbz	x0, LBB0_6
; %bb.3:
	mov	x21, x0
Lloh0:
	adrp	x8, _LDNS_RR_TYPE_A@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LDNS_RR_TYPE_A@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w24, #0
	csel	w24, w8, w24, eq
Lloh3:
	adrp	x8, _LDNS_RR_CLASS_IN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LDNS_RR_CLASS_IN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w23, #0
	csel	w23, w8, w23, eq
	mov	x1, x22
	bl	_ldns_rr_set_owner
	mov	x0, x21
	mov	x1, x24
	bl	_ldns_rr_set_type
	mov	x0, x21
	mov	x1, x23
	bl	_ldns_rr_set_class
	mov	x0, x21
	mov	w1, #1
	bl	_ldns_rr_set_question
Lloh6:
	adrp	x8, _LDNS_SECTION_QUESTION@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LDNS_SECTION_QUESTION@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_ldns_pkt_push_rr
	cbz	x20, LBB0_5
; %bb.4:
Lloh9:
	adrp	x8, _LDNS_SECTION_AUTHORITY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LDNS_SECTION_AUTHORITY@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_ldns_pkt_push_rr
LBB0_5:
	str	xzr, [x19]
	b	LBB0_8
LBB0_6:
	mov	x0, x19
	bl	_ldns_pkt_free
LBB0_7:
	mov	x19, #0
LBB0_8:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RR_TYPE_A,4,2             ; @LDNS_RR_TYPE_A
	.comm	_LDNS_RR_CLASS_IN,4,2           ; @LDNS_RR_CLASS_IN
	.comm	_LDNS_SECTION_QUESTION,4,2      ; @LDNS_SECTION_QUESTION
	.comm	_LDNS_SECTION_AUTHORITY,4,2     ; @LDNS_SECTION_AUTHORITY
	.no_dead_strip	_ldns_pkt_query_new_internal
.subsections_via_symbols
