	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_start_xmit
_do_start_xmit:                         ## @do_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, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %r13
	movl	(%rbx), %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%r14), %r15d
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_pr_debug
	movq	_ETH_ZLEN@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	cmpl	%esi, %r15d
	jae	LBB0_3
## %bb.1:
	movq	%r14, %rdi
	callq	_skb_padto
	testq	%rax, %rax
	jne	LBB0_10
## %bb.2:
	movl	(%r12), %r15d
LBB0_3:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_netif_stop_queue
	xorl	%edi, %edi
	callq	_SelectPage
	movq	_XIRCREG0_TRS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	%r15d, %r12d
	leaq	2(%r12), %rsi
	callq	_PutWord
	movq	_XIRCREG0_TSO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GetWord
	movl	%eax, %r13d
	andl	$32767, %r13d                   ## imm = 0x7FFF
	addl	$2, %r15d
	cmpl	%r13d, %r15d
	movslq	8(%rbx), %rsi
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.3(%rip), %rcx
	cmovbq	%rax, %rcx
	leaq	L_.str.1(%rip), %rdi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_pr_debug
	cmpl	%r13d, %r15d
	jae	LBB0_4
## %bb.5:
	movq	_XIRCREG_EDP@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	movq	%r12, %rsi
	callq	_PutWord
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	(%r15), %rdi
	movq	8(%r14), %rsi
	movl	%r12d, %edx
	shrl	%edx
	callq	_outsw
	testb	$1, %r12b
	je	LBB0_7
## %bb.6:
	movq	(%r15), %rdi
	movq	8(%r14), %rax
	leal	-1(%r12), %ecx
	movl	(%rax,%rcx,4), %esi
	callq	_PutByte
LBB0_7:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.8:
	movq	_XIRCREG_CR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_TransmitPacket@GOTPCREL(%rip), %rax
	movq	_EnableIntr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_PutByte
LBB0_9:
	movq	%r14, %rdi
	callq	_dev_kfree_skb
	addl	%r12d, 4(%rbx)
	movq	%rbx, %rdi
	callq	_netif_start_queue
LBB0_10:
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_4:
	movq	_NETDEV_TX_BUSY@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"do_start_xmit(skb=%p, dev=%p) len=%u\n"

	.comm	_ETH_ZLEN,4,2                   ## @ETH_ZLEN
	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
	.comm	_XIRCREG0_TRS,8,3               ## @XIRCREG0_TRS
	.comm	_XIRCREG0_TSO,4,2               ## @XIRCREG0_TSO
L_.str.1:                               ## @.str.1
	.asciz	"%s: avail. tx space=%u%s\n"

L_.str.2:                               ## @.str.2
	.asciz	" (okay)"

L_.str.3:                               ## @.str.3
	.asciz	" (not enough)"

	.comm	_NETDEV_TX_BUSY,4,2             ## @NETDEV_TX_BUSY
	.comm	_XIRCREG_EDP,8,3                ## @XIRCREG_EDP
	.comm	_XIRCREG_CR,8,3                 ## @XIRCREG_CR
	.comm	_TransmitPacket,4,2             ## @TransmitPacket
	.comm	_EnableIntr,4,2                 ## @EnableIntr
	.no_dead_strip	_do_start_xmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_start_xmit
_do_start_xmit:                         ; @do_start_xmit
	.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	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_netdev_priv
	mov	x21, x0
	ldr	w23, [x19]
	ldr	w24, [x20]
	stp	x19, x24, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_pr_debug
Lloh2:
	adrp	x22, _ETH_ZLEN@GOTPAGE
Lloh3:
	ldr	x22, [x22, _ETH_ZLEN@GOTPAGEOFF]
	ldr	w1, [x22]
	cmp	w24, w1
	b.hs	LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_skb_padto
	cbnz	x0, LBB0_9
; %bb.2:
	ldr	w24, [x22]
LBB0_3:
	mov	x0, x19
	bl	_netif_stop_queue
	mov	w0, #0
	bl	_SelectPage
Lloh4:
	adrp	x8, _XIRCREG0_TRS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _XIRCREG0_TRS@GOTPAGEOFF]
Lloh6:
	ldr	x0, [x8]
	mov	w22, w24
	add	x1, x22, #2
	bl	_PutWord
Lloh7:
	adrp	x8, _XIRCREG0_TSO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _XIRCREG0_TSO@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_GetWord
	and	w25, w0, #0x7fff
	add	w24, w24, #2
	ldrsw	x1, [x19, #8]
Lloh10:
	adrp	x8, l_.str.3@PAGE
Lloh11:
	add	x8, x8, l_.str.3@PAGEOFF
Lloh12:
	adrp	x9, l_.str.2@PAGE
Lloh13:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w24, w25
	csel	x8, x9, x8, lo
	stp	x25, x8, [sp]
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
	cmp	w24, w25
	b.hs	LBB0_10
; %bb.4:
Lloh16:
	adrp	x24, _XIRCREG_EDP@GOTPAGE
Lloh17:
	ldr	x24, [x24, _XIRCREG_EDP@GOTPAGEOFF]
	ldr	x0, [x24]
	mov	x1, x22
	bl	_PutWord
	ldr	x8, [x24]
	add	x0, x8, x23
	ldr	x1, [x20, #8]
	ubfx	x2, x22, #1, #31
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_outsw
	tbz	w22, #0, LBB0_6
; %bb.5:
	ldr	x0, [x24]
	ldr	x8, [x20, #8]
	sub	w9, w22, #1
	ldr	w1, [x8, w9, uxtw #2]
	bl	_PutByte
LBB0_6:
	ldr	x8, [x21]
	cbz	x8, LBB0_8
; %bb.7:
Lloh18:
	adrp	x8, _XIRCREG_CR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _XIRCREG_CR@GOTPAGEOFF]
Lloh20:
	adrp	x9, _TransmitPacket@GOTPAGE
Lloh21:
	ldr	x9, [x9, _TransmitPacket@GOTPAGEOFF]
Lloh22:
	ldr	x0, [x8]
Lloh23:
	ldr	w8, [x9]
Lloh24:
	adrp	x9, _EnableIntr@GOTPAGE
Lloh25:
	ldr	x9, [x9, _EnableIntr@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_PutByte
LBB0_8:
	mov	x0, x20
	bl	_dev_kfree_skb
	ldr	w8, [x19, #4]
	add	w8, w8, w22
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_netif_start_queue
LBB0_9:
Lloh27:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh28:
	ldr	x8, [x8, _NETDEV_TX_OK@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh29:
	adrp	x8, _NETDEV_TX_BUSY@GOTPAGE
Lloh30:
	ldr	x8, [x8, _NETDEV_TX_BUSY@GOTPAGEOFF]
LBB0_11:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh22
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"do_start_xmit(skb=%p, dev=%p) len=%u\n"

	.comm	_ETH_ZLEN,4,2                   ; @ETH_ZLEN
	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.comm	_XIRCREG0_TRS,8,3               ; @XIRCREG0_TRS
	.comm	_XIRCREG0_TSO,4,2               ; @XIRCREG0_TSO
l_.str.1:                               ; @.str.1
	.asciz	"%s: avail. tx space=%u%s\n"

l_.str.2:                               ; @.str.2
	.asciz	" (okay)"

l_.str.3:                               ; @.str.3
	.asciz	" (not enough)"

	.comm	_NETDEV_TX_BUSY,4,2             ; @NETDEV_TX_BUSY
	.comm	_XIRCREG_EDP,8,3                ; @XIRCREG_EDP
	.comm	_XIRCREG_CR,8,3                 ; @XIRCREG_CR
	.comm	_TransmitPacket,4,2             ; @TransmitPacket
	.comm	_EnableIntr,4,2                 ; @EnableIntr
	.no_dead_strip	_do_start_xmit
.subsections_via_symbols
