	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pdc_hw_init
_pdc_hw_init:                           ## @pdc_hw_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_PDC_RINGSET@GOTPCREL(%rip), %rax
	movslq	(%rax), %r15
	movq	80(%rdi), %rdx
	movq	88(%rdi), %r14
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_dev_dbg
	movq	16(%rbx), %rdx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
	movq	16(%rbx), %rsi
	movq	%rsi, 24(%rbx)
	movq	_PDC_TXREGS_OFFSET@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%rsi,%rax,4), %rax
	shlq	$7, %r15
	leaq	(%r15,%r15,2), %r12
	leaq	(%rax,%r12,4), %rax
	movq	%rax, 72(%rbx)
	movq	_PDC_RXREGS_OFFSET@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%rsi,%rax,4), %rax
	leaq	(%rax,%r12,4), %rax
	movq	%rax, 64(%rbx)
	movq	_PDC_RING_ENTRIES@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 56(%rbx)
	movq	%rax, 48(%rbx)
	decq	%rax
	movq	%rax, 40(%rbx)
	movq	%rax, 32(%rbx)
	addq	$8, %rsi
	xorl	%edi, %edi
	callq	_iowrite32
	movq	24(%rbx), %rax
	movq	(%rax), %r13
	movq	_PDC_TX_CTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	leaq	(%r12,%r13), %r14
	leaq	(%r12,%r13), %r15
	addq	$192, %r15
	leaq	(%r12,%r13), %rsi
	addq	$288, %rsi                      ## imm = 0x120
	callq	_iowrite32
	movq	_PDC_RX_CTL@GOTPCREL(%rip), %rax
	movl	(%rbx), %ecx
	addl	%ecx, %ecx
	movslq	%ecx, %rdi
	addq	(%rax), %rdi
	leaq	(%r12,%r13), %rsi
	addq	$96, %rsi
	callq	_iowrite32
	xorl	%edi, %edi
	movq	%r15, %rsi
	callq	_iowrite32
	xorl	%edi, %edi
	movq	%r14, %rsi
	callq	_iowrite32
	movq	8(%rbx), %rax
	movq	_PDC_SPU2_RESP_HDR_LEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	_PDC_CKSUM_CTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_PDC_CKSUM_CTRL_OFFSET@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%rax,%rax,2), %rsi
	shlq	$5, %rsi
	addq	16(%rbx), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iowrite32                      ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PDC_RINGSET,4,2                ## @PDC_RINGSET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PDC %u initial values:"

L_.str.1:                               ## @.str.1
	.asciz	"state structure:                   %p"

L_.str.2:                               ## @.str.2
	.asciz	" - base virtual addr of hw regs    %p"

	.comm	_PDC_TXREGS_OFFSET,4,2          ## @PDC_TXREGS_OFFSET
	.comm	_PDC_RXREGS_OFFSET,4,2          ## @PDC_RXREGS_OFFSET
	.comm	_PDC_RING_ENTRIES,8,3           ## @PDC_RING_ENTRIES
	.comm	_PDC_TX_CTL,8,3                 ## @PDC_TX_CTL
	.comm	_PDC_RX_CTL,8,3                 ## @PDC_RX_CTL
	.comm	_PDC_SPU2_RESP_HDR_LEN,8,3      ## @PDC_SPU2_RESP_HDR_LEN
	.comm	_PDC_CKSUM_CTRL,8,3             ## @PDC_CKSUM_CTRL
	.comm	_PDC_CKSUM_CTRL_OFFSET,4,2      ## @PDC_CKSUM_CTRL_OFFSET
	.no_dead_strip	_pdc_hw_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pdc_hw_init
_pdc_hw_init:                           ; @pdc_hw_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _PDC_RINGSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PDC_RINGSET@GOTPAGEOFF]
Lloh2:
	ldrsw	x21, [x8]
	ldp	x2, x20, [x0, #80]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_dev_dbg
	ldr	x2, [x19, #16]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	ldr	x8, [x19, #16]
Lloh9:
	adrp	x9, _PDC_TXREGS_OFFSET@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PDC_TXREGS_OFFSET@GOTPAGEOFF]
Lloh11:
	ldrsw	x9, [x9]
	add	x9, x8, x9, lsl #2
	add	x20, x21, x21, lsl #1
	lsl	x10, x20, #9
	add	x9, x9, x10
	str	x9, [x19, #72]
Lloh12:
	adrp	x9, _PDC_RXREGS_OFFSET@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PDC_RXREGS_OFFSET@GOTPAGEOFF]
Lloh14:
	ldrsw	x9, [x9]
	add	x9, x8, x9, lsl #2
	add	x9, x9, x10
Lloh15:
	adrp	x10, _PDC_RING_ENTRIES@GOTPAGE
Lloh16:
	ldr	x10, [x10, _PDC_RING_ENTRIES@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	stp	x10, x9, [x19, #56]
	sub	x9, x10, #1
	stp	x9, x10, [x19, #40]
	stp	x8, x9, [x19, #24]
	add	x1, x8, #8
	mov	x0, #0
	bl	_iowrite32
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
Lloh18:
	adrp	x9, _PDC_TX_CTL@GOTPAGE
Lloh19:
	ldr	x9, [x9, _PDC_TX_CTL@GOTPAGEOFF]
Lloh20:
	ldr	x0, [x9]
	add	x20, x8, x20, lsl #7
	add	x21, x20, #192
	add	x1, x20, #288
	bl	_iowrite32
Lloh21:
	adrp	x8, _PDC_RX_CTL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PDC_RX_CTL@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	ldr	w9, [x19]
	lsl	w9, w9, #1
	add	x0, x8, w9, sxtw
	add	x1, x20, #96
	bl	_iowrite32
	mov	x0, #0
	mov	x1, x21
	bl	_iowrite32
	mov	x0, #0
	mov	x1, x20
	bl	_iowrite32
	ldr	x8, [x19, #8]
Lloh24:
	adrp	x9, _PDC_SPU2_RESP_HDR_LEN@GOTPAGE
Lloh25:
	ldr	x9, [x9, _PDC_SPU2_RESP_HDR_LEN@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh27:
	adrp	x8, _PDC_CKSUM_CTRL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _PDC_CKSUM_CTRL@GOTPAGEOFF]
Lloh29:
	ldr	x0, [x8]
Lloh30:
	adrp	x8, _PDC_CKSUM_CTRL_OFFSET@GOTPAGE
Lloh31:
	ldr	x8, [x8, _PDC_CKSUM_CTRL_OFFSET@GOTPAGEOFF]
	ldr	x9, [x19, #16]
Lloh32:
	ldrsw	x8, [x8]
	mov	w10, #96
	madd	x1, x8, x10, x9
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_iowrite32
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_PDC_RINGSET,4,2                ; @PDC_RINGSET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PDC %u initial values:"

l_.str.1:                               ; @.str.1
	.asciz	"state structure:                   %p"

l_.str.2:                               ; @.str.2
	.asciz	" - base virtual addr of hw regs    %p"

	.comm	_PDC_TXREGS_OFFSET,4,2          ; @PDC_TXREGS_OFFSET
	.comm	_PDC_RXREGS_OFFSET,4,2          ; @PDC_RXREGS_OFFSET
	.comm	_PDC_RING_ENTRIES,8,3           ; @PDC_RING_ENTRIES
	.comm	_PDC_TX_CTL,8,3                 ; @PDC_TX_CTL
	.comm	_PDC_RX_CTL,8,3                 ; @PDC_RX_CTL
	.comm	_PDC_SPU2_RESP_HDR_LEN,8,3      ; @PDC_SPU2_RESP_HDR_LEN
	.comm	_PDC_CKSUM_CTRL,8,3             ; @PDC_CKSUM_CTRL
	.comm	_PDC_CKSUM_CTRL_OFFSET,4,2      ; @PDC_CKSUM_CTRL_OFFSET
	.no_dead_strip	_pdc_hw_init
.subsections_via_symbols
