	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p2p_sd_dns_uncompress_label
_p2p_sd_dns_uncompress_label:           ## @p2p_sd_dns_uncompress_label
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	(%rcx), %r8
	xorl	%eax, %eax
	cmpq	%r14, %r8
	jae	LBB0_20
## %bb.1:
	movq	%rcx, %r12
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r8), %r13d
	movl	%r13d, %edx
	shrl	$6, %edx
	andl	$3, %edx
	leal	-1(%rdx), %eax
	cmpl	$1, %eax
	jbe	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$3, %edx
	je	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	andl	$63, %r13d
	testq	%r13, %r13
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$4, %r8
	movq	%r8, (%r12)
	movq	%r14, %rax
	subq	%r8, %rax
	sarq	$2, %rax
	cmpq	%r13, %rax
	jl	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	2(%r13), %eax
	movq	(%rbx), %rdi
	movq	%r15, %rcx
	subq	%rdi, %rcx
	cmpq	%rax, %rcx
	jl	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r8, %rsi
	movl	%r13d, %edx
	callq	_os_memcpy
	leaq	(,%r13,4), %rax
	addq	%rax, (%r12)
	movq	(%rbx), %rax
	leaq	(%rax,%r13), %rcx
	movq	%rcx, (%rbx)
	movb	$46, (%rax,%r13)
	movq	(%rbx), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, (%rbx)
	movb	$0, 1(%rax)
	movq	(%r12), %r8
	cmpq	%r14, %r8
	jb	LBB0_2
LBB0_8:
	xorl	%eax, %eax
	jmp	LBB0_20
LBB0_9:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_17
LBB0_10:
	subq	%r8, %r14
	cmpq	$7, %r14
	jg	LBB0_14
## %bb.11:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_19
LBB0_12:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%r13d, %edx
	jmp	LBB0_18
LBB0_13:
	movl	$-2, %eax
	jmp	LBB0_20
LBB0_14:
	andl	$63, %r13d
	shlq	$8, %r13
	movslq	4(%r8), %rdx
	orq	%r13, %rdx
	movq	%r8, %rax
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	subq	%r9, %rax
	sarq	$2, %rax
	cmpq	%rdx, %rax
	jle	LBB0_16
## %bb.15:
	leaq	8(%r8), %rax
	movq	%rax, (%r12)
	leaq	(%r9,%rdx,4), %rax
	movq	%rax, -56(%rbp)
	leaq	-56(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r9, %rdx
	callq	_p2p_sd_dns_uncompress_label
	jmp	LBB0_20
LBB0_16:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_17:
                                        ## kill: def $edx killed $edx killed $rdx
LBB0_18:
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_19:
	movl	$-1, %eax
LBB0_20:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"P2P: Invalid domain name sequence starting with 0x%x"

L_.str.1:                               ## @.str.1
	.asciz	"P2P: No room for full DNS offset field"

L_.str.2:                               ## @.str.2
	.asciz	"P2P: Invalid DNS pointer offset %u"

L_.str.3:                               ## @.str.3
	.asciz	"P2P: Invalid domain name sequence - no room for label with length %u"

	.no_dead_strip	_p2p_sd_dns_uncompress_label
.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_label
_p2p_sd_dns_uncompress_label:           ; @p2p_sd_dns_uncompress_label
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x23, x4
	ldr	x4, [x3]
	cmp	x4, x23
	b.hs	LBB0_8
; %bb.1:
	mov	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	w25, #46
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x4]
	ubfx	w9, w8, #6, #2
	sub	w10, w9, #1
	cmp	w10, #1
	b.ls	LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w9, #3
	b.eq	LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	and	x24, x8, #0x3f
	cbz	w24, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x1, x4, #4
	str	x1, [x22]
	sub	x8, x23, x1
	cmp	x24, x8, asr #2
	b.gt	LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w8, w24, #2
	ldr	x0, [x21]
	sub	x9, x20, x0
	cmp	x9, x8
	b.lt	LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x2, x24
	bl	_os_memcpy
	ldr	x8, [x22]
	add	x8, x8, x24, lsl #2
	str	x8, [x22]
	ldr	x8, [x21]
	add	x9, x8, x24
	str	x9, [x21]
	strb	w25, [x8, x24]
	ldr	x8, [x21]
	add	x9, x8, #1
	str	x9, [x21]
	strb	wzr, [x8, #1]
	ldr	x4, [x22]
	cmp	x4, x23
	b.lo	LBB0_2
LBB0_8:
	mov	w0, #0
	b	LBB0_18
LBB0_9:
Lloh0:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	str	x9, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_17
LBB0_10:
	sub	x9, x23, x4
	cmp	x9, #7
	b.gt	LBB0_14
; %bb.11:
Lloh5:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_17
LBB0_12:
Lloh10:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
                                        ; kill: def $w24 killed $w24 killed $x24 def $x24
	str	x24, [sp]
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_17
LBB0_13:
	mov	w0, #-2
	b	LBB0_18
LBB0_14:
	lsl	w8, w8, #8
	and	x8, x8, #0x3f00
	ldrsw	x9, [x4, #4]
	orr	x8, x9, x8
	sub	x9, x4, x19
	cmp	x8, x9, asr #2
	b.ge	LBB0_16
; %bb.15:
	add	x9, x4, #8
	str	x9, [x22]
	add	x8, x19, x8, lsl #2
	str	x8, [sp, #8]
	add	x3, sp, #8
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_p2p_sd_dns_uncompress_label
	b	LBB0_18
LBB0_16:
Lloh15:
	adrp	x9, _MSG_DEBUG@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MSG_DEBUG@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x9]
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	str	x8, [sp]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_17:
	bl	_wpa_printf
	mov	w0, #-1
LBB0_18:
	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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"P2P: Invalid domain name sequence starting with 0x%x"

l_.str.1:                               ; @.str.1
	.asciz	"P2P: No room for full DNS offset field"

l_.str.2:                               ; @.str.2
	.asciz	"P2P: Invalid DNS pointer offset %u"

l_.str.3:                               ; @.str.3
	.asciz	"P2P: Invalid domain name sequence - no room for label with length %u"

	.no_dead_strip	_p2p_sd_dns_uncompress_label
.subsections_via_symbols
