	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xircom_start_xmit
_xircom_start_xmit:                     ## @xircom_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %r14
	movq	%rax, %rbx
	addq	$16, %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	_NUMDESCRIPTORS@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	testl	%ecx, %ecx
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	jle	LBB0_4
## %bb.1:
	xorl	%ebx, %ebx
	movq	_bufferoffsets@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_investigate_write_descriptor
	incq	%rbx
	movslq	(%r12), %rcx
	cmpq	%rcx, %rbx
	jl	LBB0_2
## %bb.3:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
LBB0_4:
	movslq	(%r14), %r13
	leal	1(%r13), %eax
	cltd
	idivl	%ecx
	movq	8(%r14), %rax
	movq	%r13, %rcx
	shlq	$5, %rcx
	cmpq	$0, (%rax,%rcx)
	je	LBB0_5
## %bb.10:
	movq	%r15, %rdi
	callq	_netif_stop_queue
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r14, %rdi
	callq	_trigger_transmit
	movq	_NETDEV_TX_BUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_5:
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	_bufferoffsets@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	movl	(%rcx,%r13,4), %ecx
	leal	3(%rcx), %edx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edx
	leaq	(,%r13,4), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	sarl	$2, %edx
	movslq	%edx, %rcx
	leaq	(%rax,%rcx,8), %rdi
	xorl	%esi, %esi
	movl	$1536, %edx                     ## imm = 0x600
	callq	_memset
	movq	(%rbx), %rax
	movl	(%rax,%r13,4), %eax
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$2, %ecx
	movslq	%ecx, %rsi
	shlq	$3, %rsi
	addq	8(%r14), %rsi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %edx
	movq	%rbx, %rdi
	callq	_skb_copy_from_linear_data
	movl	(%rbx), %edi
	callq	_cpu_to_le32
	cltq
	movq	8(%r14), %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	orl	$1, %edx
	movslq	%edx, %rbx
	movq	%rax, (%rcx,%rbx,8)
	movl	(%r12), %eax
	decl	%eax
	cmpl	%eax, %r13d
	jne	LBB0_7
## %bb.6:
	movl	$33554432, %edi                 ## imm = 0x2000000
	callq	_cpu_to_le32
	cltq
	movq	8(%r14), %rcx
	orq	%rax, (%rcx,%rbx,8)
LBB0_7:
	movl	$-268435456, %edi               ## imm = 0xF0000000
	callq	_cpu_to_le32
	cltq
	movq	8(%r14), %rcx
	orq	%rax, (%rcx,%rbx,8)
	movq	24(%r14), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rax,%r13,8)
	xorl	%eax, %eax
	callq	_wmb
	movl	$-2147483648, %edi              ## imm = 0x80000000
	callq	_cpu_to_le32
	cltq
	movq	8(%r14), %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, (%rcx,%rdx,8)
	movq	%r14, %rdi
	callq	_trigger_transmit
	movq	8(%r14), %rax
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %ecx
	shll	$2, %ecx
	movslq	%ecx, %rcx
	movq	(%rax,%rcx,8), %r12
	movl	$134217728, %edi                ## imm = 0x8000000
	callq	_cpu_to_le32
	cltq
	testq	%rax, %r12
	je	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	callq	_netif_stop_queue
LBB0_9:
	movl	%ebx, (%r14)
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUMDESCRIPTORS,4,2             ## @NUMDESCRIPTORS
	.comm	_bufferoffsets,8,3              ## @bufferoffsets
	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
	.comm	_NETDEV_TX_BUSY,4,2             ## @NETDEV_TX_BUSY
	.no_dead_strip	_xircom_start_xmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xircom_start_xmit
_xircom_start_xmit:                     ; @xircom_start_xmit
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x22, x0
	mov	x0, x1
	bl	_netdev_priv
	mov	x19, x0
	add	x20, x0, #16
	mov	x0, x20
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x24, _NUMDESCRIPTORS@GOTPAGE
Lloh1:
	ldr	x24, [x24, _NUMDESCRIPTORS@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x23, #0
Lloh2:
	adrp	x25, _bufferoffsets@GOTPAGE
Lloh3:
	ldr	x25, [x25, _bufferoffsets@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	ldr	w3, [x8, x23, lsl #2]
	mov	x0, x21
	mov	x1, x19
	mov	x2, x23
	bl	_investigate_write_descriptor
	add	x23, x23, #1
	ldrsw	x8, [x24]
	cmp	x23, x8
	b.lt	LBB0_2
LBB0_3:
	ldrsw	x26, [x19]
	ldr	x9, [x19, #8]
	lsl	x10, x26, #5
	ldr	x10, [x9, x10]
	cbz	x10, LBB0_5
; %bb.4:
	mov	x0, x21
	bl	_netif_stop_queue
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	bl	_trigger_transmit
Lloh4:
	adrp	x8, _NETDEV_TX_BUSY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _NETDEV_TX_BUSY@GOTPAGEOFF]
	b	LBB0_10
LBB0_5:
	add	w10, w26, #1
	sdiv	w11, w10, w8
	lsl	x25, x26, #2
Lloh6:
	adrp	x27, _bufferoffsets@GOTPAGE
Lloh7:
	ldr	x27, [x27, _bufferoffsets@GOTPAGEOFF]
	ldr	x12, [x27]
	ldr	w12, [x12, x25]
	msub	w23, w11, w8, w10
	add	w8, w12, #3
	cmp	w12, #0
	csel	w8, w8, w12, lt
	asr	w8, w8, #2
	add	x0, x9, w8, sxtw #3
	mov	w1, #0
	mov	w2, #1536
	bl	_memset
	ldr	x8, [x19, #8]
	ldr	x9, [x27]
	ldr	w9, [x9, x25]
	add	w10, w9, #3
	cmp	w9, #0
	csel	w9, w10, w9, lt
	asr	w9, w9, #2
	add	x1, x8, w9, sxtw #3
	ldr	w2, [x22]
	mov	x0, x22
	bl	_skb_copy_from_linear_data
	ldr	w0, [x22]
	bl	_cpu_to_le32
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	ldr	x9, [x19, #8]
	orr	w10, w25, #0x1
	sxtw	x11, w10
	str	x8, [x9, w10, sxtw #3]
	ldr	w8, [x24]
	sub	w8, w8, #1
	lsl	x24, x11, #3
	cmp	w26, w8
	b.ne	LBB0_7
; %bb.6:
	mov	w0, #33554432
	bl	_cpu_to_le32
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	ldr	x9, [x19, #8]
	ldr	x10, [x9, x24]
	orr	x8, x10, x8
	str	x8, [x9, x24]
LBB0_7:
	mov	w0, #-268435456
	bl	_cpu_to_le32
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	ldr	x9, [x19, #8]
	ldr	x10, [x9, x24]
	orr	x8, x10, x8
	str	x8, [x9, x24]
	ldr	x8, [x19, #24]
	str	x22, [x8, x26, lsl #3]
	bl	_wmb
	mov	w0, #-2147483648
	bl	_cpu_to_le32
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	ldr	x9, [x19, #8]
	str	x8, [x9, x25, lsl #3]
	mov	x0, x19
	bl	_trigger_transmit
	ldr	x8, [x19, #8]
	lsl	w9, w23, #2
	ldr	x22, [x8, w9, sxtw #3]
	mov	w0, #134217728
	bl	_cpu_to_le32
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	tst	x22, x8
	b.eq	LBB0_9
; %bb.8:
	mov	x0, x21
	bl	_netif_stop_queue
LBB0_9:
	str	w23, [x19]
	mov	x0, x20
	bl	_spin_unlock_irqrestore
Lloh8:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NETDEV_TX_OK@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_NUMDESCRIPTORS,4,2             ; @NUMDESCRIPTORS
	.comm	_bufferoffsets,8,3              ; @bufferoffsets
	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.comm	_NETDEV_TX_BUSY,4,2             ; @NETDEV_TX_BUSY
	.no_dead_strip	_xircom_start_xmit
.subsections_via_symbols
