	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_dns_qsection
_parse_dns_qsection:                    ## @parse_dns_qsection
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXDNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	testl	%r14d, %r14d
	jle	LBB0_12
## %bb.1:
	movslq	%r12d, %rax
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	leaq	(%rbx,%rax,4), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	movl	$32, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r13
	testq	%rbx, %rbx
	cmoveq	%rax, %rbx
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	testq	%r12, %r12
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, 24(%r12)
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %rdx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rcx
	movq	-88(%rbp), %r8                  ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_dn_expand
	testl	%eax, %eax
	js	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_strdup
	movq	%rax, 16(%r13)
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r12d, %edi
	shlq	$2, %rdi
	addq	(%r15), %rdi
	movq	%rdi, (%r15)
	callq	__getshort
	movq	%rax, 8(%r13)
	movq	_INT16SZ@GOTPCREL(%rip), %rbx
	movslq	(%rbx), %rdi
	shlq	$2, %rdi
	addq	(%r15), %rdi
	movq	%rdi, (%r15)
	callq	__getshort
	movq	%rax, (%r13)
	movslq	(%rbx), %rax
	shlq	$2, %rax
	addq	%rax, (%r15)
	movq	%r13, %r12
	decl	%r14d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_2
	jmp	LBB0_13
LBB0_9:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_11
LBB0_10:
	movq	%rbx, %rdi
LBB0_11:
	callq	_free_dns_query
LBB0_12:
	xorl	%ebx, %ebx
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	movq	%rbx, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXDNAME,4,2                   ## @MAXDNAME
	.comm	_INT16SZ,4,2                    ## @INT16SZ
	.no_dead_strip	_parse_dns_qsection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_dns_qsection
_parse_dns_qsection:                    ; @parse_dns_qsection
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #16
	mov	x20, x3
	mov	x21, x2
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _MAXDNAME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXDNAME@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	mov	x9, x23
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x23, #15
	and	x9, x9, #0x1fffffff0
	sub	x24, x8, x9
	mov	sp, x24
	cmp	w3, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x19, #0
	mov	x27, #0
Lloh8:
	adrp	x28, _INT16SZ@GOTPAGE
Lloh9:
	ldr	x28, [x28, _INT16SZ@GOTPAGEOFF]
	add	x25, x22, w1, sxtw #2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #1
	mov	w1, #32
	bl	_calloc
	cbz	x0, LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x26, x0
	cmp	x19, #0
	csel	x19, x0, x19, eq
	cbz	x27, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	str	x26, [x27, #24]
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x2, [x21]
	mov	x0, x22
	mov	x1, x25
	mov	x3, x24
	mov	x4, x23
	bl	_dn_expand
	tbnz	w0, #31, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x27, x0
	mov	x0, x24
	bl	_strdup
	str	x0, [x26, #16]
	cbz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x21]
	add	x0, x8, w27, uxtw #2
	str	x0, [x21]
	bl	__getshort
	str	x0, [x26, #8]
	ldrsw	x8, [x28]
	ldr	x9, [x21]
	add	x0, x9, x8, lsl #2
	str	x0, [x21]
	bl	__getshort
	str	x0, [x26]
	ldrsw	x8, [x28]
	ldr	x9, [x21]
	add	x8, x9, x8, lsl #2
	str	x8, [x21]
	mov	x27, x26
	subs	w20, w20, #1
	b.ne	LBB0_2
	b	LBB0_10
LBB0_8:
	mov	x0, x19
	bl	_free_dns_query
LBB0_9:
	mov	x19, #0
LBB0_10:
	ldur	x8, [x29, #-88]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x19
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXDNAME,4,2                   ; @MAXDNAME
	.comm	_INT16SZ,4,2                    ; @INT16SZ
	.no_dead_strip	_parse_dns_qsection
.subsections_via_symbols
