	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function if_usb_receive
_if_usb_receive:                        ## @if_usb_receive
	.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	%rdi, %rbx
	movq	8(%rdi), %r12
	movq	8(%r12), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	16(%r12), %rax
	movl	(%rdi), %r15d
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r14
	movq	_LBTF_DEB_USB@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_lbtf_deb_enter
	movl	4(%rbx), %edx
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.1:
	testl	%edx, %edx
	je	LBB0_7
## %bb.2:
	movq	(%r12), %rdi
	leaq	L_.str(%rip), %rsi
LBB0_3:
	xorl	%eax, %eax
	callq	_lbtf_deb_usbd
LBB0_4:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree_skb
	jmp	LBB0_15
LBB0_5:
	testl	%edx, %edx
	je	LBB0_11
## %bb.6:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree_skb
	jmp	LBB0_16
LBB0_7:
	movq	%r13, %rbx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	(%r14), %edi
	callq	_le32_to_cpu
	movl	%eax, %r13d
	movq	(%r12), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_lbtf_deb_usbd
	cmpl	$128, %r13d
	je	LBB0_13
## %bb.8:
	cmpl	$129, %r13d
	je	LBB0_17
## %bb.9:
	cmpl	$130, %r13d
	jne	LBB0_12
## %bb.10:
	movl	%r15d, %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	_process_cmdtypedata
	jmp	LBB0_14
LBB0_11:
	movq	%r13, %rbx
	xorl	%r13d, %r13d
LBB0_12:
	movq	(%r12), %rdi
	leaq	L_.str.4(%rip), %rsi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_lbtf_deb_usbd
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree_skb
	jmp	LBB0_14
LBB0_13:
	movl	%r15d, %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%r12, %rcx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	callq	_process_cmdrequest
LBB0_14:
	movq	%rbx, %r13
LBB0_15:
	movq	%r12, %rdi
	callq	_if_usb_submit_rx_urb
LBB0_16:
	movl	(%r13), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_lbtf_deb_leave                 ## TAILCALL
LBB0_17:
	movl	4(%r14), %edi
	callq	_le32_to_cpu
	movl	%eax, %r14d
	movq	(%r12), %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_lbtf_deb_usbd
	movl	%r14d, %edx
	cmpl	$65536, %r14d                   ## imm = 0x10000
	jae	LBB0_20
## %bb.18:
	movq	_LBTF_EVENT_BCN_SENT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	movq	%rbx, %r13
	jne	LBB0_21
## %bb.19:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_lbtf_bcn_sent
	jmp	LBB0_4
LBB0_20:
	sarl	$16, %edx
	movzbl	%dl, %esi
	movzbl	%dh, %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_lbtf_send_tx_feedback
	movq	%rbx, %r13
	jmp	LBB0_4
LBB0_21:
	movq	(%r12), %rdi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_LBTF_DEB_USB,4,2               ## @LBTF_DEB_USB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RX URB failed: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Recv length = 0x%x, Recv type = 0x%X\n"

L_.str.2:                               ## @.str.2
	.asciz	"**EVENT** 0x%X\n"

	.comm	_LBTF_EVENT_BCN_SENT,4,2        ## @LBTF_EVENT_BCN_SENT
L_.str.3:                               ## @.str.3
	.asciz	"Unsupported notification %d received\n"

L_.str.4:                               ## @.str.4
	.asciz	"libertastf: unknown command type 0x%X\n"

	.no_dead_strip	_if_usb_receive
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function if_usb_receive
_if_usb_receive:                        ; @if_usb_receive
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x23, x0
	ldr	x19, [x0, #8]
	ldp	x21, x20, [x19, #8]
	ldr	w22, [x0]
	ldr	x26, [x20]
Lloh0:
	adrp	x25, _LBTF_DEB_USB@GOTPAGE
Lloh1:
	ldr	x25, [x25, _LBTF_DEB_USB@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_lbtf_deb_enter
	ldr	w2, [x23, #4]
	cbz	w22, LBB0_3
; %bb.1:
	cbz	w2, LBB0_5
; %bb.2:
	ldr	x0, [x19]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_11
LBB0_3:
	cbz	w2, LBB0_9
; %bb.4:
	mov	x0, x20
	bl	_kfree_skb
	b	LBB0_14
LBB0_5:
	ldr	x24, [x20]
	ldr	w0, [x26]
	bl	_le32_to_cpu
	mov	x23, x0
	ldr	x0, [x19]
	str	x23, [sp]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x22
	bl	_lbtf_deb_usbd
	cmp	w23, #128
	b.eq	LBB0_15
; %bb.6:
	cmp	w23, #129
	b.eq	LBB0_16
; %bb.7:
	cmp	w23, #130
	b.ne	LBB0_10
; %bb.8:
	mov	x0, x22
	mov	x1, x20
	mov	x2, x19
	mov	x3, x21
	bl	_process_cmdtypedata
	b	LBB0_13
LBB0_9:
	mov	w23, #0
LBB0_10:
	ldr	x0, [x19]
Lloh6:
	adrp	x1, l_.str.4@PAGE
Lloh7:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x23
LBB0_11:
	bl	_lbtf_deb_usbd
LBB0_12:
	mov	x0, x20
	bl	_kfree_skb
LBB0_13:
	mov	x0, x19
	bl	_if_usb_submit_rx_urb
LBB0_14:
	ldr	w0, [x25]
	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
	add	sp, sp, #96
	b	_lbtf_deb_leave
LBB0_15:
	mov	x0, x22
	mov	x1, x24
	mov	x2, x20
	mov	x3, x19
	mov	x4, x21
	bl	_process_cmdrequest
	b	LBB0_13
LBB0_16:
	ldr	w0, [x26, #4]
	bl	_le32_to_cpu
	mov	x22, x0
	ldr	x0, [x19]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x22
	bl	_lbtf_deb_usbd
	cmp	w22, #16, lsl #12               ; =65536
	b.hs	LBB0_19
; %bb.17:
Lloh10:
	adrp	x8, _LBTF_EVENT_BCN_SENT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LBTF_EVENT_BCN_SENT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w22, w8
	b.ne	LBB0_20
; %bb.18:
	mov	x0, x21
	bl	_lbtf_bcn_sent
	b	LBB0_12
LBB0_19:
	asr	w8, w22, #16
	and	w1, w8, #0xff
	ubfx	w2, w8, #8, #8
	mov	x0, x21
	bl	_lbtf_send_tx_feedback
	b	LBB0_12
LBB0_20:
	ldr	x0, [x19]
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x22
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_LBTF_DEB_USB,4,2               ; @LBTF_DEB_USB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RX URB failed: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Recv length = 0x%x, Recv type = 0x%X\n"

l_.str.2:                               ; @.str.2
	.asciz	"**EVENT** 0x%X\n"

	.comm	_LBTF_EVENT_BCN_SENT,4,2        ; @LBTF_EVENT_BCN_SENT
l_.str.3:                               ; @.str.3
	.asciz	"Unsupported notification %d received\n"

l_.str.4:                               ; @.str.4
	.asciz	"libertastf: unknown command type 0x%X\n"

	.no_dead_strip	_if_usb_receive
.subsections_via_symbols
