	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hid_sdp_query
_hid_sdp_query:                         ## @hid_sdp_query
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rsp, -152(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_HCI_DEVNAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	testq	%rbx, %rbx
	jne	LBB0_2
## %bb.1:
	movq	_NG_HCI_BDADDR_ANY@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_2:
	testq	%r14, %r14
	jne	LBB0_4
## %bb.3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_hid_sdp_query_exit
LBB0_4:
	xorl	%eax, %eax
	callq	_hid_init_return_values
	leaq	64(%r14), %rsi
	movq	%rbx, %rdi
	movq	%rsi, -128(%rbp)                ## 8-byte Spill
	callq	_sdp_open
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_hid_sdp_query_exit
LBB0_6:
	movq	%r14, -144(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_sdp_error
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_sdp_error
	movq	%rax, %rdi
	callq	_hid_sdp_query_exit
LBB0_8:
	movq	_nattrs@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_attrs@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	_nvalues@GOTPCREL(%rip), %r14
	movq	(%r14), %r9
	movq	_values@GOTPCREL(%rip), %rax
	subq	$8, %rsp
	movq	_service@GOTPCREL(%rip), %rdx
	movq	%rbx, %rdi
	movl	$1, %esi
	pushq	(%rax)
	callq	_sdp_search
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	callq	_sdp_error
	movq	%rax, %rdi
	callq	_hid_sdp_query_exit
LBB0_10:
	movq	%rbx, -120(%rbp)                ## 8-byte Spill
	movq	%r15, -136(%rbp)                ## 8-byte Spill
	cmpq	$0, (%r14)
	je	LBB0_11
## %bb.12:
	movq	$-1, -88(%rbp)                  ## 8-byte Folded Spill
	xorl	%r13d, %r13d
	movq	_SDP_ATTR_OK@GOTPCREL(%rip), %r12
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movq	$-1, -56(%rbp)                  ## 8-byte Folded Spill
	movq	$-1, -80(%rbp)                  ## 8-byte Folded Spill
	xorl	%eax, %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	$-1, -64(%rbp)                  ## 8-byte Folded Spill
	movq	_values@GOTPCREL(%rip), %rbx
	jmp	LBB0_13
LBB0_23:                                ##   in Loop: Header=BB0_13 Depth=1
	callq	_hid_sdp_parse_boolean
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_13 Depth=1
	incq	%r15
	addq	$32, %r13
	cmpq	(%r14), %r15
	jae	LBB0_25
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	movq	(%rdi,%r13), %rax
	cmpq	(%r12), %rax
	jne	LBB0_24
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	8(%rdi,%r13), %eax
	addq	%r13, %rdi
	leal	-517(%rax), %ecx
	cmpl	$8, %ecx
	ja	LBB0_15
## %bb.52:                              ##   in Loop: Header=BB0_13 Depth=1
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rax
	addq	%rdx, %rax
	jmpq	*%rax
LBB0_19:                                ##   in Loop: Header=BB0_13 Depth=1
	callq	_hid_sdp_parse_boolean
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_24
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	cmpl	$132, %eax
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpl	$128, %eax
	jne	LBB0_24
## %bb.17:                              ##   in Loop: Header=BB0_13 Depth=1
	callq	_hid_sdp_parse_protocol_descriptor_list
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_24
LBB0_20:                                ##   in Loop: Header=BB0_13 Depth=1
	callq	_hid_sdp_parse_hid_descriptor
	testl	%eax, %eax
	jne	LBB0_24
## %bb.21:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	(%rbx), %rax
	movq	16(%rax,%r13), %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	24(%rax,%r13), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_24
LBB0_22:                                ##   in Loop: Header=BB0_13 Depth=1
	callq	_hid_sdp_parse_boolean
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_24
LBB0_18:                                ##   in Loop: Header=BB0_13 Depth=1
	callq	_hid_sdp_parse_protocol_descriptor_list
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_24
LBB0_11:
	movq	$-1, -64(%rbp)                  ## 8-byte Folded Spill
	xorl	%eax, %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	$-1, -80(%rbp)                  ## 8-byte Folded Spill
	movq	$-1, -56(%rbp)                  ## 8-byte Folded Spill
	movq	$-1, -88(%rbp)                  ## 8-byte Folded Spill
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_values@GOTPCREL(%rip), %rbx
LBB0_25:
	xorl	%eax, %eax
	callq	_hid_init_return_values
	movq	(%r14), %r9
	subq	$8, %rsp
	movq	_service_devid@GOTPCREL(%rip), %rdx
	movq	_attrs_devid@GOTPCREL(%rip), %r8
	movq	%rbx, %rax
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$1, %ecx
	pushq	(%rax)
	callq	_sdp_search
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_27
## %bb.26:
	movq	%rbx, %rdi
	callq	_sdp_error
	movq	%rax, %rdi
	callq	_hid_sdp_query_exit
LBB0_27:
	leaq	-108(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_sdp_get_lcaddr
	testq	%rax, %rax
	movq	-136(%rbp), %r12                ## 8-byte Reload
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_28
LBB0_29:
	movq	_ENOATTR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_hid_sdp_query_exit
	jmp	LBB0_30
LBB0_28:
	leaq	-108(%rbp), %rsi
	movq	%r12, %rdi
	callq	_bt_devname
	testq	%rax, %rax
	je	LBB0_29
LBB0_30:
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	callq	_sdp_close
	movq	_values@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	movq	_SDP_ATTR_INVALID@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rcx
	je	LBB0_34
## %bb.31:
	cmpq	$3, 16(%rax)
	jne	LBB0_34
## %bb.32:
	movq	24(%rax), %r15
	movq	%r15, %rsi
	callq	_SDP_GET8
	movq	_values@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$-129, %ecx
	addl	8(%rax), %ecx
	cmpl	$2, %ecx
	ja	LBB0_34
## %bb.33:
	xorl	%edi, %edi
	movq	%r15, %rsi
	callq	_SDP_GET16
LBB0_34:
	movq	_values@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	32(%rax), %rcx
	cmpq	(%rbx), %rcx
	je	LBB0_38
## %bb.35:
	cmpq	$3, 48(%rax)
	jne	LBB0_38
## %bb.36:
	movq	56(%rax), %r15
	movq	%r15, %rsi
	callq	_SDP_GET8
	movq	_values@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$-129, %ecx
	addl	40(%rax), %ecx
	cmpl	$2, %ecx
	ja	LBB0_38
## %bb.37:
	xorl	%edi, %edi
	movq	%r15, %rsi
	callq	_SDP_GET16
LBB0_38:
	movq	_values@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	64(%rax), %rcx
	cmpq	(%rbx), %rcx
	je	LBB0_42
## %bb.39:
	cmpq	$3, 80(%rax)
	jne	LBB0_42
## %bb.40:
	movq	88(%rax), %rbx
	movq	%rbx, %rsi
	callq	_SDP_GET8
	movq	_values@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$-129, %ecx
	addl	72(%rax), %ecx
	cmpl	$2, %ecx
	ja	LBB0_42
## %bb.41:
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_SDP_GET16
LBB0_42:
	cmpq	$-1, %r13
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_47
## %bb.43:
	cmpq	$-1, -56(%rbp)                  ## 8-byte Folded Reload
	je	LBB0_47
## %bb.44:
	cmpq	$-1, -64(%rbp)                  ## 8-byte Folded Reload
	je	LBB0_47
## %bb.45:
	testq	%r15, %r15
	je	LBB0_47
## %bb.46:
	cmpq	$-1, %r14
	jne	LBB0_48
LBB0_47:
	movq	_ENOATTR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_hid_sdp_query_exit
LBB0_48:
	movq	%r12, %rdi
	movq	-128(%rbp), %rsi                ## 8-byte Reload
	callq	_bt_devremote_name_gen
	movq	-144(%rbp), %rbx                ## 8-byte Reload
	movl	%eax, 68(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%rbx)
	movq	$0, 56(%rbx)
	movq	%r13, (%rbx)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%rbx)
	xorl	%eax, %eax
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	setne	%al
	movl	%eax, 16(%rbx)
	xorl	%eax, %eax
	cmpq	$0, -96(%rbp)                   ## 8-byte Folded Reload
	setne	%al
	movl	%eax, 20(%rbx)
	xorl	%eax, %eax
	cmpq	$0, -104(%rbp)                  ## 8-byte Folded Reload
	setne	%al
	movl	%eax, 24(%rbx)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_hid_use_report_desc
	movq	%rax, 32(%rbx)
	testq	%rax, %rax
	jne	LBB0_50
## %bb.49:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_hid_sdp_query_exit
LBB0_50:
	movq	-152(%rbp), %rsp                ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_53
## %bb.51:
	xorl	%eax, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_53:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
LJTI0_0:
	.long	L0_0_set_19
	.long	L0_0_set_20
	.long	L0_0_set_24
	.long	L0_0_set_24
	.long	L0_0_set_22
	.long	L0_0_set_24
	.long	L0_0_set_24
	.long	L0_0_set_24
	.long	L0_0_set_23
	.end_data_region
                                        ## -- End function
	.comm	_HCI_DEVNAME_SIZE,4,2           ## @HCI_DEVNAME_SIZE
	.comm	_NG_HCI_BDADDR_ANY,8,3          ## @NG_HCI_BDADDR_ANY
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.comm	_service,4,2                    ## @service
	.comm	_nattrs,4,2                     ## @nattrs
	.comm	_attrs,8,3                      ## @attrs
	.comm	_nvalues,8,3                    ## @nvalues
	.comm	_values,8,3                     ## @values
	.comm	_SDP_ATTR_OK,8,3                ## @SDP_ATTR_OK
	.comm	_service_devid,4,2              ## @service_devid
	.comm	_attrs_devid,4,2                ## @attrs_devid
	.comm	_ENOATTR,8,3                    ## @ENOATTR
	.comm	_SDP_ATTR_INVALID,8,3           ## @SDP_ATTR_INVALID
	.comm	_SDP_DATA_UINT16,8,3            ## @SDP_DATA_UINT16
	.no_dead_strip	_hid_sdp_query
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hid_sdp_query
_hid_sdp_query:                         ; @hid_sdp_query
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #80
	mov	x19, x1
	mov	x8, sp
	stur	x8, [x29, #-144]                ; 8-byte Folded Spill
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _HCI_DEVNAME_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HCI_DEVNAME_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x23, x9, x8
	mov	sp, x23
Lloh8:
	adrp	x8, _NG_HCI_BDADDR_ANY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NG_HCI_BDADDR_ANY@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, #0
	csel	x21, x8, x0, eq
	cbnz	x1, LBB0_2
; %bb.1:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	x0, [x8]
	bl	_hid_sdp_query_exit
LBB0_2:
	bl	_hid_init_return_values
	add	x1, x19, #64
	mov	x0, x21
	stur	x1, [x29, #-160]                ; 8-byte Folded Spill
	bl	_sdp_open
	mov	x21, x0
	cbnz	x0, LBB0_4
; %bb.3:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	x0, [x8]
	bl	_hid_sdp_query_exit
LBB0_4:
	mov	x0, x21
	bl	_sdp_error
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x21
	bl	_sdp_error
	bl	_hid_sdp_query_exit
LBB0_6:
Lloh17:
	adrp	x8, _nattrs@GOTPAGE
Lloh18:
	ldr	x8, [x8, _nattrs@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
Lloh20:
	adrp	x8, _attrs@GOTPAGE
Lloh21:
	ldr	x8, [x8, _attrs@GOTPAGEOFF]
Lloh22:
	ldr	x4, [x8]
Lloh23:
	adrp	x22, _nvalues@GOTPAGE
Lloh24:
	ldr	x22, [x22, _nvalues@GOTPAGEOFF]
	ldr	x5, [x22]
Lloh25:
	adrp	x20, _values@GOTPAGE
Lloh26:
	ldr	x20, [x20, _values@GOTPAGEOFF]
	ldr	x6, [x20]
Lloh27:
	adrp	x2, _service@GOTPAGE
Lloh28:
	ldr	x2, [x2, _service@GOTPAGEOFF]
	mov	x0, x21
	mov	w1, #1
	bl	_sdp_search
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x21
	bl	_sdp_error
	bl	_hid_sdp_query_exit
LBB0_8:
	stur	x23, [x29, #-152]               ; 8-byte Folded Spill
	ldr	x8, [x22]
	cbz	x8, LBB0_23
; %bb.9:
	mov	x25, #0
	stur	xzr, [x29, #-128]               ; 8-byte Folded Spill
	mov	x23, #0
	stp	xzr, xzr, [x29, #-112]          ; 16-byte Folded Spill
Lloh29:
	adrp	x24, _SDP_ATTR_OK@GOTPAGE
Lloh30:
	ldr	x24, [x24, _SDP_ATTR_OK@GOTPAGEOFF]
	mov	x8, #-1
	stur	x8, [x29, #-120]                ; 8-byte Folded Spill
	mov	x28, #-1
	mov	x8, #-1
	stur	x8, [x29, #-136]                ; 8-byte Folded Spill
	mov	x27, #-1
Lloh31:
	adrp	x26, lJTI0_0@PAGE
Lloh32:
	add	x26, x26, lJTI0_0@PAGEOFF
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	bl	_hid_sdp_parse_boolean
	stur	x0, [x29, #-104]                ; 8-byte Folded Spill
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x23, x23, #1
	ldr	x8, [x22]
	add	x25, x25, #32
	cmp	x23, x8
	b.hs	LBB0_24
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	add	x0, x8, x25
	ldr	x8, [x0]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w8, [x0, #8]
	sub	w9, w8, #517
	cmp	w9, #8
	b.hi	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	adr	x8, LBB0_10
	ldrb	w10, [x26, x9]
	add	x8, x8, x10, lsl #2
	br	x8
LBB0_15:                                ;   in Loop: Header=BB0_12 Depth=1
	bl	_hid_sdp_parse_boolean
	mov	x27, x0
	b	LBB0_11
LBB0_16:                                ;   in Loop: Header=BB0_12 Depth=1
	cmp	w8, #132
	b.eq	LBB0_22
; %bb.17:                               ;   in Loop: Header=BB0_12 Depth=1
	cmp	w8, #128
	b.ne	LBB0_11
; %bb.18:                               ;   in Loop: Header=BB0_12 Depth=1
	bl	_hid_sdp_parse_protocol_descriptor_list
	stur	x0, [x29, #-120]                ; 8-byte Folded Spill
	b	LBB0_11
LBB0_19:                                ;   in Loop: Header=BB0_12 Depth=1
	bl	_hid_sdp_parse_hid_descriptor
	cbnz	w0, LBB0_11
; %bb.20:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x20]
	add	x8, x8, x25
	ldp	x8, x9, [x8, #16]
	stp	x8, x9, [x29, #-136]            ; 16-byte Folded Spill
	b	LBB0_11
LBB0_21:                                ;   in Loop: Header=BB0_12 Depth=1
	bl	_hid_sdp_parse_boolean
	stur	x0, [x29, #-112]                ; 8-byte Folded Spill
	b	LBB0_11
LBB0_22:                                ;   in Loop: Header=BB0_12 Depth=1
	bl	_hid_sdp_parse_protocol_descriptor_list
	mov	x28, x0
	b	LBB0_11
LBB0_23:
	stp	xzr, xzr, [x29, #-112]          ; 16-byte Folded Spill
	mov	x27, #-1
	mov	x8, #-1
	stp	x8, xzr, [x29, #-136]           ; 16-byte Folded Spill
	mov	x28, #-1
	mov	x8, #-1
	stur	x8, [x29, #-120]                ; 8-byte Folded Spill
LBB0_24:
	bl	_hid_init_return_values
	ldr	x5, [x22]
	ldr	x6, [x20]
Lloh33:
	adrp	x2, _service_devid@GOTPAGE
Lloh34:
	ldr	x2, [x2, _service_devid@GOTPAGEOFF]
Lloh35:
	adrp	x4, _attrs_devid@GOTPAGE
Lloh36:
	ldr	x4, [x4, _attrs_devid@GOTPAGEOFF]
	mov	x0, x21
	mov	w1, #1
	mov	w3, #1
	bl	_sdp_search
	cbz	x0, LBB0_26
; %bb.25:
	mov	x0, x21
	bl	_sdp_error
	bl	_hid_sdp_query_exit
LBB0_26:
	sub	x1, x29, #92
	mov	x0, x21
	bl	_sdp_get_lcaddr
Lloh37:
	adrp	x22, _ENOATTR@GOTPAGE
Lloh38:
	ldr	x22, [x22, _ENOATTR@GOTPAGEOFF]
	ldur	x24, [x29, #-152]               ; 8-byte Folded Reload
	cbz	x0, LBB0_28
LBB0_27:
	ldr	x0, [x22]
	bl	_hid_sdp_query_exit
	b	LBB0_29
LBB0_28:
	sub	x1, x29, #92
	mov	x0, x24
	bl	_bt_devname
	cbz	x0, LBB0_27
LBB0_29:
	mov	x0, x21
	bl	_sdp_close
	ldr	x8, [x20]
	ldr	x9, [x8]
Lloh39:
	adrp	x23, _SDP_ATTR_INVALID@GOTPAGE
Lloh40:
	ldr	x23, [x23, _SDP_ATTR_INVALID@GOTPAGEOFF]
	ldr	x10, [x23]
	cmp	x9, x10
	b.eq	LBB0_33
; %bb.30:
	ldr	x9, [x8, #16]
	cmp	x9, #3
	b.ne	LBB0_33
; %bb.31:
	ldr	x21, [x8, #24]
	mov	x1, x21
	bl	_SDP_GET8
	ldr	x8, [x20]
	ldr	w8, [x8, #8]
	sub	w8, w8, #129
	cmp	w8, #2
	b.hi	LBB0_33
; %bb.32:
	mov	x0, #0
	mov	x1, x21
	bl	_SDP_GET16
LBB0_33:
	ldr	x8, [x20]
	ldr	x9, [x8, #32]
	ldr	x10, [x23]
	cmp	x9, x10
	b.eq	LBB0_37
; %bb.34:
	ldr	x9, [x8, #48]
	cmp	x9, #3
	b.ne	LBB0_37
; %bb.35:
	ldr	x21, [x8, #56]
	mov	x1, x21
	bl	_SDP_GET8
	ldr	x8, [x20]
	ldr	w8, [x8, #40]
	sub	w8, w8, #129
	cmp	w8, #2
	b.hi	LBB0_37
; %bb.36:
	mov	x0, #0
	mov	x1, x21
	bl	_SDP_GET16
LBB0_37:
	ldr	x8, [x20]
	ldr	x9, [x8, #64]
	ldr	x10, [x23]
	cmp	x9, x10
	b.eq	LBB0_41
; %bb.38:
	ldr	x9, [x8, #80]
	cmp	x9, #3
	b.ne	LBB0_41
; %bb.39:
	ldr	x21, [x8, #88]
	mov	x1, x21
	bl	_SDP_GET8
	ldr	x8, [x20]
	ldr	w8, [x8, #72]
	sub	w8, w8, #129
	cmp	w8, #2
	b.hi	LBB0_41
; %bb.40:
	mov	x0, #0
	mov	x1, x21
	bl	_SDP_GET16
LBB0_41:
	ldp	x20, x23, [x29, #-128]          ; 16-byte Folded Reload
	cmn	x23, #1
	ldur	x21, [x29, #-136]               ; 8-byte Folded Reload
	b.eq	LBB0_46
; %bb.42:
	cmn	x28, #1
	b.eq	LBB0_46
; %bb.43:
	cmn	x27, #1
	b.eq	LBB0_46
; %bb.44:
	cbz	x20, LBB0_46
; %bb.45:
	cmn	x21, #1
	b.ne	LBB0_47
LBB0_46:
	ldr	x0, [x22]
	bl	_hid_sdp_query_exit
LBB0_47:
	mov	x0, x24
	ldur	x1, [x29, #-160]                ; 8-byte Folded Reload
	bl	_bt_devremote_name_gen
	str	w0, [x19, #68]
	stp	xzr, xzr, [x19, #48]
	str	xzr, [x19, #40]
	stp	x23, x28, [x19]
	cmp	x27, #0
	cset	w8, ne
	ldur	x9, [x29, #-112]                ; 8-byte Folded Reload
	cmp	x9, #0
	cset	w9, ne
	stp	w8, w9, [x19, #16]
	ldur	x8, [x29, #-104]                ; 8-byte Folded Reload
	cmp	x8, #0
	cset	w8, ne
	str	w8, [x19, #24]
	mov	x0, x20
	mov	x1, x21
	bl	_hid_use_report_desc
	str	x0, [x19, #32]
	cbnz	x0, LBB0_49
; %bb.48:
Lloh41:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh43:
	ldr	x0, [x8]
	bl	_hid_sdp_query_exit
LBB0_49:
	ldur	x8, [x29, #-144]                ; 8-byte Folded Reload
	mov	sp, x8
	ldur	x8, [x29, #-88]
Lloh44:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh45:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh46:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_51
; %bb.50:
	mov	x0, #0
	sub	sp, x29, #80
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_51:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_15-LBB0_10)>>2
	.byte	(LBB0_19-LBB0_10)>>2
	.byte	(LBB0_11-LBB0_10)>>2
	.byte	(LBB0_11-LBB0_10)>>2
	.byte	(LBB0_21-LBB0_10)>>2
	.byte	(LBB0_11-LBB0_10)>>2
	.byte	(LBB0_11-LBB0_10)>>2
	.byte	(LBB0_11-LBB0_10)>>2
	.byte	(LBB0_10-LBB0_10)>>2
                                        ; -- End function
	.comm	_HCI_DEVNAME_SIZE,4,2           ; @HCI_DEVNAME_SIZE
	.comm	_NG_HCI_BDADDR_ANY,8,3          ; @NG_HCI_BDADDR_ANY
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.comm	_service,4,2                    ; @service
	.comm	_nattrs,4,2                     ; @nattrs
	.comm	_attrs,8,3                      ; @attrs
	.comm	_nvalues,8,3                    ; @nvalues
	.comm	_values,8,3                     ; @values
	.comm	_SDP_ATTR_OK,8,3                ; @SDP_ATTR_OK
	.comm	_service_devid,4,2              ; @service_devid
	.comm	_attrs_devid,4,2                ; @attrs_devid
	.comm	_ENOATTR,8,3                    ; @ENOATTR
	.comm	_SDP_ATTR_INVALID,8,3           ; @SDP_ATTR_INVALID
	.comm	_SDP_DATA_UINT16,8,3            ; @SDP_DATA_UINT16
	.no_dead_strip	_hid_sdp_query
.subsections_via_symbols
