	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p54p_tx
_p54p_tx:                               ## @p54p_tx
	.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, %r14
	movq	%rdi, %r12
	movq	(%rdi), %r15
	movq	24(%r15), %rbx
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	(%rbx), %rax
	movq	8(%rax), %rdi
	callq	_le32_to_cpu
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %rdi
	callq	_ARRAY_SIZE
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	16(%r15), %rdi
	movq	8(%r14), %rsi
	movl	(%r14), %edx
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_pci_map_single
	movq	%rax, %r13
	movq	16(%r15), %rdi
	movq	%rax, %rsi
	callq	_pci_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_p54_free_skb
	movq	16(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_1:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, %rax
	orq	-48(%rbp), %rax                 ## 8-byte Folded Reload
	shrq	$32, %rax
	je	LBB0_2
## %bb.3:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_4
LBB0_2:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_4:
	movq	8(%r15), %rax
	movq	%r14, (%rax,%rdx,8)
	movq	8(%rbx), %r12
	movq	%r13, %rdi
	movq	%rdx, %r13
	callq	_cpu_to_le32
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leaq	(,%r13,2), %rbx
	addq	%r13, %rbx
	movq	%rax, 16(%r12,%rbx,8)
	movq	8(%r14), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12,%rbx,8)
	movl	(%r14), %edi
	callq	_cpu_to_le16
	movl	%eax, 4(%r12,%rbx,8)
	movl	$0, (%r12,%rbx,8)
	xorl	%eax, %eax
	callq	_wmb
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	incq	%rdi
	callq	_cpu_to_le32
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	%rax, 8(%rcx)
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	_dev_int@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	movq	_ISL38XX_DEV_INT_UPDATE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_cpu_to_le32
	movl	%ebx, %edi
	movq	%rax, %rsi
	callq	_P54P_WRITE
	movl	(%r14), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_P54P_READ                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TX DMA mapping error\n"

	.comm	_dev_int,4,2                    ## @dev_int
	.comm	_ISL38XX_DEV_INT_UPDATE,8,3     ## @ISL38XX_DEV_INT_UPDATE
	.no_dead_strip	_p54p_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function p54p_tx
_p54p_tx:                               ; @p54p_tx
	.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	x22, x0
	ldr	x19, [x0]
	ldr	x25, [x19, #24]
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x25]
	ldr	x0, [x8, #8]
	bl	_le32_to_cpu
	mov	x21, x0
	ldr	x0, [x25, #8]
	bl	_ARRAY_SIZE
	mov	x23, x0
	ldr	x0, [x19, #16]
	ldr	x1, [x20, #8]
	ldr	w2, [x20]
Lloh0:
	adrp	x8, _PCI_DMA_TODEVICE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_DMA_TODEVICE@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	bl	_pci_map_single
	mov	x24, x0
	ldr	x0, [x19, #16]
	mov	x1, x24
	bl	_pci_dma_mapping_error
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x22
	mov	x1, x20
	bl	_p54_free_skb
	ldr	x0, [x19, #16]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	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
	b	_dev_err
LBB0_2:
	udiv	x8, x21, x23
	msub	x22, x8, x23, x21
	ldr	x8, [x19, #8]
	str	x20, [x8, x22, lsl #3]
	ldr	x23, [x25, #8]
	mov	x0, x24
	bl	_cpu_to_le32
	mov	w8, #24
	madd	x22, x22, x8, x23
	str	x0, [x22, #16]
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	str	w8, [x22, #8]
	ldr	w0, [x20]
	bl	_cpu_to_le16
	stp	wzr, w0, [x22]
	bl	_wmb
	add	x0, x21, #1
	bl	_cpu_to_le32
	ldr	x8, [x25]
	str	x0, [x8, #8]
	mov	x0, x19
	bl	_spin_unlock_irqrestore
Lloh5:
	adrp	x20, _dev_int@GOTPAGE
Lloh6:
	ldr	x20, [x20, _dev_int@GOTPAGEOFF]
	ldr	w19, [x20]
Lloh7:
	adrp	x8, _ISL38XX_DEV_INT_UPDATE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ISL38XX_DEV_INT_UPDATE@GOTPAGEOFF]
Lloh9:
	ldr	x0, [x8]
	bl	_cpu_to_le32
	mov	x1, x0
	mov	x0, x19
	bl	_P54P_WRITE
	ldr	w0, [x20]
	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
	b	_P54P_READ
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TX DMA mapping error\n"

	.comm	_dev_int,4,2                    ; @dev_int
	.comm	_ISL38XX_DEV_INT_UPDATE,8,3     ; @ISL38XX_DEV_INT_UPDATE
	.no_dead_strip	_p54p_tx
.subsections_via_symbols
