	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ks8695_start_xmit
_ks8695_start_xmit:                     ## @ks8695_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, %r15
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %r14
	leaq	12(%rax), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irq
	movq	(%r14), %rax
	movq	_MAX_TX_DESC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_spin_unlock_irq
	movq	_NETDEV_TX_BUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_2:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movslq	8(%r14), %r15
	movq	24(%r14), %rax
	movq	%r15, %rbx
	shlq	$4, %r15
	movq	8(%rax,%r15), %rdi
	callq	_BUG_ON
	movl	32(%r14), %edi
	movl	(%r12), %edx
	movl	4(%r12), %esi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_map_single
	movl	%eax, %r13d
	movl	32(%r14), %edi
	movl	%eax, %esi
	callq	_dma_mapping_error
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irq
	movl	32(%r14), %edi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	_NETDEV_TX_BUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_4:
	movq	24(%r14), %rax
	movl	%r13d, (%rax,%r15)
	movq	%r12, 8(%rax,%r15)
	movl	(%r12), %ecx
	movl	%ecx, 4(%rax,%r15)
	movl	%r13d, %edi
	callq	_cpu_to_le32
	movq	16(%r14), %rcx
	leaq	(,%rbx,8), %rdx
	leaq	(%rdx,%rdx,2), %r15
	movq	%rax, 16(%rcx,%r15)
	movq	_TDES_IC@GOTPCREL(%rip), %rax
	movq	_TDES_FS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_TDES_LS@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_TDES_TBS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	(%r12), %edi
	orl	%ecx, %edi
	callq	_cpu_to_le32
	movq	16(%r14), %rcx
	movq	%rax, 8(%rcx,%r15)
	xorl	%eax, %eax
	callq	_wmb
	movq	_TDES_OWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	16(%r14), %rcx
	movq	%rax, (%rcx,%r15)
	movq	(%r14), %rax
	incq	%rax
	movq	%rax, (%r14)
	movq	_MAX_TX_DESC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	callq	_netif_stop_queue
LBB0_6:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	_KS8695_DTSC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_ks8695_writereg
	incl	%ebx
	movq	_MAX_TX_DESC_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movl	%ebx, 8(%r14)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irq
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_TX_DESC,8,3                ## @MAX_TX_DESC
	.comm	_NETDEV_TX_BUSY,4,2             ## @NETDEV_TX_BUSY
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Could not map DMA memory for transmission, trying later\n"

	.comm	_TDES_IC,4,2                    ## @TDES_IC
	.comm	_TDES_FS,4,2                    ## @TDES_FS
	.comm	_TDES_LS,4,2                    ## @TDES_LS
	.comm	_TDES_TBS,4,2                   ## @TDES_TBS
	.comm	_TDES_OWN,4,2                   ## @TDES_OWN
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_KS8695_DTSC,4,2                ## @KS8695_DTSC
	.comm	_MAX_TX_DESC_MASK,4,2           ## @MAX_TX_DESC_MASK
	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
	.no_dead_strip	_ks8695_start_xmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ks8695_start_xmit
_ks8695_start_xmit:                     ; @ks8695_start_xmit
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x1
	mov	x22, x0
	mov	x0, x1
	bl	_netdev_priv
	mov	x20, x0
	add	x19, x0, #12
	mov	x0, x19
	bl	_spin_lock_irq
	ldr	x8, [x20]
Lloh0:
	adrp	x25, _MAX_TX_DESC@GOTPAGE
Lloh1:
	ldr	x25, [x25, _MAX_TX_DESC@GOTPAGEOFF]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_spin_unlock_irq
	b	LBB0_4
LBB0_2:
	ldrsw	x24, [x20, #8]
	ldr	x8, [x20, #24]
	add	x8, x8, x24, lsl #4
	ldr	x0, [x8, #8]
	bl	_BUG_ON
	ldr	w0, [x20, #32]
	ldp	w2, w1, [x22]
Lloh2:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	bl	_dma_map_single
	mov	x23, x0
	ldr	w0, [x20, #32]
	mov	x1, x23
	bl	_dma_mapping_error
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_spin_unlock_irq
	ldr	w0, [x20, #32]
	ldr	w2, [x21, #4]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
LBB0_4:
Lloh7:
	adrp	x8, _NETDEV_TX_BUSY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NETDEV_TX_BUSY@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	x8, [x20, #24]
	add	x8, x8, x24, lsl #4
	str	x22, [x8, #8]
	ldr	w9, [x22]
	stp	w23, w9, [x8]
	mov	x0, x23
	bl	_cpu_to_le32
	ldr	x8, [x20, #16]
	add	x9, x24, x24, lsl #1
	lsl	x23, x9, #3
	add	x8, x8, x23
	str	x0, [x8, #16]
Lloh9:
	adrp	x8, _TDES_IC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TDES_IC@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _TDES_FS@GOTPAGE
Lloh13:
	ldr	x9, [x9, _TDES_FS@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh15:
	adrp	x9, _TDES_LS@GOTPAGE
Lloh16:
	ldr	x9, [x9, _TDES_LS@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x22]
Lloh18:
	adrp	x10, _TDES_TBS@GOTPAGE
Lloh19:
	ldr	x10, [x10, _TDES_TBS@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	and	w9, w10, w9
	orr	w0, w8, w9
	bl	_cpu_to_le32
	ldr	x8, [x20, #16]
	add	x8, x8, x23
	str	x0, [x8, #8]
	bl	_wmb
Lloh21:
	adrp	x8, _TDES_OWN@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TDES_OWN@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	ldr	x8, [x20, #16]
	str	x0, [x8, x23]
	ldr	x8, [x20]
	add	x8, x8, #1
	str	x8, [x20]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x21
	bl	_netif_stop_queue
LBB0_8:
Lloh24:
	adrp	x8, _jiffies@GOTPAGE
Lloh25:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [x21]
Lloh27:
	adrp	x8, _KS8695_DTSC@GOTPAGE
Lloh28:
	ldr	x8, [x8, _KS8695_DTSC@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_ks8695_writereg
	add	w8, w24, #1
Lloh30:
	adrp	x9, _MAX_TX_DESC_MASK@GOTPAGE
Lloh31:
	ldr	x9, [x9, _MAX_TX_DESC_MASK@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	and	w8, w9, w8
	str	w8, [x20, #8]
	mov	x0, x19
	bl	_spin_unlock_irq
Lloh33:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh34:
	ldr	x8, [x8, _NETDEV_TX_OK@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_TX_DESC,8,3                ; @MAX_TX_DESC
	.comm	_NETDEV_TX_BUSY,4,2             ; @NETDEV_TX_BUSY
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Could not map DMA memory for transmission, trying later\n"

	.comm	_TDES_IC,4,2                    ; @TDES_IC
	.comm	_TDES_FS,4,2                    ; @TDES_FS
	.comm	_TDES_LS,4,2                    ; @TDES_LS
	.comm	_TDES_TBS,4,2                   ; @TDES_TBS
	.comm	_TDES_OWN,4,2                   ; @TDES_OWN
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_KS8695_DTSC,4,2                ; @KS8695_DTSC
	.comm	_MAX_TX_DESC_MASK,4,2           ; @MAX_TX_DESC_MASK
	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.no_dead_strip	_ks8695_start_xmit
.subsections_via_symbols
