	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_sdp_search
_do_sdp_search:                         ## @do_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, -56(%rbp)
	movq	_USAGE@GOTPCREL(%rip), %r13
	cmpl	$1, %esi
	jne	LBB0_44
## %bb.1:
	movq	%rdx, %rbx
	movq	%rdi, %r14
	movq	(%rdx), %rdi
	leaq	-56(%rbp), %rsi
	movl	$16, %edx
	callq	_strtoul
	movq	-56(%rbp), %rcx
	cmpb	$0, (%rcx)
	je	LBB0_23
## %bb.2:
	movq	(%rbx), %rax
	movsbl	(%rax), %edi
	callq	_tolower
                                        ## kill: def $eax killed $eax def $rax
	addl	$-99, %eax
	cmpl	$16, %eax
	ja	LBB0_44
## %bb.3:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_4:
	movq	(%rbx), %rax
	movsbl	1(%rax), %edi
	callq	_tolower
	cmpl	$116, %eax
	je	LBB0_8
## %bb.5:
	cmpl	$105, %eax
	jne	LBB0_44
## %bb.6:
	movq	_SDP_SERVICE_CLASS_COMMON_ISDN_ACCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_23:
	movl	%eax, -44(%rbp)
	jmp	LBB0_24
LBB0_9:
	movq	_SDP_SERVICE_CLASS_DIALUP_NETWORKING@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_10:
	movq	(%rbx), %rax
	movsbl	1(%rax), %edi
	callq	_tolower
	cmpl	$116, %eax
	je	LBB0_13
## %bb.11:
	cmpl	$97, %eax
	jne	LBB0_44
## %bb.12:
	movq	_SDP_SERVICE_CLASS_FAX@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_19:
	movq	_SDP_SERVICE_CLASS_LAN_ACCESS_USING_PPP@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_20:
	movq	_SDP_SERVICE_CLASS_NAP@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_21:
	movq	_SDP_SERVICE_CLASS_OBEX_OBJECT_PUSH@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_14:
	movq	_SDP_SERVICE_CLASS_GN@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_15:
	movq	(%rbx), %rax
	movsbl	1(%rax), %edi
	callq	_tolower
	cmpl	$115, %eax
	je	LBB0_18
## %bb.16:
	cmpl	$105, %eax
	jne	LBB0_44
## %bb.17:
	movq	_SDP_SERVICE_CLASS_HUMAN_INTERFACE_DEVICE@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_22:
	movq	_SDP_SERVICE_CLASS_SERIAL_PORT@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_8:
	movq	_SDP_SERVICE_CLASS_CORDLESS_TELEPHONY@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_13:
	movq	_SDP_SERVICE_CLASS_OBEX_FILE_TRANSFER@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_18:
	movq	_SDP_SERVICE_CLASS_HEADSET@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
LBB0_24:
	movq	_values_len@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	movq	_values@GOTPCREL(%rip), %rax
	movq	(%rax), %r10
	je	LBB0_25
## %bb.26:
	movq	_buffer@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	16(%r10), %rdx
	xorl	%esi, %esi
	movq	_SDP_ATTR_INVALID@GOTPCREL(%rip), %rdi
	movq	_BSIZE@GOTPCREL(%rip), %rax
	.p2align	4, 0x90
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdi), %rbx
	movq	%rbx, -16(%rdx)
	movl	$0, -8(%rdx)
	movl	(%rax), %ebx
	movl	%ebx, -4(%rdx)
	movl	(%rcx,%rsi,4), %ebx
	movl	%ebx, (%rdx)
	incq	%rsi
	movq	(%r15), %r9
	addq	$24, %rdx
	cmpq	%r9, %rsi
	jb	LBB0_27
	jmp	LBB0_28
LBB0_25:
	xorl	%r9d, %r9d
LBB0_28:
	movq	_attrs_len@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_attrs@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r10, (%rsp)
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_sdp_search
	testq	%rax, %rax
	je	LBB0_30
## %bb.29:
	movq	_ERROR@GOTPCREL(%rip), %r13
LBB0_44:
	movl	(%r13), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_30:
	movq	_OK@GOTPCREL(%rip), %r13
	cmpq	$0, (%r15)
	je	LBB0_44
## %bb.31:
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	movq	_values@GOTPCREL(%rip), %rbx
	jmp	LBB0_32
LBB0_40:                                ##   in Loop: Header=BB0_32 Depth=1
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	(%rbx), %rax
	movl	16(%rax,%r14), %edi
	movl	12(%rax,%r14), %esi
	addl	%edi, %esi
	callq	_print_bluetooth_profile_descriptor_list
	.p2align	4, 0x90
LBB0_43:                                ##   in Loop: Header=BB0_32 Depth=1
	incq	%r12
	addq	$24, %r14
	cmpq	(%r15), %r12
	jae	LBB0_44
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	movq	(%rax,%r14), %rcx
	movq	_SDP_ATTR_OK@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_44
## %bb.33:                              ##   in Loop: Header=BB0_32 Depth=1
	movl	8(%rax,%r14), %edx
	leal	-128(%rdx), %eax
	cmpl	$3, %eax
	ja	LBB0_41
## %bb.34:                              ##   in Loop: Header=BB0_32 Depth=1
	leaq	LJTI0_1(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_35:                                ##   in Loop: Header=BB0_32 Depth=1
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	(%rbx), %rax
	movl	12(%rax,%r14), %edx
	cmpl	$5, %edx
	jne	LBB0_37
## %bb.36:                              ##   in Loop: Header=BB0_32 Depth=1
	movl	16(%rax,%r14), %esi
	callq	_SDP_GET8
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_43
LBB0_38:                                ##   in Loop: Header=BB0_32 Depth=1
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	(%rbx), %rax
	movl	16(%rax,%r14), %edi
	movl	12(%rax,%r14), %esi
	addl	%edi, %esi
	callq	_print_service_class_id_list
	jmp	LBB0_43
LBB0_39:                                ##   in Loop: Header=BB0_32 Depth=1
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	(%rbx), %rax
	movl	16(%rax,%r14), %edi
	movl	12(%rax,%r14), %esi
	addl	%edi, %esi
	callq	_print_protocol_descriptor_list
	jmp	LBB0_43
LBB0_41:                                ##   in Loop: Header=BB0_32 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	jmp	LBB0_42
LBB0_37:                                ##   in Loop: Header=BB0_32 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
LBB0_42:                                ##   in Loop: Header=BB0_32 Depth=1
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_43
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_44, LBB0_44-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_9
	.long	L0_0_set_44
	.long	L0_0_set_10
	.long	L0_0_set_14
	.long	L0_0_set_15
	.long	L0_0_set_44
	.long	L0_0_set_44
	.long	L0_0_set_44
	.long	L0_0_set_19
	.long	L0_0_set_44
	.long	L0_0_set_20
	.long	L0_0_set_21
	.long	L0_0_set_44
	.long	L0_0_set_44
	.long	L0_0_set_44
	.long	L0_0_set_22
.set L0_1_set_35, LBB0_35-LJTI0_1
.set L0_1_set_38, LBB0_38-LJTI0_1
.set L0_1_set_39, LBB0_39-LJTI0_1
.set L0_1_set_40, LBB0_40-LJTI0_1
LJTI0_1:
	.long	L0_1_set_35
	.long	L0_1_set_38
	.long	L0_1_set_39
	.long	L0_1_set_40
	.end_data_region
                                        ## -- End function
	.comm	_SDP_SERVICE_CLASS_COMMON_ISDN_ACCESS,4,2 ## @SDP_SERVICE_CLASS_COMMON_ISDN_ACCESS
	.comm	_SDP_SERVICE_CLASS_CORDLESS_TELEPHONY,4,2 ## @SDP_SERVICE_CLASS_CORDLESS_TELEPHONY
	.comm	_USAGE,4,2                      ## @USAGE
	.comm	_SDP_SERVICE_CLASS_DIALUP_NETWORKING,4,2 ## @SDP_SERVICE_CLASS_DIALUP_NETWORKING
	.comm	_SDP_SERVICE_CLASS_FAX,4,2      ## @SDP_SERVICE_CLASS_FAX
	.comm	_SDP_SERVICE_CLASS_OBEX_FILE_TRANSFER,4,2 ## @SDP_SERVICE_CLASS_OBEX_FILE_TRANSFER
	.comm	_SDP_SERVICE_CLASS_GN,4,2       ## @SDP_SERVICE_CLASS_GN
	.comm	_SDP_SERVICE_CLASS_HUMAN_INTERFACE_DEVICE,4,2 ## @SDP_SERVICE_CLASS_HUMAN_INTERFACE_DEVICE
	.comm	_SDP_SERVICE_CLASS_HEADSET,4,2  ## @SDP_SERVICE_CLASS_HEADSET
	.comm	_SDP_SERVICE_CLASS_LAN_ACCESS_USING_PPP,4,2 ## @SDP_SERVICE_CLASS_LAN_ACCESS_USING_PPP
	.comm	_SDP_SERVICE_CLASS_NAP,4,2      ## @SDP_SERVICE_CLASS_NAP
	.comm	_SDP_SERVICE_CLASS_OBEX_OBJECT_PUSH,4,2 ## @SDP_SERVICE_CLASS_OBEX_OBJECT_PUSH
	.comm	_SDP_SERVICE_CLASS_SERIAL_PORT,4,2 ## @SDP_SERVICE_CLASS_SERIAL_PORT
	.comm	_values_len,8,3                 ## @values_len
	.comm	_SDP_ATTR_INVALID,8,3           ## @SDP_ATTR_INVALID
	.comm	_values,8,3                     ## @values
	.comm	_BSIZE,4,2                      ## @BSIZE
	.comm	_buffer,8,3                     ## @buffer
	.comm	_attrs_len,4,2                  ## @attrs_len
	.comm	_attrs,4,2                      ## @attrs
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_SDP_ATTR_OK,8,3                ## @SDP_ATTR_OK
	.comm	_stdout,4,2                     ## @stdout
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_SDP_DATA_UINT32,8,3            ## @SDP_DATA_UINT32
	.comm	_stderr,4,2                     ## @stderr
L_.str.2:                               ## @.str.2
	.asciz	"Invalid type=%#x Record Handle attribute!\n"

L_.str.3:                               ## @.str.3
	.asciz	"Invalid size=%d for Record Handle attribute\n"

L_.str.4:                               ## @.str.4
	.asciz	"Service Class ID List:\n"

L_.str.5:                               ## @.str.5
	.asciz	"Protocol Descriptor List:\n"

L_.str.6:                               ## @.str.6
	.asciz	"Bluetooth Profile Descriptor List:\n"

L_.str.7:                               ## @.str.7
	.asciz	"Unexpected attribute ID=%#4.4x\n"

	.comm	_OK,4,2                         ## @OK
	.no_dead_strip	_do_sdp_search
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_sdp_search
_do_sdp_search:                         ; @do_sdp_search
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	str	xzr, [sp, #24]
	cmp	w1, #1
	b.ne	LBB0_16
; %bb.1:
	mov	x20, x2
	mov	x19, x0
	ldr	x0, [x2]
	add	x1, sp, #24
	mov	w2, #16
	bl	_strtoul
	ldr	x8, [sp, #24]
	ldrb	w8, [x8]
	cbz	w8, LBB0_7
; %bb.2:
	ldr	x8, [x20]
	ldrsb	w0, [x8]
	bl	_tolower
Lloh0:
	adrp	x28, _USAGE@GOTPAGE
Lloh1:
	ldr	x28, [x28, _USAGE@GOTPAGEOFF]
	sub	w8, w0, #99
	cmp	w8, #16
	b.hi	LBB0_31
; %bb.3:
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	ldr	x8, [x20]
	ldrsb	w0, [x8, #1]
	bl	_tolower
	cmp	w0, #116
	b.eq	LBB0_21
; %bb.5:
	cmp	w0, #105
	b.ne	LBB0_16
; %bb.6:
Lloh4:
	adrp	x8, _SDP_SERVICE_CLASS_COMMON_ISDN_ACCESS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SDP_SERVICE_CLASS_COMMON_ISDN_ACCESS@GOTPAGEOFF]
	b	LBB0_24
LBB0_7:
	str	w0, [sp, #20]
	b	LBB0_25
LBB0_8:
Lloh6:
	adrp	x8, _SDP_SERVICE_CLASS_DIALUP_NETWORKING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SDP_SERVICE_CLASS_DIALUP_NETWORKING@GOTPAGEOFF]
	b	LBB0_24
LBB0_9:
	ldr	x8, [x20]
	ldrsb	w0, [x8, #1]
	bl	_tolower
	cmp	w0, #116
	b.eq	LBB0_22
; %bb.10:
	cmp	w0, #97
	b.ne	LBB0_16
; %bb.11:
Lloh8:
	adrp	x8, _SDP_SERVICE_CLASS_FAX@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SDP_SERVICE_CLASS_FAX@GOTPAGEOFF]
	b	LBB0_24
LBB0_12:
Lloh10:
	adrp	x8, _SDP_SERVICE_CLASS_GN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SDP_SERVICE_CLASS_GN@GOTPAGEOFF]
	b	LBB0_24
LBB0_13:
	ldr	x8, [x20]
	ldrsb	w0, [x8, #1]
	bl	_tolower
	cmp	w0, #115
	b.eq	LBB0_23
; %bb.14:
	cmp	w0, #105
	b.ne	LBB0_16
; %bb.15:
Lloh12:
	adrp	x8, _SDP_SERVICE_CLASS_HUMAN_INTERFACE_DEVICE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SDP_SERVICE_CLASS_HUMAN_INTERFACE_DEVICE@GOTPAGEOFF]
	b	LBB0_24
LBB0_16:
Lloh14:
	adrp	x28, _USAGE@GOTPAGE
Lloh15:
	ldr	x28, [x28, _USAGE@GOTPAGEOFF]
	b	LBB0_31
LBB0_17:
Lloh16:
	adrp	x8, _SDP_SERVICE_CLASS_LAN_ACCESS_USING_PPP@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SDP_SERVICE_CLASS_LAN_ACCESS_USING_PPP@GOTPAGEOFF]
	b	LBB0_24
LBB0_18:
Lloh18:
	adrp	x8, _SDP_SERVICE_CLASS_NAP@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SDP_SERVICE_CLASS_NAP@GOTPAGEOFF]
	b	LBB0_24
LBB0_19:
Lloh20:
	adrp	x8, _SDP_SERVICE_CLASS_OBEX_OBJECT_PUSH@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SDP_SERVICE_CLASS_OBEX_OBJECT_PUSH@GOTPAGEOFF]
	b	LBB0_24
LBB0_20:
Lloh22:
	adrp	x8, _SDP_SERVICE_CLASS_SERIAL_PORT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SDP_SERVICE_CLASS_SERIAL_PORT@GOTPAGEOFF]
	b	LBB0_24
LBB0_21:
Lloh24:
	adrp	x8, _SDP_SERVICE_CLASS_CORDLESS_TELEPHONY@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SDP_SERVICE_CLASS_CORDLESS_TELEPHONY@GOTPAGEOFF]
	b	LBB0_24
LBB0_22:
Lloh26:
	adrp	x8, _SDP_SERVICE_CLASS_OBEX_FILE_TRANSFER@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SDP_SERVICE_CLASS_OBEX_FILE_TRANSFER@GOTPAGEOFF]
	b	LBB0_24
LBB0_23:
Lloh28:
	adrp	x8, _SDP_SERVICE_CLASS_HEADSET@GOTPAGE
Lloh29:
	ldr	x8, [x8, _SDP_SERVICE_CLASS_HEADSET@GOTPAGEOFF]
LBB0_24:
	ldr	w8, [x8]
	str	w8, [sp, #20]
LBB0_25:
Lloh30:
	adrp	x26, _values_len@GOTPAGE
Lloh31:
	ldr	x26, [x26, _values_len@GOTPAGEOFF]
	ldr	x8, [x26]
Lloh32:
	adrp	x27, _values@GOTPAGE
Lloh33:
	ldr	x27, [x27, _values@GOTPAGEOFF]
	ldr	x6, [x27]
	cbz	x8, LBB0_28
; %bb.26:
	mov	x8, #0
Lloh34:
	adrp	x9, _buffer@GOTPAGE
Lloh35:
	ldr	x9, [x9, _buffer@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	add	x10, x6, #16
Lloh37:
	adrp	x11, _SDP_ATTR_INVALID@GOTPAGE
Lloh38:
	ldr	x11, [x11, _SDP_ATTR_INVALID@GOTPAGEOFF]
Lloh39:
	adrp	x12, _BSIZE@GOTPAGE
Lloh40:
	ldr	x12, [x12, _BSIZE@GOTPAGEOFF]
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x11]
	stur	wzr, [x10, #-8]
	ldr	w14, [x12]
	stur	w14, [x10, #-4]
	ldr	w14, [x9, x8, lsl #2]
	stur	x13, [x10, #-16]
	str	w14, [x10], #24
	add	x8, x8, #1
	ldr	x5, [x26]
	cmp	x8, x5
	b.lo	LBB0_27
	b	LBB0_29
LBB0_28:
	mov	x5, #0
LBB0_29:
Lloh41:
	adrp	x8, _attrs_len@GOTPAGE
Lloh42:
	ldr	x8, [x8, _attrs_len@GOTPAGEOFF]
Lloh43:
	ldr	w3, [x8]
Lloh44:
	adrp	x8, _attrs@GOTPAGE
Lloh45:
	ldr	x8, [x8, _attrs@GOTPAGEOFF]
Lloh46:
	ldr	w4, [x8]
	add	x2, sp, #20
	mov	x0, x19
	mov	w1, #1
	bl	_sdp_search
	cbz	x0, LBB0_32
; %bb.30:
Lloh47:
	adrp	x28, _ERROR@GOTPAGE
Lloh48:
	ldr	x28, [x28, _ERROR@GOTPAGEOFF]
LBB0_31:
	ldr	w0, [x28]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_32:
	ldr	x8, [x26]
	cbz	x8, LBB0_46
; %bb.33:
	mov	x21, #0
	mov	w22, #8
Lloh49:
	adrp	x19, _SDP_ATTR_OK@GOTPAGE
Lloh50:
	ldr	x19, [x19, _SDP_ATTR_OK@GOTPAGEOFF]
Lloh51:
	adrp	x28, _OK@GOTPAGE
Lloh52:
	ldr	x28, [x28, _OK@GOTPAGEOFF]
Lloh53:
	adrp	x20, _stderr@GOTPAGE
Lloh54:
	ldr	x20, [x20, _stderr@GOTPAGEOFF]
Lloh55:
	adrp	x23, lJTI0_1@PAGE
Lloh56:
	add	x23, x23, lJTI0_1@PAGEOFF
Lloh57:
	adrp	x24, _stdout@GOTPAGE
Lloh58:
	ldr	x24, [x24, _stdout@GOTPAGEOFF]
Lloh59:
	adrp	x25, l_.str.6@PAGE
Lloh60:
	add	x25, x25, l_.str.6@PAGEOFF
	b	LBB0_37
LBB0_34:                                ;   in Loop: Header=BB0_37 Depth=1
	ldr	w0, [x20]
	str	x8, [sp]
Lloh61:
	adrp	x1, l_.str.7@PAGE
Lloh62:
	add	x1, x1, l_.str.7@PAGEOFF
LBB0_35:                                ;   in Loop: Header=BB0_37 Depth=1
	bl	_fprintf
LBB0_36:                                ;   in Loop: Header=BB0_37 Depth=1
	add	x21, x21, #1
	ldr	x8, [x26]
	add	x22, x22, #24
	cmp	x21, x8
	b.hs	LBB0_31
LBB0_37:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x27]
	add	x9, x8, x22
	ldur	x9, [x9, #-8]
	ldr	x10, [x19]
	cmp	x9, x10
	b.ne	LBB0_31
; %bb.38:                               ;   in Loop: Header=BB0_37 Depth=1
	ldr	w8, [x8, x22]
	sub	w9, w8, #128
	cmp	w9, #3
	b.hi	LBB0_34
; %bb.39:                               ;   in Loop: Header=BB0_37 Depth=1
	adr	x8, LBB0_40
	ldrb	w10, [x23, x9]
	add	x8, x8, x10, lsl #2
	br	x8
LBB0_40:                                ;   in Loop: Header=BB0_37 Depth=1
	ldr	w0, [x24]
Lloh63:
	adrp	x1, l_.str@PAGE
Lloh64:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	ldr	x8, [x27]
	add	x9, x8, x22
	ldr	w8, [x9, #4]
	cmp	w8, #5
	b.ne	LBB0_45
; %bb.41:                               ;   in Loop: Header=BB0_37 Depth=1
	ldr	w1, [x9, #8]
	bl	_SDP_GET8
	ldr	w0, [x20]
Lloh65:
	adrp	x1, l_.str.2@PAGE
Lloh66:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_35
LBB0_42:                                ;   in Loop: Header=BB0_37 Depth=1
	ldr	w0, [x24]
Lloh67:
	adrp	x1, l_.str.4@PAGE
Lloh68:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
	ldr	x8, [x27]
	add	x8, x8, x22
	ldp	w8, w0, [x8, #4]
	add	w1, w8, w0
	bl	_print_service_class_id_list
	b	LBB0_36
LBB0_43:                                ;   in Loop: Header=BB0_37 Depth=1
	ldr	w0, [x24]
Lloh69:
	adrp	x1, l_.str.5@PAGE
Lloh70:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_fprintf
	ldr	x8, [x27]
	add	x8, x8, x22
	ldp	w8, w0, [x8, #4]
	add	w1, w8, w0
	bl	_print_protocol_descriptor_list
	b	LBB0_36
LBB0_44:                                ;   in Loop: Header=BB0_37 Depth=1
	ldr	w0, [x24]
	mov	x1, x25
	bl	_fprintf
	ldr	x8, [x27]
	add	x8, x8, x22
	ldp	w8, w0, [x8, #4]
	add	w1, w8, w0
	bl	_print_bluetooth_profile_descriptor_list
	b	LBB0_36
LBB0_45:                                ;   in Loop: Header=BB0_37 Depth=1
	ldr	w0, [x20]
	str	x8, [sp]
Lloh71:
	adrp	x1, l_.str.3@PAGE
Lloh72:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_35
LBB0_46:
Lloh73:
	adrp	x28, _OK@GOTPAGE
Lloh74:
	ldr	x28, [x28, _OK@GOTPAGEOFF]
	b	LBB0_31
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpLdrGot	Lloh73, Lloh74
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_31-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_12-LBB0_4)>>2
	.byte	(LBB0_13-LBB0_4)>>2
	.byte	(LBB0_31-LBB0_4)>>2
	.byte	(LBB0_31-LBB0_4)>>2
	.byte	(LBB0_31-LBB0_4)>>2
	.byte	(LBB0_17-LBB0_4)>>2
	.byte	(LBB0_31-LBB0_4)>>2
	.byte	(LBB0_18-LBB0_4)>>2
	.byte	(LBB0_19-LBB0_4)>>2
	.byte	(LBB0_31-LBB0_4)>>2
	.byte	(LBB0_31-LBB0_4)>>2
	.byte	(LBB0_31-LBB0_4)>>2
	.byte	(LBB0_20-LBB0_4)>>2
lJTI0_1:
	.byte	(LBB0_40-LBB0_40)>>2
	.byte	(LBB0_42-LBB0_40)>>2
	.byte	(LBB0_43-LBB0_40)>>2
	.byte	(LBB0_44-LBB0_40)>>2
                                        ; -- End function
	.comm	_SDP_SERVICE_CLASS_COMMON_ISDN_ACCESS,4,2 ; @SDP_SERVICE_CLASS_COMMON_ISDN_ACCESS
	.comm	_SDP_SERVICE_CLASS_CORDLESS_TELEPHONY,4,2 ; @SDP_SERVICE_CLASS_CORDLESS_TELEPHONY
	.comm	_USAGE,4,2                      ; @USAGE
	.comm	_SDP_SERVICE_CLASS_DIALUP_NETWORKING,4,2 ; @SDP_SERVICE_CLASS_DIALUP_NETWORKING
	.comm	_SDP_SERVICE_CLASS_FAX,4,2      ; @SDP_SERVICE_CLASS_FAX
	.comm	_SDP_SERVICE_CLASS_OBEX_FILE_TRANSFER,4,2 ; @SDP_SERVICE_CLASS_OBEX_FILE_TRANSFER
	.comm	_SDP_SERVICE_CLASS_GN,4,2       ; @SDP_SERVICE_CLASS_GN
	.comm	_SDP_SERVICE_CLASS_HUMAN_INTERFACE_DEVICE,4,2 ; @SDP_SERVICE_CLASS_HUMAN_INTERFACE_DEVICE
	.comm	_SDP_SERVICE_CLASS_HEADSET,4,2  ; @SDP_SERVICE_CLASS_HEADSET
	.comm	_SDP_SERVICE_CLASS_LAN_ACCESS_USING_PPP,4,2 ; @SDP_SERVICE_CLASS_LAN_ACCESS_USING_PPP
	.comm	_SDP_SERVICE_CLASS_NAP,4,2      ; @SDP_SERVICE_CLASS_NAP
	.comm	_SDP_SERVICE_CLASS_OBEX_OBJECT_PUSH,4,2 ; @SDP_SERVICE_CLASS_OBEX_OBJECT_PUSH
	.comm	_SDP_SERVICE_CLASS_SERIAL_PORT,4,2 ; @SDP_SERVICE_CLASS_SERIAL_PORT
	.comm	_values_len,8,3                 ; @values_len
	.comm	_SDP_ATTR_INVALID,8,3           ; @SDP_ATTR_INVALID
	.comm	_values,8,3                     ; @values
	.comm	_BSIZE,4,2                      ; @BSIZE
	.comm	_buffer,8,3                     ; @buffer
	.comm	_attrs_len,4,2                  ; @attrs_len
	.comm	_attrs,4,2                      ; @attrs
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_SDP_ATTR_OK,8,3                ; @SDP_ATTR_OK
	.comm	_stdout,4,2                     ; @stdout
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_SDP_DATA_UINT32,8,3            ; @SDP_DATA_UINT32
	.comm	_stderr,4,2                     ; @stderr
l_.str.2:                               ; @.str.2
	.asciz	"Invalid type=%#x Record Handle attribute!\n"

l_.str.3:                               ; @.str.3
	.asciz	"Invalid size=%d for Record Handle attribute\n"

l_.str.4:                               ; @.str.4
	.asciz	"Service Class ID List:\n"

l_.str.5:                               ; @.str.5
	.asciz	"Protocol Descriptor List:\n"

l_.str.6:                               ; @.str.6
	.asciz	"Bluetooth Profile Descriptor List:\n"

l_.str.7:                               ; @.str.7
	.asciz	"Unexpected attribute ID=%#4.4x\n"

	.comm	_OK,4,2                         ; @OK
	.no_dead_strip	_do_sdp_search
.subsections_via_symbols
