	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sja1105_port_deferred_xmit
_sja1105_port_deferred_xmit:            ## @sja1105_port_deferred_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	%rdx, %rbx
	movq	%rdi, %r14
	movq	8(%rdi), %r15
	movq	24(%r15), %rax
	movslq	%esi, %r12
	movq	$0, -56(%rbp)
	movl	(%rax,%r12,4), %r13d
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	_DSA_SKB_CB
	movq	(%rax), %rax
	xorl	%r8d, %r8d
	testq	%rax, %rax
	setne	%r8b
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movq	%rax, %r14
	movl	%r12d, %esi
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	movl	%r13d, %edx
	movq	%rbx, %rcx
	callq	_sja1105_mgmt_xmit
	testq	%r14, %r14
	je	LBB0_5
## %bb.1:
	movq	_SKBTX_IN_PROGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_skb_shinfo
	orl	%ebx, (%rax)
	leaq	4(%r15), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	leaq	16(%r15), %rdi
	callq	*16(%r15)
	movl	%eax, %ebx
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_sja1105_ptpegr_ts_poll
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movl	-44(%rbp), %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_sja1105_tstamp_reconstruct
	movl	%eax, -44(%rbp)
	leaq	8(%r15), %rdi
	movl	%eax, %esi
	callq	_timecounter_cyc2time
	movl	%eax, -44(%rbp)
	movl	%eax, %edi
	callq	_ns_to_ktime
	movl	%eax, -56(%rbp)
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	callq	_skb_complete_tx_timestamp
	jmp	LBB0_4
LBB0_2:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	%r14, %rdi
	callq	_kfree_skb
LBB0_4:
	movq	%r12, %rdi
	callq	_mutex_unlock
LBB0_5:
	movq	%r15, %rdi
	callq	_mutex_unlock
	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	_SKBTX_IN_PROGRESS,4,2          ## @SKBTX_IN_PROGRESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"xmit: timed out polling for tstamp\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sja1105_port_deferred_xmit
_sja1105_port_deferred_xmit:            ; @sja1105_port_deferred_xmit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x2
	mov	x24, x1
	mov	x22, x0
	ldr	x19, [x0, #8]
	ldr	x8, [x19, #24]
	str	xzr, [sp, #8]
	ldr	w23, [x8, w1, sxtw #2]
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x21
	bl	_DSA_SKB_CB
	ldr	x20, [x0]
	cmp	x20, #0
	cset	w4, ne
	mov	x0, x22
	mov	x1, x24
	mov	x2, x23
	mov	x3, x21
	bl	_sja1105_mgmt_xmit
	cbz	x20, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _SKBTX_IN_PROGRESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SKBTX_IN_PROGRESS@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_skb_shinfo
	ldr	w8, [x0]
	orr	w8, w8, w21
	str	w8, [x0]
	add	x21, x19, #4
	mov	x0, x21
	bl	_mutex_lock
	mov	x0, x19
	ldr	x8, [x0, #16]!
	blr	x8
	mov	x24, x0
	add	x2, sp, #4
	mov	x0, x19
	mov	x1, x23
	bl	_sja1105_ptpegr_ts_poll
	tbnz	w0, #31, LBB0_3
; %bb.2:
	ldr	w2, [sp, #4]
	mov	x0, x19
	mov	x1, x24
	bl	_sja1105_tstamp_reconstruct
	mov	x1, x0
	str	w0, [sp, #4]
	add	x0, x19, #8
	bl	_timecounter_cyc2time
	str	w0, [sp, #4]
	bl	_ns_to_ktime
	str	w0, [sp, #8]
	add	x1, sp, #8
	mov	x0, x20
	bl	_skb_complete_tx_timestamp
	b	LBB0_4
LBB0_3:
	ldr	w0, [x22]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	mov	x0, x20
	bl	_kfree_skb
LBB0_4:
	mov	x0, x21
	bl	_mutex_unlock
LBB0_5:
	mov	x0, x19
	bl	_mutex_unlock
Lloh5:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NETDEV_TX_OK@GOTPAGEOFF]
Lloh7:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SKBTX_IN_PROGRESS,4,2          ; @SKBTX_IN_PROGRESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"xmit: timed out polling for tstamp\n"

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