	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_dns_response
_parse_dns_response:                    ## @parse_dns_response
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movl	$1, %edi
	movl	$48, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	addq	$8, %rdi
	movq	_HFIXEDSZ@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r15, %rsi
	callq	_memcpy
	movslq	(%r12), %rax
	leaq	(%r15,%rax,4), %rax
	movq	%rax, -40(%rbp)
	movl	8(%rbx), %edi
	callq	_ntohs
	movl	%eax, 8(%rbx)
	movl	12(%rbx), %edi
	callq	_ntohs
	movl	%eax, 12(%rbx)
	movl	16(%rbx), %edi
	callq	_ntohs
	movl	%eax, 16(%rbx)
	movl	20(%rbx), %edi
	callq	_ntohs
	movl	%eax, 20(%rbx)
	movl	8(%rbx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_10
## %bb.2:
	leaq	-40(%rbp), %rdx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_parse_dns_qsection
	movq	%rax, 40(%rbx)
	cmpl	$0, 8(%rbx)
	je	LBB0_4
## %bb.3:
	testq	%rax, %rax
	je	LBB0_10
LBB0_4:
	movl	12(%rbx), %ecx
	leaq	-40(%rbp), %rdx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_parse_dns_rrsection
	movq	%rax, 32(%rbx)
	cmpl	$0, 12(%rbx)
	je	LBB0_6
## %bb.5:
	testq	%rax, %rax
	je	LBB0_10
LBB0_6:
	movl	16(%rbx), %ecx
	leaq	-40(%rbp), %rdx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_parse_dns_rrsection
	movq	%rax, 24(%rbx)
	cmpl	$0, 16(%rbx)
	je	LBB0_8
## %bb.7:
	testq	%rax, %rax
	je	LBB0_10
LBB0_8:
	movl	20(%rbx), %ecx
	leaq	-40(%rbp), %rdx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_parse_dns_rrsection
	movq	%rax, (%rbx)
	cmpl	$0, 20(%rbx)
	je	LBB0_12
## %bb.9:
	testq	%rax, %rax
	jne	LBB0_12
LBB0_10:
	movq	%rbx, %rdi
	callq	_free_dns_response
LBB0_11:
	xorl	%ebx, %ebx
LBB0_12:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HFIXEDSZ,4,2                   ## @HFIXEDSZ
	.no_dead_strip	_parse_dns_response
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_dns_response
_parse_dns_response:                    ; @parse_dns_response
	.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	x20, x1
	mov	x21, x0
	mov	w0, #1
	mov	w1, #48
	bl	_calloc
	mov	x19, x0
	cbz	x0, LBB0_11
; %bb.1:
	add	x0, x19, #8
Lloh0:
	adrp	x22, _HFIXEDSZ@GOTPAGE
Lloh1:
	ldr	x22, [x22, _HFIXEDSZ@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x1, x21
	bl	_memcpy
	ldrsw	x8, [x22]
	add	x8, x21, x8, lsl #2
	str	x8, [sp, #8]
	ldr	w0, [x19, #8]
	bl	_ntohs
	str	w0, [x19, #8]
	ldr	w0, [x19, #12]
	bl	_ntohs
	str	w0, [x19, #12]
	ldr	w0, [x19, #16]
	bl	_ntohs
	str	w0, [x19, #16]
	ldr	w0, [x19, #20]
	bl	_ntohs
	str	w0, [x19, #20]
	ldr	w3, [x19, #8]
	cmp	w3, #0
	b.le	LBB0_10
; %bb.2:
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, x20
	bl	_parse_dns_qsection
	str	x0, [x19, #40]
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_4
; %bb.3:
	cbz	x0, LBB0_10
LBB0_4:
	ldr	w3, [x19, #12]
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, x20
	bl	_parse_dns_rrsection
	str	x0, [x19, #32]
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_6
; %bb.5:
	cbz	x0, LBB0_10
LBB0_6:
	ldr	w3, [x19, #16]
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, x20
	bl	_parse_dns_rrsection
	str	x0, [x19, #24]
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_8
; %bb.7:
	cbz	x0, LBB0_10
LBB0_8:
	ldr	w3, [x19, #20]
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, x20
	bl	_parse_dns_rrsection
	str	x0, [x19]
	ldr	w8, [x19, #20]
	cbz	w8, LBB0_11
; %bb.9:
	cbnz	x0, LBB0_11
LBB0_10:
	mov	x0, x19
	bl	_free_dns_response
	mov	x19, #0
LBB0_11:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_HFIXEDSZ,4,2                   ; @HFIXEDSZ
	.no_dead_strip	_parse_dns_response
.subsections_via_symbols
