	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hidp_recv_ctrl_frame
_hidp_recv_ctrl_frame:                  ## @hidp_recv_ctrl_frame
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	8(%rsi), %ecx
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_BT_DBG
	movq	(%r15), %rax
	movb	(%rax), %bl
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_skb_pull
	movq	_HIDP_HEADER_TRANS_MASK@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	andb	%bl, %al
	movq	_HIDP_HEADER_PARAM_MASK@GOTPCREL(%rip), %rcx
	andb	(%rcx), %bl
	cmpb	$-128, %al
	je	LBB0_4
## %bb.1:
	cmpb	$-126, %al
	je	LBB0_5
## %bb.2:
	cmpb	$-127, %al
	jne	LBB0_6
## %bb.3:
	movzbl	%bl, %esi
	movq	%r14, %rdi
	callq	_hidp_process_handshake
	jmp	LBB0_7
LBB0_4:
	movzbl	%bl, %esi
	movq	%r14, %rdi
	callq	_hidp_process_hid_control
	jmp	LBB0_7
LBB0_5:
	movzbl	%bl, %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_hidp_process_data
	jmp	LBB0_7
LBB0_6:
	movq	_HIDP_HSHK_ERR_UNSUPPORTED_REQUEST@GOTPCREL(%rip), %rax
	movl	$129, %esi
	orl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	___hidp_send_ctrl_message
LBB0_7:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree_skb                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"session %p skb %p len %d"

	.comm	_HIDP_HEADER_TRANS_MASK,1,0     ## @HIDP_HEADER_TRANS_MASK
	.comm	_HIDP_HEADER_PARAM_MASK,1,0     ## @HIDP_HEADER_PARAM_MASK
	.comm	_HIDP_HSHK_ERR_UNSUPPORTED_REQUEST,4,2 ## @HIDP_HSHK_ERR_UNSUPPORTED_REQUEST
	.no_dead_strip	_hidp_recv_ctrl_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hidp_recv_ctrl_frame
_hidp_recv_ctrl_frame:                  ; @hidp_recv_ctrl_frame
	.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, x1
	mov	x20, x0
	ldr	w3, [x1, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_BT_DBG
	ldr	x8, [x19]
	ldrb	w21, [x8]
	mov	x0, x19
	mov	w1, #1
	bl	_skb_pull
Lloh2:
	adrp	x8, _HIDP_HEADER_TRANS_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HIDP_HEADER_TRANS_MASK@GOTPAGEOFF]
	ldrb	w8, [x8]
	and	w8, w8, w21
	and	w9, w8, #0xff
Lloh4:
	adrp	x8, _HIDP_HEADER_PARAM_MASK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _HIDP_HEADER_PARAM_MASK@GOTPAGEOFF]
	ldrb	w8, [x8]
	and	w8, w8, w21
	cmp	w9, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w9, #130
	b.eq	LBB0_5
; %bb.2:
	cmp	w9, #129
	b.ne	LBB0_6
; %bb.3:
	and	w1, w8, #0xff
	mov	x0, x20
	bl	_hidp_process_handshake
	b	LBB0_7
LBB0_4:
	and	w1, w8, #0xff
	mov	x0, x20
	bl	_hidp_process_hid_control
	b	LBB0_7
LBB0_5:
	and	w2, w8, #0xff
	mov	x0, x20
	mov	x1, x19
	bl	_hidp_process_data
	b	LBB0_7
LBB0_6:
Lloh6:
	adrp	x8, _HIDP_HSHK_ERR_UNSUPPORTED_REQUEST@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HIDP_HSHK_ERR_UNSUPPORTED_REQUEST@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	mov	w9, #129
	orr	w1, w8, w9
	mov	x0, x20
	mov	x2, #0
	mov	w3, #0
	bl	___hidp_send_ctrl_message
LBB0_7:
	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	_kfree_skb
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"session %p skb %p len %d"

	.comm	_HIDP_HEADER_TRANS_MASK,1,0     ; @HIDP_HEADER_TRANS_MASK
	.comm	_HIDP_HEADER_PARAM_MASK,1,0     ; @HIDP_HEADER_PARAM_MASK
	.comm	_HIDP_HSHK_ERR_UNSUPPORTED_REQUEST,4,2 ; @HIDP_HSHK_ERR_UNSUPPORTED_REQUEST
	.no_dead_strip	_hidp_recv_ctrl_frame
.subsections_via_symbols
