	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gs_can_start_xmit
_gs_can_start_xmit:                     ## @gs_can_start_xmit
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %r13
	movq	16(%rax), %rbx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_can_dropped_invalid_skb
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %r14
	testq	%rax, %rax
	jne	LBB0_17
## %bb.1:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_gs_alloc_tx_context
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rbx
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movl	(%r13), %edi
	movl	(%r14), %edx
	movl	$20, %esi
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %rcx
	callq	_usb_alloc_coherent
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movl	(%rbx), %edx
	movq	_GS_MAX_TX_URBS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %edx
	jae	LBB0_7
## %bb.10:
	movl	%edx, (%rax)
	movq	%rax, %rsi
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	12(%r13), %eax
	movl	%eax, 16(%rsi)
	movq	(%r15), %rax
	movl	8(%rax), %ecx
	movl	%ecx, 12(%rsi)
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movl	(%rax), %edx
	movl	%edx, 8(%rsi)
	movl	4(%rsi), %edi
	movl	4(%rax), %esi
	callq	_memcpy
	movl	(%r13), %edi
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movq	_GSUSB_ENDPOINT_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_usb_sndbulkpipe
	movq	_gs_usb_xmit_callback@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	%rbx, (%rsp)
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	$20, %r8d
	callq	_usb_fill_bulk_urb
	movq	_URB_NO_TRANSFER_DMA_MAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r14)
	leaq	8(%r13), %rsi
	movq	%r14, %rdi
	callq	_usb_anchor_urb
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	callq	_can_put_echo_skb
	movq	%r13, %r15
	addq	$4, %r15
	movq	%r15, %rdi
	callq	_atomic_inc
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_usb_submit_urb
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %r14
	movq	%r15, %rdi
	je	LBB0_14
## %bb.11:
	callq	_atomic_dec
	movq	%r12, %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	callq	_can_free_echo_skb
	movq	%rbx, %rdi
	callq	_gs_free_tx_context
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_usb_unanchor_urb
	movl	(%r13), %edi
	movl	(%rbx), %ecx
	movl	$20, %esi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	_usb_free_coherent
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	addl	%edx, %eax
	jne	LBB0_13
## %bb.12:
	movq	%r12, %rdi
	callq	_netif_device_detach
	jmp	LBB0_16
LBB0_2:
	movq	_NETDEV_TX_BUSY@GOTPCREL(%rip), %r14
	jmp	LBB0_17
LBB0_5:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_8
LBB0_7:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movq	%rax, %r12
	xorl	%eax, %eax
	callq	_netdev_err
	movl	(%r13), %edi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %ecx
	movl	$20, %esi
	movq	%r12, %rdx
	callq	_usb_free_coherent
LBB0_8:
	movq	%rbx, %rdi
	callq	_usb_free_urb
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_9:
	movq	%rbx, %rdi
	callq	_gs_free_tx_context
	movq	%r15, %rdi
	callq	_dev_kfree_skb
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	incl	(%rax)
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %r14
LBB0_17:
	movl	(%r14), %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	_atomic_read
	movq	_GS_MAX_TX_URBS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jb	LBB0_16
## %bb.15:
	movq	%r12, %rdi
	callq	_netif_stop_queue
	jmp	LBB0_16
LBB0_13:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	incl	(%rax)
LBB0_16:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_usb_free_urb
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
	.comm	_NETDEV_TX_BUSY,4,2             ## @NETDEV_TX_BUSY
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No memory left for USB buffer\n"

	.comm	_GS_MAX_TX_URBS,4,2             ## @GS_MAX_TX_URBS
L_.str.1:                               ## @.str.1
	.asciz	"Invalid tx context %d\n"

	.comm	_GSUSB_ENDPOINT_OUT,4,2         ## @GSUSB_ENDPOINT_OUT
	.comm	_gs_usb_xmit_callback,4,2       ## @gs_usb_xmit_callback
	.comm	_URB_NO_TRANSFER_DMA_MAP,4,2    ## @URB_NO_TRANSFER_DMA_MAP
	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.2:                               ## @.str.2
	.asciz	"usb_submit failed (err=%d)\n"

	.no_dead_strip	_gs_can_start_xmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gs_can_start_xmit
_gs_can_start_xmit:                     ; @gs_can_start_xmit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x23, x0
	mov	x0, x1
	bl	_netdev_priv
	mov	x22, x0
	ldr	x27, [x0, #16]
	mov	x0, x20
	mov	x1, x23
	bl	_can_dropped_invalid_skb
	cbnz	x0, LBB0_13
; %bb.1:
	mov	x0, x22
	bl	_gs_alloc_tx_context
	cbz	x0, LBB0_8
; %bb.2:
	mov	x21, x0
Lloh0:
	adrp	x28, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x28, [x28, _GFP_ATOMIC@GOTPAGEOFF]
	ldr	w1, [x28]
	mov	w0, #0
	bl	_usb_alloc_urb
	cbz	x0, LBB0_12
; %bb.3:
	mov	x19, x0
	ldr	w0, [x22]
	ldr	w2, [x28]
	mov	w1, #20
	mov	x3, x19
	bl	_usb_alloc_coherent
	cbz	x0, LBB0_9
; %bb.4:
	mov	x24, x0
	ldr	w25, [x21]
Lloh2:
	adrp	x8, _GS_MAX_TX_URBS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GS_MAX_TX_URBS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w25, w8
	b.hs	LBB0_10
; %bb.5:
	str	w25, [x24]
	ldr	w8, [x22, #12]
	str	w8, [x24, #16]
	ldr	x8, [x23]
	ldp	w1, w9, [x8, #4]
	ldr	w2, [x8]
	stp	w2, w9, [x24, #8]
	ldr	w0, [x24, #4]
	bl	_memcpy
	ldr	w26, [x22]
Lloh5:
	adrp	x8, _GSUSB_ENDPOINT_OUT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GSUSB_ENDPOINT_OUT@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x26
	bl	_usb_sndbulkpipe
	mov	x2, x0
Lloh8:
	adrp	x8, _gs_usb_xmit_callback@GOTPAGE
Lloh9:
	ldr	x8, [x8, _gs_usb_xmit_callback@GOTPAGEOFF]
Lloh10:
	ldr	w5, [x8]
	mov	x0, x19
	mov	x1, x26
	mov	x3, x24
	mov	w4, #20
	mov	x6, x21
	bl	_usb_fill_bulk_urb
Lloh11:
	adrp	x8, _URB_NO_TRANSFER_DMA_MAP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _URB_NO_TRANSFER_DMA_MAP@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
	add	x1, x22, #8
	mov	x0, x19
	bl	_usb_anchor_urb
	mov	x0, x23
	mov	x1, x20
	mov	x2, x25
	bl	_can_put_echo_skb
	add	x26, x22, #4
	mov	x0, x26
	bl	_atomic_inc
	ldr	w1, [x28]
	mov	x0, x19
	bl	_usb_submit_urb
	mov	x23, x0
	bl	_unlikely
	cbz	x0, LBB0_15
; %bb.6:
	mov	x0, x26
	bl	_atomic_dec
	mov	x0, x20
	mov	x1, x25
	bl	_can_free_echo_skb
	mov	x0, x21
	bl	_gs_free_tx_context
	mov	x0, x19
	bl	_usb_unanchor_urb
	ldr	w0, [x22]
	ldr	w3, [x19]
	mov	w1, #20
	mov	x2, x24
	bl	_usb_free_coherent
Lloh14:
	adrp	x8, _ENODEV@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmn	w23, w8
	b.ne	LBB0_17
; %bb.7:
	mov	x0, x20
	bl	_netif_device_detach
	b	LBB0_18
LBB0_8:
Lloh17:
	adrp	x8, _NETDEV_TX_BUSY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _NETDEV_TX_BUSY@GOTPAGEOFF]
	b	LBB0_14
LBB0_9:
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
	b	LBB0_11
LBB0_10:
	str	x25, [sp]
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
	ldr	w0, [x22]
	ldr	w3, [x19]
	mov	w1, #20
	mov	x2, x24
	bl	_usb_free_coherent
LBB0_11:
	mov	x0, x19
	bl	_usb_free_urb
LBB0_12:
	mov	x0, x21
	bl	_gs_free_tx_context
	mov	x0, x23
	bl	_dev_kfree_skb
	ldr	w8, [x27]
	add	w8, w8, #1
	str	w8, [x27]
LBB0_13:
Lloh23:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _NETDEV_TX_OK@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_15:
	mov	x0, x26
	bl	_atomic_read
Lloh25:
	adrp	x8, _GS_MAX_TX_URBS@GOTPAGE
Lloh26:
	ldr	x8, [x8, _GS_MAX_TX_URBS@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	cmp	w0, w8
	b.lo	LBB0_18
; %bb.16:
	mov	x0, x20
	bl	_netif_stop_queue
	b	LBB0_18
LBB0_17:
	str	x23, [sp]
Lloh28:
	adrp	x1, l_.str.2@PAGE
Lloh29:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
	ldr	w8, [x27]
	add	w8, w8, #1
	str	w8, [x27]
LBB0_18:
	mov	x0, x19
	bl	_usb_free_urb
	b	LBB0_13
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.comm	_NETDEV_TX_BUSY,4,2             ; @NETDEV_TX_BUSY
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No memory left for USB buffer\n"

	.comm	_GS_MAX_TX_URBS,4,2             ; @GS_MAX_TX_URBS
l_.str.1:                               ; @.str.1
	.asciz	"Invalid tx context %d\n"

	.comm	_GSUSB_ENDPOINT_OUT,4,2         ; @GSUSB_ENDPOINT_OUT
	.comm	_gs_usb_xmit_callback,4,2       ; @gs_usb_xmit_callback
	.comm	_URB_NO_TRANSFER_DMA_MAP,4,2    ; @URB_NO_TRANSFER_DMA_MAP
	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.2:                               ; @.str.2
	.asciz	"usb_submit failed (err=%d)\n"

	.no_dead_strip	_gs_can_start_xmit
.subsections_via_symbols
