	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hidp_process_handshake
_hidp_process_handshake:                ## @hidp_process_handshake
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_BT_DBG
	cmpb	$-122, %bl
	jge	LBB0_1
## %bb.5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	jne	LBB0_2
## %bb.3:
	movq	_HIDP_TRANS_HID_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HIDP_CTRL_SOFT_RESET@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movl	$133, %esi
	movq	_HIDP_TRANS_HANDSHAKE@GOTPCREL(%rip), %rax
LBB0_4:
	orl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	___hidp_send_ctrl_message       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"session %p param 0x%02x"

	.comm	_HIDP_TRANS_HID_CONTROL,4,2     ## @HIDP_TRANS_HID_CONTROL
	.comm	_HIDP_CTRL_SOFT_RESET,4,2       ## @HIDP_CTRL_SOFT_RESET
	.comm	_HIDP_TRANS_HANDSHAKE,4,2       ## @HIDP_TRANS_HANDSHAKE
	.no_dead_strip	_hidp_process_handshake
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hidp_process_handshake
_hidp_process_handshake:                ; @hidp_process_handshake
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x20
	bl	_BT_DBG
	sub	w8, w20, #128
	cmp	w8, #6
	b.hs	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	cmp	w20, #134
	b.ne	LBB0_4
; %bb.3:
Lloh2:
	adrp	x8, _HIDP_TRANS_HID_CONTROL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HIDP_TRANS_HID_CONTROL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _HIDP_CTRL_SOFT_RESET@GOTPAGE
Lloh6:
	ldr	x9, [x9, _HIDP_CTRL_SOFT_RESET@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	mov	w8, #133
Lloh7:
	adrp	x9, _HIDP_TRANS_HANDSHAKE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _HIDP_TRANS_HANDSHAKE@GOTPAGEOFF]
LBB0_5:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	mov	x2, #0
	mov	w3, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	___hidp_send_ctrl_message
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"session %p param 0x%02x"

	.comm	_HIDP_TRANS_HID_CONTROL,4,2     ; @HIDP_TRANS_HID_CONTROL
	.comm	_HIDP_CTRL_SOFT_RESET,4,2       ; @HIDP_CTRL_SOFT_RESET
	.comm	_HIDP_TRANS_HANDSHAKE,4,2       ; @HIDP_TRANS_HANDSHAKE
	.no_dead_strip	_hidp_process_handshake
.subsections_via_symbols
