	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smsc911x_hard_start_xmit
_smsc911x_hard_start_xmit:              ## @smsc911x_hard_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %r15
	movq	_TX_FIFO_INF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_smsc911x_reg_read
	movl	%eax, %r13d
	movq	_TX_FIFO_INF_TDFREE_@GOTPCREL(%rip), %rax
	andl	(%rax), %r13d
	movq	_TX_FIFO_LOW_THRESHOLD@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	(%rax), %r13d
	setb	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_tx_err@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	%r13d, %ecx
	callq	_SMSC_WARN
LBB0_2:
	movl	(%r12), %eax
	movl	8(%r12), %edx
	andl	$3, %edx
	shll	$16, %edx
	movq	_TX_CMD_A_FIRST_SEG_@GOTPCREL(%rip), %rcx
	movq	_TX_CMD_A_LAST_SEG_@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rcx), %esi
	orl	%eax, %edx
	orl	%esi, %edx
	movl	%eax, %ebx
	shll	$16, %ebx
	orl	%eax, %ebx
	movq	_TX_DATA_FIFO@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_smsc911x_reg_write
	movl	(%r14), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_smsc911x_reg_write
	movq	8(%r12), %rax
	movl	(%r12), %ecx
	movslq	%eax, %rsi
	andl	$3, %eax
	leal	(%rcx,%rax), %edx
	addl	$3, %edx
	sarl	$2, %edx
	movq	(%r15), %rax
	andq	$-4, %rsi
	movq	%r15, %rdi
	callq	*(%rax)
	subl	(%r12), %r13d
	addl	$-32, %r13d
	movq	%r12, %rdi
	callq	_skb_tx_timestamp
	movq	%r12, %rdi
	callq	_dev_consume_skb_any
	movq	%r15, %rdi
	callq	_smsc911x_tx_get_txstatcount
	xorl	%edi, %edi
	cmpl	$30, %eax
	setge	%dil
	callq	_unlikely
	testq	%rax, %rax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_smsc911x_tx_update_txcounters
LBB0_4:
	movq	_TX_FIFO_LOW_THRESHOLD@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jae	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_netif_stop_queue
	movq	_FIFO_INT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_smsc911x_reg_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$16777215, %eax                 ## imm = 0xFFFFFF
	leal	838860800(%rax), %edx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_smsc911x_reg_write
LBB0_6:
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TX_FIFO_INF,4,2                ## @TX_FIFO_INF
	.comm	_TX_FIFO_INF_TDFREE_,4,2        ## @TX_FIFO_INF_TDFREE_
	.comm	_TX_FIFO_LOW_THRESHOLD,4,2      ## @TX_FIFO_LOW_THRESHOLD
	.comm	_tx_err,4,2                     ## @tx_err
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Tx data fifo low, space available: %d"

	.comm	_TX_CMD_A_FIRST_SEG_,4,2        ## @TX_CMD_A_FIRST_SEG_
	.comm	_TX_CMD_A_LAST_SEG_,4,2         ## @TX_CMD_A_LAST_SEG_
	.comm	_TX_DATA_FIFO,4,2               ## @TX_DATA_FIFO
	.comm	_FIFO_INT,4,2                   ## @FIFO_INT
	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
	.no_dead_strip	_smsc911x_hard_start_xmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smsc911x_hard_start_xmit
_smsc911x_hard_start_xmit:              ; @smsc911x_hard_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	x20, x1
	mov	x21, x0
	mov	x0, x1
	bl	_netdev_priv
	mov	x19, x0
Lloh0:
	adrp	x8, _TX_FIFO_INF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TX_FIFO_INF@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_smsc911x_reg_read
Lloh3:
	adrp	x8, _TX_FIFO_INF_TDFREE_@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TX_FIFO_INF_TDFREE_@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w22, w8, w0
Lloh6:
	adrp	x24, _TX_FIFO_LOW_THRESHOLD@GOTPAGE
Lloh7:
	ldr	x24, [x24, _TX_FIFO_LOW_THRESHOLD@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w22, w8
	cset	w0, lo
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _tx_err@GOTPAGE
Lloh9:
	ldr	x8, [x8, _tx_err@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x22
	bl	_SMSC_WARN
LBB0_2:
	ldr	w8, [x21, #8]
	ubfiz	w8, w8, #16, #2
Lloh13:
	adrp	x9, _TX_CMD_A_FIRST_SEG_@GOTPAGE
Lloh14:
	ldr	x9, [x9, _TX_CMD_A_FIRST_SEG_@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
Lloh16:
	adrp	x10, _TX_CMD_A_LAST_SEG_@GOTPAGE
Lloh17:
	ldr	x10, [x10, _TX_CMD_A_LAST_SEG_@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	orr	w9, w10, w9
	orr	w8, w9, w8
	ldr	w9, [x21]
	orr	w2, w8, w9
	orr	w23, w9, w9, lsl #16
Lloh19:
	adrp	x25, _TX_DATA_FIFO@GOTPAGE
Lloh20:
	ldr	x25, [x25, _TX_DATA_FIFO@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x19
	bl	_smsc911x_reg_write
	ldr	w1, [x25]
	mov	x0, x19
	mov	x2, x23
	bl	_smsc911x_reg_write
	ldr	x8, [x21, #8]
	ldr	w9, [x21]
	and	w10, w8, #0x3
	add	w9, w9, w10
	add	w9, w9, #3
	asr	w2, w9, #2
	ldr	x9, [x19]
	ldr	x9, [x9]
	sxtw	x8, w8
	and	x1, x8, #0xfffffffffffffffc
	mov	x0, x19
	blr	x9
	ldr	w8, [x21]
	sub	w8, w22, w8
	sub	w22, w8, #32
	mov	x0, x21
	bl	_skb_tx_timestamp
	mov	x0, x21
	bl	_dev_consume_skb_any
	mov	x0, x19
	bl	_smsc911x_tx_get_txstatcount
	cmp	w0, #29
	cset	w0, gt
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_smsc911x_tx_update_txcounters
LBB0_4:
	ldr	w8, [x24]
	cmp	w22, w8
	b.hs	LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_netif_stop_queue
Lloh21:
	adrp	x20, _FIFO_INT@GOTPAGE
Lloh22:
	ldr	x20, [x20, _FIFO_INT@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_smsc911x_reg_read
	mov	w2, #838860800
	bfxil	w2, w0, #0, #24
	ldr	w1, [x20]
	mov	x0, x19
	bl	_smsc911x_reg_write
LBB0_6:
Lloh23:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _NETDEV_TX_OK@GOTPAGEOFF]
Lloh25:
	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
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_TX_FIFO_INF,4,2                ; @TX_FIFO_INF
	.comm	_TX_FIFO_INF_TDFREE_,4,2        ; @TX_FIFO_INF_TDFREE_
	.comm	_TX_FIFO_LOW_THRESHOLD,4,2      ; @TX_FIFO_LOW_THRESHOLD
	.comm	_tx_err,4,2                     ; @tx_err
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Tx data fifo low, space available: %d"

	.comm	_TX_CMD_A_FIRST_SEG_,4,2        ; @TX_CMD_A_FIRST_SEG_
	.comm	_TX_CMD_A_LAST_SEG_,4,2         ; @TX_CMD_A_LAST_SEG_
	.comm	_TX_DATA_FIFO,4,2               ; @TX_DATA_FIFO
	.comm	_FIFO_INT,4,2                   ; @FIFO_INT
	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.no_dead_strip	_smsc911x_hard_start_xmit
.subsections_via_symbols
