	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pdc_ring_init
_pdc_ring_init:                         ## @pdc_ring_init
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r13
	movq	128(%rdi), %r15
	movl	12(%rdi), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-56(%rbp), %rdx
	callq	_dma_pool_zalloc
	movq	%rax, -48(%rbp)
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	negl	%ebx
	jmp	LBB0_13
LBB0_3:
	movl	12(%r13), %edi
	movl	(%rbx), %esi
	leaq	-72(%rbp), %rdx
	callq	_dma_pool_zalloc
	movq	%rax, -64(%rbp)
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	12(%r13), %edi
	movq	-48(%rbp), %rsi
	movl	-56(%rbp), %edx
	callq	_dma_pool_free
	negl	%ebx
	jmp	LBB0_13
LBB0_5:
	leaq	L_.str(%rip), %rsi
	leaq	-56(%rbp), %r12
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_dev_dbg
	movq	-48(%rbp), %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_dbg
	leaq	L_.str.2(%rip), %rsi
	leaq	-72(%rbp), %rbx
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_dev_dbg
	movq	-64(%rbp), %rdx
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_dbg
	leaq	48(%r13), %rdi
	movq	%r12, %rsi
	movl	$16, %edx
	callq	_memcpy
	leaq	32(%r13), %rdi
	movq	%rbx, %rsi
	movl	$16, %edx
	callq	_memcpy
	xorps	%xmm0, %xmm0
	movups	%xmm0, 72(%r13)
	movups	%xmm0, 88(%r13)
	movups	%xmm0, 104(%r13)
	movq	$0, 120(%r13)
	movq	40(%r13), %rax
	movq	56(%r13), %rcx
	movq	%rcx, 24(%r13)
	movq	%rax, 16(%r13)
	movq	64(%r13), %rax
	movq	(%rax), %r12
	movslq	%r14d, %rbx
	movq	_PDC_TX_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	shlq	$5, %rbx
	leaq	(%r12,%rbx), %r14
	leaq	(%r12,%rbx), %r15
	addq	$16, %r15
	movq	%r15, %rsi
	callq	_iowrite32
	movq	_PDC_RX_CTL@GOTPCREL(%rip), %rax
	movl	(%r13), %edi
	addl	%edi, %edi
	addl	(%rax), %edi
	movq	%r14, %rsi
	callq	_iowrite32
	leaq	(%r12,%rbx), %rsi
	addq	$28, %rsi
	xorl	%edi, %edi
	callq	_iowrite32
	leaq	(%r12,%rbx), %rsi
	addq	$12, %rsi
	xorl	%edi, %edi
	callq	_iowrite32
	movl	48(%r13), %edi
	callq	_lower_32_bits
	leaq	(%r12,%rbx), %rsi
	addq	$24, %rsi
	movl	%eax, %edi
	callq	_iowrite32
	movl	48(%r13), %edi
	callq	_upper_32_bits
	leaq	(%r12,%rbx), %rsi
	addq	$20, %rsi
	movl	%eax, %edi
	callq	_iowrite32
	movl	32(%r13), %edi
	callq	_lower_32_bits
	leaq	(%r12,%rbx), %rsi
	addq	$8, %rsi
	movl	%eax, %edi
	callq	_iowrite32
	movl	32(%r13), %edi
	callq	_upper_32_bits
	leaq	(%r12,%rbx), %rsi
	addq	$4, %rsi
	movl	%eax, %edi
	callq	_iowrite32
	movq	_PDC_TX_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PDC_TX_CTL@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	%r15, %rsi
	callq	_iowrite32
	movq	_PDC_RX_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_PDC_RX_CTL@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r13), %edi
	addl	%edi, %edi
	orl	%eax, %edi
	movq	%r14, %rsi
	callq	_iowrite32
	movq	_PDC_RING_ENTRIES@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_12
## %bb.6:
	xorl	%ebx, %ebx
	movq	_D64_CTRL1_SOF@GOTPCREL(%rip), %r15
	movq	_D64_CTRL1_EOT@GOTPCREL(%rip), %r14
	xorl	%r12d, %r12d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	orl	(%r15), %edi
	movq	16(%r13), %rsi
	addq	%rbx, %rsi
	callq	_iowrite32
	incq	%r12
	movq	_PDC_RING_ENTRIES@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$4, %rbx
	cmpq	%rax, %r12
	jge	LBB0_12
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r13), %ecx
	movq	_D64_CTRL1_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	orl	(%r15), %edi
	movl	$0, %eax
	cmpq	%rcx, %r12
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r14), %eax
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	orl	%eax, %edi
	movq	24(%r13), %rsi
	addq	%rbx, %rsi
	callq	_iowrite32
	movl	8(%r13), %eax
	movl	$0, %edi
	cmpq	%rax, %r12
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r14), %edi
	jmp	LBB0_11
LBB0_12:
	movq	_PDC_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PDC_SUCCESS,4,2                ## @PDC_SUCCESS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" - base DMA addr of tx ring      %pad"

L_.str.1:                               ## @.str.1
	.asciz	" - base virtual addr of tx ring  %p"

L_.str.2:                               ## @.str.2
	.asciz	" - base DMA addr of rx ring      %pad"

L_.str.3:                               ## @.str.3
	.asciz	" - base virtual addr of rx ring  %p"

	.comm	_PDC_TX_CTL,4,2                 ## @PDC_TX_CTL
	.comm	_PDC_RX_CTL,4,2                 ## @PDC_RX_CTL
	.comm	_PDC_TX_ENABLE,4,2              ## @PDC_TX_ENABLE
	.comm	_PDC_RX_ENABLE,4,2              ## @PDC_RX_ENABLE
	.comm	_PDC_RING_ENTRIES,4,2           ## @PDC_RING_ENTRIES
	.comm	_D64_CTRL1_SOF,4,2              ## @D64_CTRL1_SOF
	.comm	_D64_CTRL1_EOF,4,2              ## @D64_CTRL1_EOF
	.comm	_D64_CTRL1_EOT,4,2              ## @D64_CTRL1_EOT
	.no_dead_strip	_pdc_ring_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pdc_ring_init
_pdc_ring_init:                         ; @pdc_ring_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x0
	ldr	x21, [x0, #128]
	ldr	w0, [x0, #12]
Lloh0:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x2, sp, #16
	bl	_dma_pool_zalloc
	str	x0, [sp, #24]
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w20, [x8]
	neg	w0, w20
	b	LBB0_8
LBB0_2:
	ldr	w0, [x19, #12]
	ldr	w1, [x22]
	mov	x2, sp
	bl	_dma_pool_zalloc
	str	x0, [sp, #8]
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w20, [x8]
	ldr	w0, [x19, #12]
	ldr	x1, [sp, #24]
	ldr	w2, [sp, #16]
	bl	_dma_pool_free
	neg	w0, w20
	b	LBB0_8
LBB0_4:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #16
	mov	x0, x21
	bl	_dev_dbg
	ldr	x2, [sp, #24]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, sp
	mov	x0, x21
	bl	_dev_dbg
	ldr	x2, [sp, #8]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
	add	x0, x19, #48
	add	x1, sp, #16
	mov	w2, #16
	bl	_memcpy
	add	x0, x19, #32
	mov	x1, sp
	mov	w2, #16
	bl	_memcpy
	movi.2d	v0, #0000000000000000
	stur	q0, [x19, #72]
	stur	q0, [x19, #88]
	stur	q0, [x19, #104]
	str	xzr, [x19, #120]
	ldr	x8, [x19, #40]
	ldp	x9, x10, [x19, #56]
	stp	x8, x9, [x19, #16]
	ldr	x8, [x10]
	sxtw	x9, w20
Lloh16:
	adrp	x22, _PDC_TX_CTL@GOTPAGE
Lloh17:
	ldr	x22, [x22, _PDC_TX_CTL@GOTPAGEOFF]
	ldr	w0, [x22]
	add	x20, x8, x9, lsl #5
	add	x21, x20, #16
	mov	x1, x21
	bl	_iowrite32
Lloh18:
	adrp	x23, _PDC_RX_CTL@GOTPAGE
Lloh19:
	ldr	x23, [x23, _PDC_RX_CTL@GOTPAGEOFF]
	ldr	w8, [x23]
	ldr	w9, [x19]
	add	w0, w8, w9, lsl #1
	mov	x1, x20
	bl	_iowrite32
	add	x1, x20, #28
	mov	w0, #0
	bl	_iowrite32
	add	x1, x20, #12
	mov	w0, #0
	bl	_iowrite32
	ldr	w0, [x19, #48]
	bl	_lower_32_bits
	add	x1, x20, #24
	bl	_iowrite32
	ldr	w0, [x19, #48]
	bl	_upper_32_bits
	add	x1, x20, #20
	bl	_iowrite32
	ldr	w0, [x19, #32]
	bl	_lower_32_bits
	add	x1, x20, #8
	bl	_iowrite32
	ldr	w0, [x19, #32]
	bl	_upper_32_bits
	add	x1, x20, #4
	bl	_iowrite32
	ldr	w8, [x22]
Lloh20:
	adrp	x9, _PDC_TX_ENABLE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _PDC_TX_ENABLE@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w0, w9, w8
	mov	x1, x21
	bl	_iowrite32
	ldr	w8, [x23]
Lloh23:
	adrp	x9, _PDC_RX_ENABLE@GOTPAGE
Lloh24:
	ldr	x9, [x9, _PDC_RX_ENABLE@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x19]
	orr	w0, w8, w9, lsl #1
	mov	x1, x20
	bl	_iowrite32
Lloh26:
	adrp	x20, _PDC_RING_ENTRIES@GOTPAGE
Lloh27:
	ldr	x20, [x20, _PDC_RING_ENTRIES@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x21, #0
	mov	x22, #0
Lloh28:
	adrp	x23, _D64_CTRL1_SOF@GOTPAGE
Lloh29:
	ldr	x23, [x23, _D64_CTRL1_SOF@GOTPAGEOFF]
Lloh30:
	adrp	x24, _D64_CTRL1_EOF@GOTPAGE
Lloh31:
	ldr	x24, [x24, _D64_CTRL1_EOF@GOTPAGEOFF]
Lloh32:
	adrp	x25, _D64_CTRL1_EOT@GOTPAGE
Lloh33:
	ldr	x25, [x25, _D64_CTRL1_EOT@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19, #4]
	ldr	w9, [x23]
	ldr	w10, [x24]
	orr	w9, w10, w9
	ldr	w10, [x25]
	cmp	x22, x8
	csel	w8, w10, wzr, eq
	orr	w0, w9, w8
	ldr	x8, [x19, #24]
	add	x1, x8, x21
	bl	_iowrite32
	ldr	w8, [x19, #8]
	ldr	w9, [x23]
	ldr	w10, [x25]
	cmp	x22, x8
	csel	w8, w10, wzr, eq
	orr	w0, w9, w8
	ldr	x8, [x19, #16]
	add	x1, x8, x21
	bl	_iowrite32
	add	x22, x22, #1
	ldrsw	x8, [x20]
	add	x21, x21, #4
	cmp	x22, x8
	b.lt	LBB0_6
LBB0_7:
Lloh34:
	adrp	x8, _PDC_SUCCESS@GOTPAGE
Lloh35:
	ldr	x8, [x8, _PDC_SUCCESS@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
LBB0_8:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_PDC_SUCCESS,4,2                ; @PDC_SUCCESS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" - base DMA addr of tx ring      %pad"

l_.str.1:                               ; @.str.1
	.asciz	" - base virtual addr of tx ring  %p"

l_.str.2:                               ; @.str.2
	.asciz	" - base DMA addr of rx ring      %pad"

l_.str.3:                               ; @.str.3
	.asciz	" - base virtual addr of rx ring  %p"

	.comm	_PDC_TX_CTL,4,2                 ; @PDC_TX_CTL
	.comm	_PDC_RX_CTL,4,2                 ; @PDC_RX_CTL
	.comm	_PDC_TX_ENABLE,4,2              ; @PDC_TX_ENABLE
	.comm	_PDC_RX_ENABLE,4,2              ; @PDC_RX_ENABLE
	.comm	_PDC_RING_ENTRIES,4,2           ; @PDC_RING_ENTRIES
	.comm	_D64_CTRL1_SOF,4,2              ; @D64_CTRL1_SOF
	.comm	_D64_CTRL1_EOF,4,2              ; @D64_CTRL1_EOF
	.comm	_D64_CTRL1_EOT,4,2              ; @D64_CTRL1_EOT
	.no_dead_strip	_pdc_ring_init
.subsections_via_symbols
