	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function au1xpsc_pcm_probe
_au1xpsc_pcm_probe:                     ## @au1xpsc_pcm_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	%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	_au1xpsc_audio_pcmdma@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	_PCM_TX@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	cmpq	$0, (%rax,%rcx,8)
	jne	LBB0_2
## %bb.1:
	movq	_PCM_RX@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_4
LBB0_2:
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%rdi, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	$4, %edi
	callq	_kzalloc
	movq	(%r14), %rcx
	movq	(%r15), %rdx
	movq	%rax, (%rcx,%rdx,8)
	movq	(%r14), %rax
	cmpq	$0, (%rax,%rdx,8)
	je	LBB0_5
## %bb.6:
	movq	_IORESOURCE_DMA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movl	(%rax), %eax
	movq	(%r14), %rcx
	movq	(%r15), %rdx
	movq	(%rcx,%rdx,8), %rcx
	movl	%eax, (%rcx)
	movl	(%r13), %esi
	movl	$4, %edi
	callq	_kzalloc
	movq	(%r14), %rcx
	movq	(%r12), %rdx
	movq	%rax, (%rcx,%rdx,8)
	movq	(%r14), %rax
	cmpq	$0, (%rax,%rdx,8)
	je	LBB0_5
## %bb.9:
	movq	_IORESOURCE_DMA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_10
## %bb.13:
	movl	(%rax), %eax
	movq	(%r14), %rcx
	movq	(%r12), %rdx
	movq	(%rcx,%rdx,8), %rcx
	movl	%eax, (%rcx)
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_7:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_11
LBB0_10:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	(%r14), %rax
	movq	(%r12), %rcx
	movq	(%rax,%rcx,8), %rdi
	callq	_kfree
	movq	(%r14), %rax
	movq	(%r12), %rcx
	movq	$0, (%rax,%rcx,8)
LBB0_11:
	negl	%ebx
	movq	(%r14), %rax
	movq	(%r15), %rcx
	movq	(%rax,%rcx,8), %rdi
	callq	_kfree
	movq	(%r14), %rax
	movq	(%r15), %rcx
	movq	$0, (%rax,%rcx,8)
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_au1xpsc_audio_pcmdma,8,3       ## @au1xpsc_audio_pcmdma
	.comm	_PCM_TX,8,3                     ## @PCM_TX
	.comm	_PCM_RX,8,3                     ## @PCM_RX
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_DMA,4,2             ## @IORESOURCE_DMA
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_au1xpsc_pcm_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function au1xpsc_pcm_probe
_au1xpsc_pcm_probe:                     ; @au1xpsc_pcm_probe
	.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
Lloh0:
	adrp	x20, _au1xpsc_audio_pcmdma@GOTPAGE
Lloh1:
	ldr	x20, [x20, _au1xpsc_audio_pcmdma@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh2:
	adrp	x21, _PCM_TX@GOTPAGE
Lloh3:
	ldr	x21, [x21, _PCM_TX@GOTPAGEOFF]
	ldr	x9, [x21]
	ldr	x9, [x8, x9, lsl #3]
	cbnz	x9, LBB0_2
; %bb.1:
Lloh4:
	adrp	x22, _PCM_RX@GOTPAGE
Lloh5:
	ldr	x22, [x22, _PCM_RX@GOTPAGEOFF]
	ldr	x9, [x22]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_5
LBB0_2:
Lloh6:
	adrp	x8, _EBUSY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_4:
	mov	x0, x19
	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
LBB0_5:
	mov	x19, x0
Lloh8:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w0, #4
	bl	_kzalloc
	ldr	x8, [x20]
	ldr	x9, [x21]
	lsl	x9, x9, #3
	str	x0, [x8, x9]
	ldr	x8, [x20]
	ldr	x8, [x8, x9]
	cbz	x8, LBB0_10
; %bb.6:
Lloh10:
	adrp	x24, _IORESOURCE_DMA@GOTPAGE
Lloh11:
	ldr	x24, [x24, _IORESOURCE_DMA@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_11
; %bb.7:
	ldr	w8, [x0]
	ldr	x9, [x20]
	ldr	x10, [x21]
	ldr	x9, [x9, x10, lsl #3]
	str	w8, [x9]
	ldr	w1, [x23]
	mov	w0, #4
	bl	_kzalloc
	ldr	x8, [x20]
	ldr	x9, [x22]
	lsl	x9, x9, #3
	str	x0, [x8, x9]
	ldr	x8, [x20]
	ldr	x8, [x8, x9]
	cbz	x8, LBB0_10
; %bb.8:
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #1
	bl	_platform_get_resource
	cbz	x0, LBB0_12
; %bb.9:
	mov	w19, #0
	ldr	w8, [x0]
	ldr	x9, [x20]
	ldr	x10, [x22]
	ldr	x9, [x9, x10, lsl #3]
	str	w8, [x9]
	b	LBB0_4
LBB0_10:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_3
LBB0_11:
Lloh14:
	adrp	x8, _ENODEV@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh16:
	ldr	w19, [x8]
	b	LBB0_13
LBB0_12:
Lloh17:
	adrp	x8, _ENODEV@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh19:
	ldr	w19, [x8]
	ldr	x8, [x20]
	ldr	x9, [x22]
	ldr	x0, [x8, x9, lsl #3]
	bl	_kfree
	ldr	x8, [x20]
	ldr	x9, [x22]
	str	xzr, [x8, x9, lsl #3]
LBB0_13:
	neg	w19, w19
	ldr	x8, [x20]
	ldr	x9, [x21]
	ldr	x0, [x8, x9, lsl #3]
	bl	_kfree
	ldr	x8, [x20]
	ldr	x9, [x21]
	str	xzr, [x8, x9, lsl #3]
	b	LBB0_4
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_au1xpsc_audio_pcmdma,8,3       ; @au1xpsc_audio_pcmdma
	.comm	_PCM_TX,8,3                     ; @PCM_TX
	.comm	_PCM_RX,8,3                     ; @PCM_RX
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_DMA,4,2             ; @IORESOURCE_DMA
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_au1xpsc_pcm_probe
.subsections_via_symbols
