	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdp_search                     ## -- Begin function sdp_search
	.p2align	4, 0x90
_sdp_search:                            ## @sdp_search
	.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	$120, %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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$-1, %r8d
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.1:
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.2:
	testq	%r14, %r14
	je	LBB0_12
## %bb.3:
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.4:
	movq	%rdx, %r12
	testq	%rdx, %rdx
	je	LBB0_12
## %bb.5:
	testq	%rsi, %rsi
	je	LBB0_12
## %bb.6:
	cmpq	$0, 8(%rdi)
	je	LBB0_12
## %bb.7:
	testq	%rcx, %rcx
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	jle	LBB0_16
## %bb.8:
	xorl	%eax, %eax
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%rax,8), %rbx
	movq	%rbx, %rdx
	shrq	$16, %rdx
	cmpl	%ebx, %edx
	jg	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	setne	%dl
	movzbl	%dl, %edx
	leal	(%r15,%rdx,4), %r15d
	addl	$5, %r15d
	incq	%rax
	cmpq	%rax, %rcx
	jne	LBB0_9
## %bb.11:
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	jmp	LBB0_17
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_13:
	movq	(%rax), %rax
	movq	%rax, 56(%rdi)
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_76
## %bb.15:
	movl	%r8d, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	xorl	%eax, %eax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	xorl	%r15d, %r15d
LBB0_17:
	leaq	(%rsi,%rsi,4), %r13
	leal	(%r15,%r13), %eax
	addl	$20, %eax
	movq	16(%rdi), %rcx
	movq	-128(%rbp), %rbx                ## 8-byte Reload
	subq	%rbx, %rcx
	sarq	$2, %rcx
	cltq
	cmpq	%rax, %rcx
	jge	LBB0_19
## %bb.18:
	movq	_ENOBUFS@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_19:
	movq	%rdi, -144(%rbp)                ## 8-byte Spill
	movq	%r9, -136(%rbp)                 ## 8-byte Spill
	movl	$144, %edi
	movq	%rbx, %rsi
	callq	_SDP_PUT8
	movl	%r13d, %edi
	movq	%rbx, %rsi
	callq	_SDP_PUT16
	testq	%r13, %r13
	jle	LBB0_22
## %bb.20:
	addq	$5, %r13
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movl	$129, %edi
	movq	%rbx, %rsi
	callq	_SDP_PUT8
	movl	(%r12), %edi
	movq	%rbx, %rsi
	callq	_SDP_PUT16
	addq	$4, %r12
	addq	$-5, %r13
	cmpq	$5, %r13
	ja	LBB0_21
LBB0_22:
	movl	$65535, %edi                    ## imm = 0xFFFF
	movq	%rbx, %rsi
	callq	_SDP_PUT16
	movl	$144, %edi
	movq	%rbx, %rsi
	callq	_SDP_PUT8
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_SDP_PUT16
	testl	%r15d, %r15d
	jle	LBB0_28
## %bb.23:
	movq	%rbx, %r13
	movslq	%r15d, %r12
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_26 Depth=1
	movl	$137, %edi
	movq	%r13, %rsi
	callq	_SDP_PUT8
	movl	%ebx, %edi
	movq	%r13, %rsi
	callq	_SDP_PUT16
	movq	$-5, %rax
LBB0_25:                                ##   in Loop: Header=BB0_26 Depth=1
	addq	$8, %r14
	addq	%rax, %r12
	jle	LBB0_28
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movq	%rax, %rbx
	shrq	$16, %rbx
	cmpl	%eax, %ebx
	je	LBB0_24
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=1
	movl	$136, %edi
	movq	%r13, %rsi
	callq	_SDP_PUT8
	movq	(%r14), %rdi
	movq	%r13, %rsi
	callq	_SDP_PUT32
	movq	$-9, %rax
	jmp	LBB0_25
LBB0_28:
	movq	-144(%rbp), %rbx                ## 8-byte Reload
	movl	$0, 24(%rbx)
	movq	8(%rbx), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	leaq	-112(%rbp), %r15
	leaq	-80(%rbp), %r12
	movq	_errno@GOTPCREL(%rip), %r13
	jmp	LBB0_30
LBB0_29:                                ##   in Loop: Header=BB0_30 Depth=1
	movl	24(%rbx), %edi
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	testl	%edi, %edi
	leaq	-112(%rbp), %r15
	jle	LBB0_53
LBB0_30:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_34 Depth 2
                                        ##     Child Loop BB0_38 Depth 2
	movq	16(%rbx), %rax
	movq	-128(%rbp), %r14                ## 8-byte Reload
	subq	%r14, %rax
	sarq	$2, %rax
	leal	1(%rdi), %ecx
	cmpq	%rcx, %rax
	jl	LBB0_52
## %bb.31:                              ##   in Loop: Header=BB0_30 Depth=1
                                        ## kill: def $edi killed $edi killed $rdi
	movq	%r14, %rsi
	callq	_SDP_PUT8
	movl	24(%rbx), %edx
	testl	%edx, %edx
	jle	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_30 Depth=1
	movq	32(%rbx), %rsi
	movq	%r14, %rdi
	callq	_memcpy
	movslq	24(%rbx), %rax
	leaq	(%r14,%rax,4), %r14
LBB0_33:                                ##   in Loop: Header=BB0_30 Depth=1
	movq	_SDP_PDU_SERVICE_SEARCH_ATTRIBUTE_REQUEST@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -112(%rbp)
	movl	40(%rbx), %edi
	callq	_htons
	movl	%eax, -104(%rbp)
	movq	%r14, %rdi
	subq	(%rbx), %rdi
	shrq	$2, %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_htons
	movl	%eax, -100(%rbp)
	movq	%r15, -72(%rbp)
	movl	$16, -80(%rbp)
	movq	(%rbx), %rax
	movq	%rax, -56(%rbp)
	subq	%rax, %r14
	shrq	$2, %r14
	movl	%r14d, -64(%rbp)
	.p2align	4, 0x90
LBB0_34:                                ##   Parent Loop BB0_30 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	64(%rbx), %edi
	movq	%r12, %rsi
	movl	$2, %edx
	callq	_writev
	movq	(%r13), %rcx
	testl	%eax, %eax
	jns	LBB0_36
## %bb.35:                              ##   in Loop: Header=BB0_34 Depth=2
	movq	_EINTR@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_34
LBB0_36:                                ##   in Loop: Header=BB0_30 Depth=1
	testl	%eax, %eax
	js	LBB0_61
## %bb.37:                              ##   in Loop: Header=BB0_30 Depth=1
	movq	%r15, -72(%rbp)
	movl	$20, -80(%rbp)
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, -56(%rbp)
	movl	44(%rbx), %eax
	movl	%eax, -64(%rbp)
	.p2align	4, 0x90
LBB0_38:                                ##   Parent Loop BB0_30 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	64(%rbx), %edi
	movq	%r12, %rsi
	movl	$2, %edx
	callq	_readv
	movl	%eax, %r14d
	movq	(%r13), %rcx
	testl	%eax, %eax
	jns	LBB0_40
## %bb.39:                              ##   in Loop: Header=BB0_38 Depth=2
	movq	_EINTR@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_38
LBB0_40:                                ##   in Loop: Header=BB0_30 Depth=1
	testl	%r14d, %r14d
	js	LBB0_61
## %bb.41:                              ##   in Loop: Header=BB0_30 Depth=1
	cmpl	$19, %r14d
	jbe	LBB0_58
## %bb.42:                              ##   in Loop: Header=BB0_30 Depth=1
	movl	-104(%rbp), %edi
	callq	_ntohs
	movl	%eax, -104(%rbp)
	movl	-100(%rbp), %edi
	callq	_ntohs
	movl	%eax, -100(%rbp)
	movl	-96(%rbp), %edi
	callq	_ntohs
	movl	%eax, -96(%rbp)
	movq	-112(%rbp), %rcx
	movq	_SDP_PDU_ERROR_RESPONSE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_51
## %bb.43:                              ##   in Loop: Header=BB0_30 Depth=1
	movl	-104(%rbp), %ecx
	cmpl	40(%rbx), %ecx
	jne	LBB0_51
## %bb.44:                              ##   in Loop: Header=BB0_30 Depth=1
	movl	-100(%rbp), %edx
	cmpl	%r14d, %edx
	jg	LBB0_51
## %bb.45:                              ##   in Loop: Header=BB0_30 Depth=1
	cmpl	%eax, %edx
	jl	LBB0_51
## %bb.46:                              ##   in Loop: Header=BB0_30 Depth=1
	cltq
	leaq	(%r15,%rax,4), %rsi
	incl	%ecx
	movl	%ecx, 40(%rbx)
	movl	(%r15,%rax,4), %edx
	movl	%edx, 24(%rbx)
	testl	%edx, %edx
	jle	LBB0_53
## %bb.47:                              ##   in Loop: Header=BB0_30 Depth=1
	cmpl	$9, %edx
	jae	LBB0_52
## %bb.48:                              ##   in Loop: Header=BB0_30 Depth=1
	movq	32(%rbx), %rdi
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	leaq	4(%rax), %rsi
	callq	_memcpy
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movq	48(%rbx), %r15
	movq	%r15, %rcx
	subq	%rsi, %rcx
	sarq	$2, %rcx
	movslq	44(%rbx), %rax
	cmpq	%rax, %rcx
	jg	LBB0_29
## %bb.49:                              ##   in Loop: Header=BB0_30 Depth=1
	movq	8(%rbx), %rdi
	subq	%rdi, %r15
	sarq	$2, %r15
	addq	%rax, %r15
	movq	%rdi, -152(%rbp)                ## 8-byte Spill
	movq	%r15, %rsi
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_59
## %bb.50:                              ##   in Loop: Header=BB0_30 Depth=1
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	subq	-152(%rbp), %rsi                ## 8-byte Folded Reload
	movq	%rax, 8(%rbx)
	leaq	(%rax,%r15,4), %rcx
	movq	%rcx, 48(%rbx)
	addq	%rax, %rsi
	jmp	LBB0_29
LBB0_51:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_60
LBB0_52:
	movq	_ENOBUFS@GOTPCREL(%rip), %rax
	jmp	LBB0_60
LBB0_53:
	cmpq	$0, 16(%rbp)
	movq	-120(%rbp), %r15                ## 8-byte Reload
	je	LBB0_73
## %bb.54:
	movq	%rsi, %r12
	movq	8(%rbx), %r13
	movl	%r15d, %edi
	movq	%r13, %rsi
	callq	_SDP_GET8
	cmpl	$144, %r15d
	je	LBB0_62
## %bb.55:
	cmpl	$143, %r15d
	je	LBB0_63
## %bb.56:
	cmpl	$142, %r15d
	jne	LBB0_75
## %bb.57:
	movl	%r14d, %edi
	movq	%r13, %rsi
	callq	_SDP_GET8
	jmp	LBB0_64
LBB0_58:
	movq	_ENOMSG@GOTPCREL(%rip), %rax
	jmp	LBB0_60
LBB0_59:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_60:
	movq	(%rax), %rcx
LBB0_61:
	movl	$-1, %r8d
	movq	%rcx, 56(%rbx)
	jmp	LBB0_14
LBB0_62:
	movl	%r14d, %edi
	movq	%r13, %rsi
	callq	_SDP_GET16
	jmp	LBB0_64
LBB0_63:
	movl	%r14d, %edi
	movq	%r13, %rsi
	callq	_SDP_GET32
LBB0_64:
	cmpq	%r12, %r13
	setb	%al
	cmpq	$0, -136(%rbp)                  ## 8-byte Folded Reload
	setg	%r12b
	andb	%al, %r12b
	cmpb	$1, %r12b
	jne	LBB0_73
LBB0_65:                                ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	movq	%r13, %rsi
	callq	_SDP_GET8
	cmpl	$144, %r15d
	je	LBB0_69
## %bb.66:                              ##   in Loop: Header=BB0_65 Depth=1
	cmpl	$143, %r15d
	je	LBB0_70
## %bb.67:                              ##   in Loop: Header=BB0_65 Depth=1
	cmpl	$142, %r15d
	jne	LBB0_75
## %bb.68:                              ##   in Loop: Header=BB0_65 Depth=1
	movl	%r14d, %edi
	movq	%r13, %rsi
	callq	_SDP_GET8
	jmp	LBB0_71
LBB0_69:                                ##   in Loop: Header=BB0_65 Depth=1
	movl	%r14d, %edi
	movq	%r13, %rsi
	callq	_SDP_GET16
	jmp	LBB0_71
LBB0_70:                                ##   in Loop: Header=BB0_65 Depth=1
	movl	%r14d, %edi
	movq	%r13, %rsi
	callq	_SDP_GET32
LBB0_71:                                ##   in Loop: Header=BB0_65 Depth=1
	testl	%r14d, %r14d
	jg	LBB0_74
## %bb.72:                              ##   in Loop: Header=BB0_65 Depth=1
	testb	%r12b, %r12b
	jne	LBB0_65
LBB0_73:
	movq	$0, 56(%rbx)
	xorl	%r8d, %r8d
	jmp	LBB0_14
LBB0_74:
	movl	%r15d, %edi
	movq	%r13, %rsi
	callq	_SDP_GET8
LBB0_75:
	movq	_ENOATTR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 56(%rbx)
	movl	$-1, %r8d
	jmp	LBB0_14
LBB0_76:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_ENOBUFS,8,3                    ## @ENOBUFS
	.comm	_SDP_PDU_SERVICE_SEARCH_ATTRIBUTE_REQUEST,8,3 ## @SDP_PDU_SERVICE_SEARCH_ATTRIBUTE_REQUEST
	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
	.comm	_ENOMSG,8,3                     ## @ENOMSG
	.comm	_SDP_PDU_ERROR_RESPONSE,8,3     ## @SDP_PDU_ERROR_RESPONSE
	.comm	_EIO,8,3                        ## @EIO
	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.comm	_ENOATTR,8,3                    ## @ENOATTR
	.comm	_SDP_ATTR_OK,4,2                ## @SDP_ATTR_OK
	.comm	_SDP_ATTR_TRUNCATED,4,2         ## @SDP_ATTR_TRUNCATED
	.comm	_SDP_ATTR_INVALID,4,2           ## @SDP_ATTR_INVALID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdp_search                     ; -- Begin function sdp_search
	.p2align	2
_sdp_search:                            ; @sdp_search
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
	cbz	x0, LBB0_14
; %bb.1:
	mov	x19, x0
	ldr	x23, [x0]
	cbz	x23, LBB0_11
; %bb.2:
	mov	x24, x4
	cbz	x4, LBB0_11
; %bb.3:
	mov	x20, x3
	cbz	x3, LBB0_11
; %bb.4:
	mov	x25, x2
	cbz	x2, LBB0_11
; %bb.5:
	cbz	x1, LBB0_11
; %bb.6:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_11
; %bb.7:
	cmp	x20, #1
	b.lt	LBB0_17
; %bb.8:
	mov	w8, #0
	mov	w9, #9
	mov	w10, #5
	mov	x11, x20
	mov	x12, x24
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x12]
	lsr	x14, x13, #16
	cmp	w14, w13
	b.gt	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	csel	w13, w10, w9, eq
	add	w8, w13, w8
	add	x12, x12, #8
	subs	x11, x11, #1
	b.ne	LBB0_9
	b	LBB0_18
LBB0_11:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_12:
	ldr	x8, [x8]
LBB0_13:
	str	x8, [x19, #56]
LBB0_14:
	mov	w0, #-1
LBB0_15:
	ldr	x8, [sp, #72]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_74
; %bb.16:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_17:
	mov	w20, #0
	mov	w8, #0
LBB0_18:
	add	x27, x1, x1, lsl #2
	add	w9, w27, w8
	add	w9, w9, #20
	ldr	x10, [x19, #16]
	sub	x10, x10, x23
	sxtw	x9, w9
	cmp	x9, x10, asr #2
	b.le	LBB0_20
LBB0_19:
Lloh8:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
	b	LBB0_12
LBB0_20:
	stp	x5, x6, [sp]                    ; 16-byte Folded Spill
	sxtw	x26, w8
	mov	w0, #144
	mov	x1, x23
	bl	_SDP_PUT8
	mov	x0, x27
	mov	x1, x23
	bl	_SDP_PUT16
	cmp	x27, #1
	b.lt	LBB0_23
; %bb.21:
	add	x21, x27, #5
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	mov	w0, #129
	mov	x1, x23
	bl	_SDP_PUT8
	ldr	w0, [x25], #4
	mov	x1, x23
	bl	_SDP_PUT16
	sub	x21, x21, #5
	cmp	x21, #5
	b.hi	LBB0_22
LBB0_23:
	mov	w0, #65535
	mov	x1, x23
	bl	_SDP_PUT16
	mov	w0, #144
	mov	x1, x23
	bl	_SDP_PUT8
	mov	x0, x26
	mov	x1, x23
	bl	_SDP_PUT16
	cmp	w26, #1
	b.ge	LBB0_27
LBB0_24:
	mov	w0, #0
	str	wzr, [x19, #24]
	ldr	x27, [x19, #8]
Lloh10:
	adrp	x25, _SDP_PDU_SERVICE_SEARCH_ATTRIBUTE_REQUEST@GOTPAGE
Lloh11:
	ldr	x25, [x25, _SDP_PDU_SERVICE_SEARCH_ATTRIBUTE_REQUEST@GOTPAGEOFF]
	add	x22, sp, #16
Lloh12:
	adrp	x28, _errno@GOTPAGE
Lloh13:
	ldr	x28, [x28, _errno@GOTPAGEOFF]
	mov	w26, #16
Lloh14:
	adrp	x21, _EINTR@GOTPAGE
Lloh15:
	ldr	x21, [x21, _EINTR@GOTPAGEOFF]
	b	LBB0_30
LBB0_25:                                ;   in Loop: Header=BB0_27 Depth=1
	mov	w0, #137
	mov	x1, x23
	bl	_SDP_PUT8
	mov	x0, x25
	mov	x1, x23
	bl	_SDP_PUT16
	mov	x8, #-5
LBB0_26:                                ;   in Loop: Header=BB0_27 Depth=1
	add	x26, x26, x8
	add	x24, x24, #8
	cmp	x26, #0
	b.le	LBB0_24
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	lsr	x25, x8, #16
	cmp	w25, w8
	b.eq	LBB0_25
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=1
	mov	w0, #136
	mov	x1, x23
	bl	_SDP_PUT8
	ldr	x0, [x24]
	mov	x1, x23
	bl	_SDP_PUT32
	mov	x8, #-9
	b	LBB0_26
LBB0_29:                                ;   in Loop: Header=BB0_30 Depth=1
	ldr	w0, [x19, #24]
	cmp	w0, #0
	b.le	LBB0_53
LBB0_30:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_35 Depth 2
                                        ;     Child Loop BB0_39 Depth 2
	ldr	x8, [x19, #16]
	sub	x8, x8, x23
	add	w9, w0, #1
	cmp	x9, x8, asr #2
	b.gt	LBB0_19
; %bb.31:                               ;   in Loop: Header=BB0_30 Depth=1
	mov	x1, x23
	bl	_SDP_PUT8
	ldr	w2, [x19, #24]
	cmp	w2, #1
	b.lt	LBB0_33
; %bb.32:                               ;   in Loop: Header=BB0_30 Depth=1
	ldr	x1, [x19, #32]
	mov	x0, x23
	bl	_memcpy
	ldrsw	x8, [x19, #24]
	add	x24, x23, x8, lsl #2
	b	LBB0_34
LBB0_33:                                ;   in Loop: Header=BB0_30 Depth=1
	mov	x24, x23
LBB0_34:                                ;   in Loop: Header=BB0_30 Depth=1
	ldr	x8, [x25]
	str	x8, [sp, #16]
	ldr	w0, [x19, #40]
	bl	_htons
	str	w0, [sp, #24]
	ldr	x8, [x19]
	sub	x8, x24, x8
	lsr	x0, x8, #2
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_htons
	str	w0, [sp, #28]
	str	x22, [sp, #48]
	str	w26, [sp, #40]
	ldr	x8, [x19]
	str	x8, [sp, #64]
	sub	x8, x24, x8
	lsr	x8, x8, #2
	str	w8, [sp, #56]
LBB0_35:                                ;   Parent Loop BB0_30 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x19, #64]
	add	x1, sp, #40
	mov	w2, #2
	bl	_writev
	ldr	x8, [x28]
	tbz	w0, #31, LBB0_37
; %bb.36:                               ;   in Loop: Header=BB0_35 Depth=2
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_35
LBB0_37:                                ;   in Loop: Header=BB0_30 Depth=1
	tbnz	w0, #31, LBB0_13
; %bb.38:                               ;   in Loop: Header=BB0_30 Depth=1
	str	x22, [sp, #48]
	mov	w8, #20
	str	w8, [sp, #40]
	str	x27, [sp, #64]
	ldr	w8, [x19, #44]
	str	w8, [sp, #56]
LBB0_39:                                ;   Parent Loop BB0_30 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x19, #64]
	add	x1, sp, #40
	mov	w2, #2
	bl	_readv
	mov	x24, x0
	ldr	x8, [x28]
	tbz	w0, #31, LBB0_41
; %bb.40:                               ;   in Loop: Header=BB0_39 Depth=2
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_39
LBB0_41:                                ;   in Loop: Header=BB0_30 Depth=1
	tbnz	w24, #31, LBB0_13
; %bb.42:                               ;   in Loop: Header=BB0_30 Depth=1
	cmp	w24, #19
	b.ls	LBB0_58
; %bb.43:                               ;   in Loop: Header=BB0_30 Depth=1
	ldr	w0, [sp, #24]
	bl	_ntohs
	str	w0, [sp, #24]
	ldr	w0, [sp, #28]
	bl	_ntohs
	str	w0, [sp, #28]
	ldr	w0, [sp, #32]
	bl	_ntohs
	str	w0, [sp, #32]
	ldr	x8, [sp, #16]
Lloh16:
	adrp	x9, _SDP_PDU_ERROR_RESPONSE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _SDP_PDU_ERROR_RESPONSE@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_52
; %bb.44:                               ;   in Loop: Header=BB0_30 Depth=1
	ldr	w8, [sp, #24]
	ldr	w9, [x19, #40]
	cmp	w8, w9
	b.ne	LBB0_52
; %bb.45:                               ;   in Loop: Header=BB0_30 Depth=1
	ldr	w9, [sp, #28]
	cmp	w9, w24
	b.gt	LBB0_52
; %bb.46:                               ;   in Loop: Header=BB0_30 Depth=1
	cmp	w9, w0
	b.lt	LBB0_52
; %bb.47:                               ;   in Loop: Header=BB0_30 Depth=1
	lsl	x9, x0, #32
	add	x27, x27, x9, asr #30
	add	w8, w8, #1
	str	w8, [x19, #40]
	ldr	w2, [x27]
	str	w2, [x19, #24]
	cmp	w2, #0
	b.le	LBB0_53
; %bb.48:                               ;   in Loop: Header=BB0_30 Depth=1
	cmp	w2, #9
	b.hs	LBB0_19
; %bb.49:                               ;   in Loop: Header=BB0_30 Depth=1
	ldr	x0, [x19, #32]
	add	x1, x27, #4
	bl	_memcpy
	ldr	x8, [x19, #48]
	sub	x10, x8, x27
	ldrsw	x9, [x19, #44]
	cmp	x9, x10, asr #2
	b.lt	LBB0_29
; %bb.50:                               ;   in Loop: Header=BB0_30 Depth=1
	mov	x22, x25
	ldr	x25, [x19, #8]
	sub	x8, x8, x25
	add	x26, x9, x8, asr #2
	mov	x0, x25
	mov	x1, x26
	bl	_realloc
	cbz	x0, LBB0_59
; %bb.51:                               ;   in Loop: Header=BB0_30 Depth=1
	str	x0, [x19, #8]
	add	x8, x0, x26, lsl #2
	str	x8, [x19, #48]
	sub	x8, x27, x25
	add	x27, x0, x8
	mov	x25, x22
	add	x22, sp, #16
	mov	w26, #16
	b	LBB0_29
LBB0_52:
Lloh19:
	adrp	x8, _EIO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_12
LBB0_53:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	cbz	x8, LBB0_71
; %bb.54:
	ldr	x22, [x19, #8]
	mov	x0, x20
	mov	x1, x22
	bl	_SDP_GET8
	cmp	w20, #144
	b.eq	LBB0_60
; %bb.55:
	cmp	w20, #143
	b.eq	LBB0_61
; %bb.56:
	cmp	w20, #142
	b.ne	LBB0_73
; %bb.57:
	mov	x0, x24
	mov	x1, x22
	bl	_SDP_GET8
	b	LBB0_62
LBB0_58:
Lloh21:
	adrp	x8, _ENOMSG@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMSG@GOTPAGEOFF]
	b	LBB0_12
LBB0_59:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_12
LBB0_60:
	mov	x0, x24
	mov	x1, x22
	bl	_SDP_GET16
	b	LBB0_62
LBB0_61:
	mov	x0, x24
	mov	x1, x22
	bl	_SDP_GET32
LBB0_62:
	cmp	x22, x27
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	ccmp	x8, #0, #4, lo
	cset	w21, gt
	cmp	w21, #1
	b.ne	LBB0_71
LBB0_63:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_SDP_GET8
	cmp	w20, #144
	b.eq	LBB0_67
; %bb.64:                               ;   in Loop: Header=BB0_63 Depth=1
	cmp	w20, #143
	b.eq	LBB0_68
; %bb.65:                               ;   in Loop: Header=BB0_63 Depth=1
	cmp	w20, #142
	b.ne	LBB0_73
; %bb.66:                               ;   in Loop: Header=BB0_63 Depth=1
	mov	x0, x24
	mov	x1, x22
	bl	_SDP_GET8
	b	LBB0_69
LBB0_67:                                ;   in Loop: Header=BB0_63 Depth=1
	mov	x0, x24
	mov	x1, x22
	bl	_SDP_GET16
	b	LBB0_69
LBB0_68:                                ;   in Loop: Header=BB0_63 Depth=1
	mov	x0, x24
	mov	x1, x22
	bl	_SDP_GET32
LBB0_69:                                ;   in Loop: Header=BB0_63 Depth=1
	cmp	w24, #1
	b.ge	LBB0_72
; %bb.70:                               ;   in Loop: Header=BB0_63 Depth=1
	cbnz	w21, LBB0_63
LBB0_71:
	mov	w0, #0
	str	xzr, [x19, #56]
	b	LBB0_15
LBB0_72:
	mov	x0, x20
	mov	x1, x22
	bl	_SDP_GET8
LBB0_73:
Lloh25:
	adrp	x8, _ENOATTR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOATTR@GOTPAGEOFF]
	b	LBB0_12
LBB0_74:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_ENOBUFS,8,3                    ; @ENOBUFS
	.comm	_SDP_PDU_SERVICE_SEARCH_ATTRIBUTE_REQUEST,8,3 ; @SDP_PDU_SERVICE_SEARCH_ATTRIBUTE_REQUEST
	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
	.comm	_ENOMSG,8,3                     ; @ENOMSG
	.comm	_SDP_PDU_ERROR_RESPONSE,8,3     ; @SDP_PDU_ERROR_RESPONSE
	.comm	_EIO,8,3                        ; @EIO
	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.comm	_ENOATTR,8,3                    ; @ENOATTR
	.comm	_SDP_ATTR_OK,4,2                ; @SDP_ATTR_OK
	.comm	_SDP_ATTR_TRUNCATED,4,2         ; @SDP_ATTR_TRUNCATED
	.comm	_SDP_ATTR_INVALID,4,2           ; @SDP_ATTR_INVALID
.subsections_via_symbols
