	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p2p_sd_dns_uncompress
_p2p_sd_dns_uncompress:                 ## @p2p_sd_dns_uncompress
	.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
	movl	$-1, %r13d
	cmpq	$2, %rsi
	jb	LBB0_10
## %bb.1:
	movq	%r8, %r14
	movq	%rcx, %rbx
	cmpq	%rcx, %r8
	ja	LBB0_10
## %bb.2:
	movq	%rsi, %r12
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	_DNS_HEADER_LEN@GOTPCREL(%rip), %rcx
	movq	_P2P_SD_IN_MEMORY_LEN@GOTPCREL(%rip), %rax
	movl	(%rcx), %edi
	addl	%ebx, %edi
	addl	(%rax), %edi
	callq	_os_malloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movq	%rax, %r15
	movq	_DNS_HEADER_LEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdx
	movq	%rdx, %rax
	addq	%r15, %rax
	movq	_P2P_SD_IN_MEMORY_LEN@GOTPCREL(%rip), %r13
	movslq	(%r13), %rcx
	addq	%rax, %rcx
	leaq	(%rcx,%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	addq	%r14, %rcx
	movq	%rcx, -80(%rbp)
	movq	%r15, %rdi
	xorl	%esi, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_os_memset
	movq	_DNS_HEADER_LEN@GOTPCREL(%rip), %r14
	movslq	(%r14), %rdi
	addq	%r15, %rdi
	movslq	(%r13), %rdx
	leaq	l_.str(%rip), %rsi
	callq	_os_memcpy
	movslq	(%r14), %rax
	addq	%r15, %rax
	movslq	(%r13), %rdi
	addq	%rax, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_os_memcpy
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, -48(%rbp)
	addq	%rbx, %r12
	leaq	-48(%rbp), %rdi
	leaq	-80(%rbp), %rcx
	movq	%r12, %rsi
	movq	%r15, %rdx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	callq	_p2p_sd_dns_uncompress_label
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.4:
	movq	-48(%rbp), %rax
	cmpq	%rbx, %rax
	je	LBB0_5
## %bb.6:
	xorl	%r13d, %r13d
	cmpb	$46, -1(%rax)
	jne	LBB0_9
## %bb.7:
	decq	%rax
	movq	%rax, %rbx
	jmp	LBB0_8
LBB0_5:
	movb	$46, (%rbx)
	incq	%rbx
LBB0_8:
	movb	$0, (%rbx)
	xorl	%r13d, %r13d
LBB0_9:
	movq	%r15, %rdi
	callq	_os_free
LBB0_10:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
l_.str:                                 ## @.str
	.asciz	"\004_tcp\005local\000\000\f\000\001\004_udp\300\021\000\f\000\001"

	.comm	_DNS_HEADER_LEN,4,2             ## @DNS_HEADER_LEN
	.comm	_P2P_SD_IN_MEMORY_LEN,4,2       ## @P2P_SD_IN_MEMORY_LEN
	.no_dead_strip	_p2p_sd_dns_uncompress
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function p2p_sd_dns_uncompress
_p2p_sd_dns_uncompress:                 ; @p2p_sd_dns_uncompress
	.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	w24, #-1
	cmp	x1, #2
	b.lo	LBB0_12
; %bb.1:
	mov	x25, x4
	mov	x22, x3
	cmp	x4, x3
	b.hi	LBB0_12
; %bb.2:
	mov	x23, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x26, _DNS_HEADER_LEN@GOTPAGE
Lloh1:
	ldr	x26, [x26, _DNS_HEADER_LEN@GOTPAGEOFF]
	ldr	w8, [x26]
Lloh2:
	adrp	x27, _P2P_SD_IN_MEMORY_LEN@GOTPAGE
Lloh3:
	ldr	x27, [x27, _P2P_SD_IN_MEMORY_LEN@GOTPAGEOFF]
	ldr	w9, [x27]
	add	w8, w8, w22
	add	w0, w8, w9
	bl	_os_malloc
	cbz	x0, LBB0_7
; %bb.3:
	mov	x20, x0
	ldrsw	x2, [x26]
	ldrsw	x8, [x27]
	add	x9, x0, x2
	add	x8, x9, x8
	add	x24, x8, x22
	add	x8, x8, x25
	str	x8, [sp, #8]
	mov	w1, #0
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_os_memset
	ldrsw	x8, [x26]
	add	x0, x20, x8
	ldrsw	x2, [x27]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_os_memcpy
	ldrsw	x8, [x26]
	ldrsw	x9, [x27]
	add	x8, x20, x8
	add	x0, x8, x9
	mov	x1, x23
	mov	x2, x22
	bl	_os_memcpy
	str	x19, [sp]
	add	x1, x19, x21
	mov	x0, sp
	add	x3, sp, #8
	mov	x2, x20
	mov	x4, x24
	bl	_p2p_sd_dns_uncompress_label
	mov	x24, x0
	cbnz	w0, LBB0_11
; %bb.4:
	ldr	x8, [sp]
	cmp	x8, x19
	b.eq	LBB0_8
; %bb.5:
	ldrb	w9, [x8, #-1]!
	cmp	w9, #46
	b.ne	LBB0_10
; %bb.6:
	mov	x19, x8
	b	LBB0_9
LBB0_7:
	mov	w24, #-1
	b	LBB0_12
LBB0_8:
	mov	w8, #46
	strb	w8, [x19], #1
LBB0_9:
	mov	w24, #0
	strb	wzr, [x19]
	b	LBB0_11
LBB0_10:
	mov	w24, #0
LBB0_11:
	mov	x0, x20
	bl	_os_free
LBB0_12:
	mov	x0, x24
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
l_.str:                                 ; @.str
	.asciz	"\004_tcp\005local\000\000\f\000\001\004_udp\300\021\000\f\000\001"

	.comm	_DNS_HEADER_LEN,4,2             ; @DNS_HEADER_LEN
	.comm	_P2P_SD_IN_MEMORY_LEN,4,2       ; @P2P_SD_IN_MEMORY_LEN
	.no_dead_strip	_p2p_sd_dns_uncompress
.subsections_via_symbols
