	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pdc_probe
_pdc_probe:                             ## @pdc_probe
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r14
	movq	%r15, 24(%rax)
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	movq	_pdcg@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, 16(%r14)
	incl	%ecx
	movl	%ecx, (%rax)
	movl	$39, %edi
	callq	_DMA_BIT_MASK
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_dma_set_mask_and_coherent
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_dev_warn
	jmp	LBB0_9
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_8:
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_4:
	movq	_PDC_RING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_RING_ALIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	movq	%r15, %rsi
	xorl	%r8d, %r8d
	callq	_dma_pool_create
	movl	%eax, (%r14)
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_pdc_dt_read
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_10
LBB0_6:
	movl	(%r14), %edi
	callq	_dma_pool_destroy
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_10:
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movq	%rax, %r12
	movq	%rax, %rdx
	addq	$4, %rdx
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_devm_ioremap_resource
	movl	%eax, 12(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	movl	12(%r14), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_6
LBB0_13:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_14:
	movq	%r14, %rdi
	callq	_pdc_rx_buf_pool_create
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.15:
	movq	%r14, %rdi
	callq	_pdc_hw_init
	movq	%r14, %r12
	addq	$8, %r12
	movq	_pdc_tasklet_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%r14, %rdx
	callq	_tasklet_init
	movq	%r14, %rdi
	callq	_pdc_interrupts_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.16:
	movq	%r14, %rdi
	callq	_pdc_mb_init
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_18
LBB0_17:
	movq	%r12, %rdi
	callq	_tasklet_kill
	movl	4(%r14), %edi
	callq	_dma_pool_destroy
	jmp	LBB0_6
LBB0_18:
	movq	%r14, %rdi
	callq	_pdc_setup_debugfs
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_PDC_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_pdcg,4,2                       ## @pdcg
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PDC device cannot perform DMA. Error %d."

L_.str.1:                               ## @.str.1
	.asciz	"pdc rings"

	.comm	_PDC_RING_SIZE,4,2              ## @PDC_RING_SIZE
	.comm	_RING_ALIGN,4,2                 ## @RING_ALIGN
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.2:                               ## @.str.2
	.asciz	"PDC register region res.start = %pa, res.end = %pa"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to map registers: %d\n"

	.comm	_pdc_tasklet_cb,4,2             ## @pdc_tasklet_cb
L_.str.4:                               ## @.str.4
	.asciz	"pdc_probe() successful"

	.comm	_PDC_SUCCESS,4,2                ## @PDC_SUCCESS
	.no_dead_strip	_pdc_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pdc_probe
_pdc_probe:                             ; @pdc_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	str	x20, [x0, #24]
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
Lloh3:
	adrp	x8, _pdcg@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pdcg@GOTPAGEOFF]
	ldr	w9, [x8]
	str	w9, [x19, #16]
	add	w9, w9, #1
	str	w9, [x8]
	mov	w0, #39
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x20
	bl	_dma_set_mask_and_coherent
	cbz	w0, LBB0_3
; %bb.2:
	mov	x21, x0
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_dev_warn
	b	LBB0_7
LBB0_3:
Lloh7:
	adrp	x8, _PDC_RING_SIZE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PDC_RING_SIZE@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
Lloh10:
	adrp	x8, _RING_ALIGN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RING_ALIGN@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	mov	w4, #0
	bl	_dma_pool_create
	str	w0, [x19]
	cbz	w0, LBB0_6
; %bb.4:
	mov	x0, x20
	mov	x1, x19
	bl	_pdc_dt_read
	mov	x21, x0
	cbz	w0, LBB0_8
LBB0_5:
	ldr	w0, [x19]
	bl	_dma_pool_destroy
	b	LBB0_7
LBB0_6:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_7:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
LBB0_8:
Lloh18:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_11
; %bb.9:
	mov	x21, x0
	add	x8, x0, #4
	stp	x8, x0, [sp]
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	mov	x0, x20
	mov	x1, x21
	bl	_devm_ioremap_resource
	str	w0, [x19, #12]
	bl	_IS_ERR
	cbz	x0, LBB0_12
; %bb.10:
	ldr	w0, [x19, #12]
	bl	_PTR_ERR
	mov	x21, x0
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_dev_err
	b	LBB0_5
LBB0_11:
Lloh25:
	adrp	x8, _ENODEV@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_5
LBB0_12:
	mov	x0, x19
	bl	_pdc_rx_buf_pool_create
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.13:
	mov	x0, x19
	bl	_pdc_hw_init
	add	x22, x19, #8
Lloh28:
	adrp	x8, _pdc_tasklet_cb@GOTPAGE
Lloh29:
	ldr	x8, [x8, _pdc_tasklet_cb@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x22
	mov	x2, x19
	bl	_tasklet_init
	mov	x0, x19
	bl	_pdc_interrupts_init
	mov	x21, x0
	cbnz	w0, LBB0_15
; %bb.14:
	mov	x0, x19
	bl	_pdc_mb_init
	mov	x21, x0
	cbz	w0, LBB0_16
LBB0_15:
	mov	x0, x22
	bl	_tasklet_kill
	ldr	w0, [x19, #4]
	bl	_dma_pool_destroy
	b	LBB0_5
LBB0_16:
	mov	x0, x19
	bl	_pdc_setup_debugfs
Lloh31:
	adrp	x1, l_.str.4@PAGE
Lloh32:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
Lloh33:
	adrp	x8, _PDC_SUCCESS@GOTPAGE
Lloh34:
	ldr	x8, [x8, _PDC_SUCCESS@GOTPAGEOFF]
Lloh35:
	ldr	w21, [x8]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_pdcg,4,2                       ; @pdcg
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PDC device cannot perform DMA. Error %d."

l_.str.1:                               ; @.str.1
	.asciz	"pdc rings"

	.comm	_PDC_RING_SIZE,4,2              ; @PDC_RING_SIZE
	.comm	_RING_ALIGN,4,2                 ; @RING_ALIGN
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.2:                               ; @.str.2
	.asciz	"PDC register region res.start = %pa, res.end = %pa"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to map registers: %d\n"

	.comm	_pdc_tasklet_cb,4,2             ; @pdc_tasklet_cb
l_.str.4:                               ; @.str.4
	.asciz	"pdc_probe() successful"

	.comm	_PDC_SUCCESS,4,2                ; @PDC_SUCCESS
	.no_dead_strip	_pdc_probe
.subsections_via_symbols
