	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usb_d_out
_usb_d_out:                             ## @usb_d_out
	.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	16(%rdi), %rax
	movq	_ST_DOUT_NORMAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.1:
	movl	%esi, %ebx
	movq	%rdi, %r12
	leaq	40(%rdi), %r14
	movl	%esi, %edi
	movq	%r14, %rsi
	callq	_test_and_set_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.17:
	movq	_EP_D_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r14), %r8d
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	movl	%ebx, %ecx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DBG                            ## TAILCALL
LBB0_2:
	movq	8(%r12), %rdx
	movq	32(%r12), %rax
	movslq	%ebx, %rcx
	movq	(%rax,%rcx,8), %rcx
	movq	_NUM_ISO_PACKETS_D@GOTPCREL(%rip), %rax
	movq	_SIZE_ISO_PACKETS_D_OUT@GOTPCREL(%rip), %r15
	movl	(%r15), %r13d
	imull	(%rax), %r13d
	leaq	24(%r12), %rdi
	testq	%rdx, %rdx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.3:
	movq	8(%rdx), %rsi
	movq	%rdx, %rbx
	movl	(%rdx), %edx
	movl	40(%rcx), %r8d
	leaq	-44(%rbp), %rcx
	movl	%r13d, %r9d
	callq	_isdnhdlc_encode
	movl	%eax, %r14d
	movl	-44(%rbp), %esi
	movq	%rbx, %rdi
	callq	_skb_pull
	cmpl	%r13d, %r14d
	jge	LBB0_7
LBB0_6:
	leaq	16(%r12), %rdi
	movq	_ST_DOUT_WAIT_FOR_UNDERRUN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_FsmChangeState
LBB0_7:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_10
## %bb.8:
	cmpl	$0, (%rbx)
	jne	LBB0_10
## %bb.9:
	movq	$0, 8(%r12)
	movq	_PH_DATA@GOTPCREL(%rip), %rax
	movq	_CONFIRM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_D_L1L2
	movq	%rbx, %rdi
	callq	_dev_kfree_skb_any
LBB0_10:
	movl	%r14d, (%r13)
	testl	%r14d, %r14d
	je	LBB0_11
## %bb.12:
	movq	32(%r13), %rcx
	xorl	%eax, %eax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	%eax, %esi
	movl	%edx, (%rcx,%rsi,8)
	movl	(%r15), %edi
	movl	%r14d, %ebx
	subl	%edx, %ebx
	cmpl	%edi, %ebx
	cmovael	%edi, %ebx
	movl	%ebx, 4(%rcx,%rsi,8)
	incl	%eax
	addl	%ebx, %edx
	cmpl	%edx, %r14d
	ja	LBB0_13
	jmp	LBB0_14
LBB0_4:
	movl	40(%rcx), %r8d
	leaq	-44(%rbp), %rcx
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	%r13d, %r9d
	callq	_isdnhdlc_encode
	movl	%eax, %r14d
	cmpl	%r13d, %r14d
	jl	LBB0_6
	jmp	LBB0_7
LBB0_11:
	xorl	%eax, %eax
LBB0_14:
	movl	%eax, 4(%r13)
	movl	(%r12), %edi
	movl	%edi, 24(%r13)
	movq	$0, 8(%r13)
	callq	_usb_get_current_frame_number
	addq	$2, %rax
	movq	%rax, 16(%r13)
	movl	$32, %edi
	movq	%r13, %rsi
	callq	_DBG_ISO_PACKET
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_usb_submit_urb
	testq	%rax, %rax
	jns	LBB0_16
## %bb.15:
	movq	_URB_ISO_ASAP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r13)
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_SUBMIT_URB
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ST_DOUT_NORMAL,8,3             ## @ST_DOUT_NORMAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ep %d urb %d busy %#lx"

	.comm	_EP_D_OUT,4,2                   ## @EP_D_OUT
	.comm	_NUM_ISO_PACKETS_D,4,2          ## @NUM_ISO_PACKETS_D
	.comm	_SIZE_ISO_PACKETS_D_OUT,4,2     ## @SIZE_ISO_PACKETS_D_OUT
	.comm	_ST_DOUT_WAIT_FOR_UNDERRUN,4,2  ## @ST_DOUT_WAIT_FOR_UNDERRUN
	.comm	_PH_DATA,4,2                    ## @PH_DATA
	.comm	_CONFIRM,4,2                    ## @CONFIRM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_URB_ISO_ASAP,8,3               ## @URB_ISO_ASAP
	.no_dead_strip	_usb_d_out
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usb_d_out
_usb_d_out:                             ; @usb_d_out
	.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	x22, x0
	ldr	x8, [x22, #16]!
Lloh0:
	adrp	x9, _ST_DOUT_NORMAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ST_DOUT_NORMAL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	add	x21, x0, #40
	mov	x0, x1
	mov	x1, x21
	bl	_test_and_set_bit
	cbz	x0, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _EP_D_OUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EP_D_OUT@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	ldr	w4, [x21]
	mov	w0, #2
	mov	x3, x19
	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	_DBG
LBB0_3:
	ldr	x8, [x20, #32]
	ldr	x19, [x8, w19, sxtw #3]
	ldr	x21, [x20, #8]
Lloh8:
	adrp	x8, _NUM_ISO_PACKETS_D@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NUM_ISO_PACKETS_D@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x25, _SIZE_ISO_PACKETS_D_OUT@GOTPAGE
Lloh12:
	ldr	x25, [x25, _SIZE_ISO_PACKETS_D_OUT@GOTPAGEOFF]
	ldr	w9, [x25]
	mul	w24, w9, w8
	add	x0, x20, #24
	cbz	x21, LBB0_15
; %bb.4:
	ldr	x1, [x21, #8]
	ldr	w2, [x21]
	ldr	w4, [x19, #40]
	add	x3, sp, #12
	mov	x5, x24
	bl	_isdnhdlc_encode
	mov	x23, x0
	ldr	w1, [sp, #12]
	mov	x0, x21
	bl	_skb_pull
	cmp	w23, w24
	b.ge	LBB0_6
LBB0_5:
Lloh13:
	adrp	x8, _ST_DOUT_WAIT_FOR_UNDERRUN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ST_DOUT_WAIT_FOR_UNDERRUN@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_FsmChangeState
LBB0_6:
	cbz	x21, LBB0_9
; %bb.7:
	ldr	w8, [x21]
	cbnz	w8, LBB0_9
; %bb.8:
Lloh16:
	adrp	x8, _PH_DATA@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PH_DATA@GOTPAGEOFF]
	str	xzr, [x20, #8]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _CONFIRM@GOTPAGE
Lloh20:
	ldr	x9, [x9, _CONFIRM@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x20
	mov	x2, #0
	bl	_D_L1L2
	mov	x0, x21
	bl	_dev_kfree_skb_any
LBB0_9:
	str	w23, [x19]
	mov	w8, #0
	cbz	w23, LBB0_12
; %bb.10:
	mov	w9, #0
	ldr	x10, [x19, #32]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	add	x11, x10, w8, uxtw #3
	str	w9, [x11]
	ldr	w12, [x25]
	sub	w13, w23, w9
	cmp	w13, w12
	csel	w12, w13, w12, lo
	str	w12, [x11, #4]
	add	w8, w8, #1
	add	w9, w12, w9
	cmp	w23, w9
	b.hi	LBB0_11
LBB0_12:
	str	w8, [x19, #4]
	ldr	w0, [x20]
	str	w0, [x19, #24]
	str	xzr, [x19, #8]
	bl	_usb_get_current_frame_number
	add	x8, x0, #2
	str	x8, [x19, #16]
	mov	w0, #32
	mov	x1, x19
	bl	_DBG_ISO_PACKET
Lloh22:
	adrp	x20, _GFP_KERNEL@GOTPAGE
Lloh23:
	ldr	x20, [x20, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_usb_submit_urb
	tbz	x0, #63, LBB0_14
; %bb.13:
Lloh24:
	adrp	x8, _URB_ISO_ASAP@GOTPAGE
Lloh25:
	ldr	x8, [x8, _URB_ISO_ASAP@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_SUBMIT_URB
LBB0_14:
	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
	ret
LBB0_15:
	ldr	w4, [x19, #40]
	add	x3, sp, #12
	mov	x1, #0
	mov	w2, #0
	mov	x5, x24
	bl	_isdnhdlc_encode
	mov	x23, x0
	cmp	w23, w24
	b.lt	LBB0_5
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_ST_DOUT_NORMAL,8,3             ; @ST_DOUT_NORMAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ep %d urb %d busy %#lx"

	.comm	_EP_D_OUT,4,2                   ; @EP_D_OUT
	.comm	_NUM_ISO_PACKETS_D,4,2          ; @NUM_ISO_PACKETS_D
	.comm	_SIZE_ISO_PACKETS_D_OUT,4,2     ; @SIZE_ISO_PACKETS_D_OUT
	.comm	_ST_DOUT_WAIT_FOR_UNDERRUN,4,2  ; @ST_DOUT_WAIT_FOR_UNDERRUN
	.comm	_PH_DATA,4,2                    ; @PH_DATA
	.comm	_CONFIRM,4,2                    ; @CONFIRM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_URB_ISO_ASAP,8,3               ; @URB_ISO_ASAP
	.no_dead_strip	_usb_d_out
.subsections_via_symbols
