	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8150_start_xmit
_rtl8150_start_xmit:                    ## @rtl8150_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %r12
	movq	%r13, %rdi
	callq	_netif_stop_queue
	movl	(%r15), %eax
	cmpl	$61, %eax
	movl	$60, %ebx
	cmovgel	%eax, %ebx
	movl	%ebx, %eax
	andl	$63, %eax
	cmpl	$1, %eax
	adcl	$0, %ebx
	movq	%r15, 16(%r12)
	movl	4(%r12), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	8(%r12), %r14d
	movl	%r14d, %edi
	movl	$2, %esi
	callq	_usb_sndbulkpipe
	movl	4(%r15), %ecx
	movq	_write_bulk_callback@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	movq	%r12, (%rsp)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r14d, %esi
	movl	%eax, %edx
	movl	%ebx, %r8d
	callq	_usb_fill_bulk_urb
	movl	4(%r12), %edi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_usb_submit_urb
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	jne	LBB0_3
## %bb.2:
	movl	(%r12), %edi
	callq	_netif_device_detach
	jmp	LBB0_5
LBB0_4:
	incl	4(%r13)
	movl	(%r15), %eax
	addl	%eax, (%r13)
	movq	%r13, %rdi
	callq	_netif_trans_update
	jmp	LBB0_5
LBB0_3:
	leaq	12(%r13), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_warn
	incl	8(%r13)
	movq	%r13, %rdi
	callq	_netif_start_queue
LBB0_5:
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_write_bulk_callback,4,2        ## @write_bulk_callback
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed tx_urb %d\n"

	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
	.no_dead_strip	_rtl8150_start_xmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8150_start_xmit
_rtl8150_start_xmit:                    ; @rtl8150_start_xmit
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_netdev_priv
	mov	x21, x0
	mov	x0, x19
	bl	_netif_stop_queue
	ldr	w8, [x20]
	mov	w9, #60
	cmp	w8, #60
	csel	w8, w8, w9, gt
	tst	w8, #0x3f
	cinc	w22, w8, eq
	str	x20, [x21, #16]
	ldp	w23, w24, [x21, #4]
	mov	x0, x24
	mov	w1, #2
	bl	_usb_sndbulkpipe
	mov	x2, x0
	ldr	w3, [x20, #4]
Lloh0:
	adrp	x8, _write_bulk_callback@GOTPAGE
Lloh1:
	ldr	x8, [x8, _write_bulk_callback@GOTPAGEOFF]
Lloh2:
	ldr	w5, [x8]
	mov	x0, x23
	mov	x1, x24
	mov	x4, x22
	mov	x6, x21
	bl	_usb_fill_bulk_urb
	ldr	w0, [x21, #4]
Lloh3:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_usb_submit_urb
	cbz	w0, LBB0_3
; %bb.1:
	mov	x2, x0
Lloh6:
	adrp	x8, _ENODEV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_4
; %bb.2:
	ldr	w0, [x21]
	bl	_netif_device_detach
	b	LBB0_5
LBB0_3:
	ldr	d0, [x19]
	movi.2s	v1, #1
	ld1.s	{ v1 }[0], [x20]
	add.2s	v0, v0, v1
	str	d0, [x19]
	mov	x0, x19
	bl	_netif_trans_update
	b	LBB0_5
LBB0_4:
	add	x0, x19, #12
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	mov	x0, x19
	bl	_netif_start_queue
LBB0_5:
Lloh11:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NETDEV_TX_OK@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_write_bulk_callback,4,2        ; @write_bulk_callback
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed tx_urb %d\n"

	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.no_dead_strip	_rtl8150_start_xmit
.subsections_via_symbols
