	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qcauart_netdev_xmit
_qcauart_netdev_xmit:                   ## @qcauart_netdev_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	%rsi, %r14
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %r13
	leaq	24(%rax), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock
	movl	(%r13), %edi
	callq	_WARN_ON
	movq	%r14, %rdi
	callq	_netif_running
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	8(%r13), %r12
	movq	(%r15), %rsi
	movq	_QCAFRM_MIN_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%ebx, %ebx
	subq	%rsi, %rax
	cmovgq	%rax, %rbx
	addq	%rbx, %rsi
	movq	%r12, %rdi
	callq	_qcafrm_create_header
	cltq
	leaq	(%r12,%rax,8), %r12
	movl	8(%r15), %esi
	movq	(%r15), %rdx
	movq	%r12, %rdi
	callq	_memcpy
	movq	(%r15), %rax
	leaq	(%r12,%rax,8), %r12
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_memset
	leaq	(%r12,%rbx,8), %r12
LBB0_4:
	movq	%r12, %rdi
	callq	_qcafrm_create_footer
	cltq
	leaq	(%r12,%rax,8), %rbx
	movl	32(%r13), %edi
	callq	_netif_stop_queue
	movl	28(%r13), %edi
	movq	8(%r13), %rsi
	movq	%rbx, %rdx
	subq	%rsi, %rdx
	shrq	$3, %rdx
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_serdev_device_write_buf
	testl	%eax, %eax
	jle	LBB0_6
## %bb.5:
	movq	8(%r13), %rcx
	subq	%rcx, %rbx
	shrq	$3, %rbx
	movl	%eax, %edx
	subl	%eax, %ebx
	movl	%ebx, (%r13)
	leaq	(%rcx,%rdx,8), %rcx
	movq	%rcx, 16(%r13)
	addl	%eax, (%r14)
LBB0_6:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock
	movq	%r14, %rdi
	callq	_netif_trans_update
	jmp	LBB0_7
LBB0_1:
	movq	%rbx, %rdi
	callq	_spin_unlock
	movl	32(%r13), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_warn
LBB0_7:
	movq	%r15, %rdi
	callq	_dev_kfree_skb_any
	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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"xmit: iface is down\n"

	.comm	_QCAFRM_MIN_LEN,8,3             ## @QCAFRM_MIN_LEN
	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
	.no_dead_strip	_qcauart_netdev_xmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qcauart_netdev_xmit
_qcauart_netdev_xmit:                   ; @qcauart_netdev_xmit
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_netdev_priv
	mov	x22, x0
	add	x21, x0, #24
	mov	x0, x21
	bl	_spin_lock
	ldr	w0, [x22]
	bl	_WARN_ON
	mov	x0, x20
	bl	_netif_running
	cbz	w0, LBB0_6
; %bb.1:
	ldr	x24, [x22, #8]
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _QCAFRM_MIN_LEN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QCAFRM_MIN_LEN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	subs	x9, x9, x8
	csel	x23, x9, xzr, gt
	add	x1, x23, x8
	mov	x0, x24
	bl	_qcafrm_create_header
	add	x24, x24, w0, sxtw #3
	ldr	w1, [x19, #8]
	ldr	x2, [x19]
	mov	x0, x24
	bl	_memcpy
	ldr	x8, [x19]
	add	x24, x24, x8, lsl #3
	cbz	x23, LBB0_3
; %bb.2:
	mov	x0, x24
	mov	w1, #0
	mov	x2, x23
	bl	_memset
	add	x24, x24, x23, lsl #3
LBB0_3:
	mov	x0, x24
	bl	_qcafrm_create_footer
	add	x23, x24, w0, sxtw #3
	ldr	w0, [x22, #32]
	bl	_netif_stop_queue
	ldr	w0, [x22, #28]
	ldr	x1, [x22, #8]
	sub	x8, x23, x1
	lsr	x2, x8, #3
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_serdev_device_write_buf
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.4:
	ldr	x8, [x22, #8]
	sub	x9, x23, x8
	lsr	x9, x9, #3
	sub	w9, w9, w0
	str	w9, [x22]
	add	x8, x8, w0, uxtw #3
	str	x8, [x22, #16]
	ldr	w8, [x20]
	add	w8, w8, w0
	str	w8, [x20]
LBB0_5:
	mov	x0, x21
	bl	_spin_unlock
	mov	x0, x20
	bl	_netif_trans_update
	b	LBB0_7
LBB0_6:
	mov	x0, x21
	bl	_spin_unlock
	ldr	w0, [x22, #32]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_warn
LBB0_7:
	mov	x0, x19
	bl	_dev_kfree_skb_any
Lloh5:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NETDEV_TX_OK@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"xmit: iface is down\n"

	.comm	_QCAFRM_MIN_LEN,8,3             ; @QCAFRM_MIN_LEN
	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.no_dead_strip	_qcauart_netdev_xmit
.subsections_via_symbols
