	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function htc_process_conn_rsp
_htc_process_conn_rsp:                  ## @htc_process_conn_rsp
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	4(%rsi), %rax
	movq	_HTC_SERVICE_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.1:
	movq	%rsi, %rbx
	movl	12(%rsi), %r12d
	movl	20(%rsi), %edi
	callq	_be16_to_cpu
	movq	%rax, %r15
	movl	16(%rbx), %edi
	callq	_be16_to_cpu
	movq	8(%r14), %rcx
	movq	_ENDPOINT_MAX@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	_ENDPOINT0@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	decl	%edx
	cmpl	%esi, %edx
	jbe	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edx, %edi
	shlq	$5, %rdi
	cmpq	%r15, (%rcx,%rdi)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	decl	%edx
	cmpl	%esi, %edx
	ja	LBB0_4
	jmp	LBB0_9
LBB0_8:
	movq	_ENDPOINT_UNUSED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	jmp	LBB0_9
LBB0_2:
	xorl	%edi, %edi
	cmpl	%esi, %edx
	jne	LBB0_7
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	addq	%rcx, %rdi
	movq	$0, (%rdi)
	cmpl	%esi, %edx
	je	LBB0_9
LBB0_7:
	movq	%r12, %rdx
	shlq	$5, %rdx
	movq	%r15, (%rcx,%rdx)
	movups	16(%rdi), %xmm0
	movups	%xmm0, 16(%rcx,%rdx)
	movq	%rax, 8(%rcx,%rdx)
	movl	%r12d, (%r14)
	addq	$4, %r14
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_complete                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HTC_SERVICE_SUCCESS,8,3        ## @HTC_SERVICE_SUCCESS
	.comm	_ENDPOINT_MAX,4,2               ## @ENDPOINT_MAX
	.comm	_ENDPOINT0,4,2                  ## @ENDPOINT0
	.comm	_ENDPOINT_UNUSED,4,2            ## @ENDPOINT_UNUSED
	.no_dead_strip	_htc_process_conn_rsp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function htc_process_conn_rsp
_htc_process_conn_rsp:                  ; @htc_process_conn_rsp
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldur	x8, [x1, #4]
Lloh0:
	adrp	x9, _HTC_SERVICE_SUCCESS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HTC_SERVICE_SUCCESS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	mov	x21, x1
	ldr	w22, [x1, #12]
	ldr	w0, [x1, #20]
	bl	_be16_to_cpu
	mov	x20, x0
	ldr	w0, [x21, #16]
	bl	_be16_to_cpu
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _ENDPOINT_MAX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ENDPOINT_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x9]
Lloh6:
	adrp	x9, _ENDPOINT0@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ENDPOINT0@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	sub	w10, w10, #1
	cmp	w10, w9
	b.ls	LBB0_5
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	w11, w10
	add	x11, x8, x11, lsl #5
	ldr	x12, [x11]
	cmp	x12, x20
	b.eq	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w10, w10, #1
	cmp	w10, w9
	b.hi	LBB0_2
	b	LBB0_6
LBB0_4:
Lloh9:
	adrp	x8, _ENDPOINT_UNUSED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENDPOINT_UNUSED@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_6
LBB0_5:
	mov	x11, #0
	cmp	w10, w9
	b.ne	LBB0_8
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
	str	xzr, [x11]
	cmp	w10, w9
	b.eq	LBB0_6
LBB0_8:
	ldr	q0, [x11, #16]
	add	x8, x8, x22, lsl #5
	str	q0, [x8, #16]
	stp	x20, x0, [x8]
	str	w22, [x19], #4
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_complete
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_HTC_SERVICE_SUCCESS,8,3        ; @HTC_SERVICE_SUCCESS
	.comm	_ENDPOINT_MAX,4,2               ; @ENDPOINT_MAX
	.comm	_ENDPOINT0,4,2                  ; @ENDPOINT0
	.comm	_ENDPOINT_UNUSED,4,2            ; @ENDPOINT_UNUSED
	.no_dead_strip	_htc_process_conn_rsp
.subsections_via_symbols
