	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function au1x_pcm_dbdma_realloc
_au1x_pcm_dbdma_realloc:                ## @au1x_pcm_dbdma_realloc
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	cmpl	$24, %edx
	movl	$32, %r14d
	cmovnel	%edx, %r14d
	cmpq	$0, 8(%rdi)
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	cmpl	(%rbx), %r14d
	je	LBB0_8
LBB0_2:
	movq	%rbx, %rdi
	callq	_au1x_pcm_dbdma_free
	movq	_PCM_RX@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_4
## %bb.3:
	movl	16(%rbx), %edi
	movq	_DSCR_CMD0_ALWAYS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_au1x_pcm_dmarx_cb@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_DSCR_CMD0_ALWAYS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%rbx), %esi
	movq	_au1x_pcm_dmatx_cb@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %edx
	movq	%rbx, %rcx
	callq	_au1xxx_dbdma_chan_alloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %rdi
	movl	%r14d, %esi
	callq	_au1xxx_dbdma_set_devwidth
	movq	8(%rbx), %rdi
	movl	$2, %esi
	callq	_au1xxx_dbdma_ring_alloc
	movl	%r14d, (%rbx)
	movq	8(%rbx), %rdi
	callq	_au1xxx_dbdma_stop
	movq	8(%rbx), %rdi
	callq	_au1xxx_dbdma_reset
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCM_RX,4,2                     ## @PCM_RX
	.comm	_DSCR_CMD0_ALWAYS,4,2           ## @DSCR_CMD0_ALWAYS
	.comm	_au1x_pcm_dmarx_cb,4,2          ## @au1x_pcm_dmarx_cb
	.comm	_au1x_pcm_dmatx_cb,4,2          ## @au1x_pcm_dmatx_cb
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_au1x_pcm_dbdma_realloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function au1x_pcm_dbdma_realloc
_au1x_pcm_dbdma_realloc:                ; @au1x_pcm_dbdma_realloc
	.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	x21, x1
	mov	x19, x0
	mov	w8, #32
	cmp	w2, #24
	csel	w20, w8, w2, eq
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w8, [x19]
	cmp	w20, w8
	b.eq	LBB0_7
LBB0_2:
	mov	x0, x19
	bl	_au1x_pcm_dbdma_free
Lloh0:
	adrp	x8, _PCM_RX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCM_RX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_4
; %bb.3:
	ldr	w0, [x19, #16]
Lloh3:
	adrp	x8, _DSCR_CMD0_ALWAYS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DSCR_CMD0_ALWAYS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _au1x_pcm_dmarx_cb@GOTPAGE
Lloh7:
	ldr	x8, [x8, _au1x_pcm_dmarx_cb@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x8, _DSCR_CMD0_ALWAYS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DSCR_CMD0_ALWAYS@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	w1, [x19, #16]
Lloh11:
	adrp	x8, _au1x_pcm_dmatx_cb@GOTPAGE
Lloh12:
	ldr	x8, [x8, _au1x_pcm_dmatx_cb@GOTPAGEOFF]
LBB0_5:
	ldr	w2, [x8]
	mov	x3, x19
	bl	_au1xxx_dbdma_chan_alloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_8
; %bb.6:
	mov	x1, x20
	bl	_au1xxx_dbdma_set_devwidth
	ldr	x0, [x19, #8]
	mov	w1, #2
	bl	_au1xxx_dbdma_ring_alloc
	str	w20, [x19]
	ldr	x0, [x19, #8]
	bl	_au1xxx_dbdma_stop
	ldr	x0, [x19, #8]
	bl	_au1xxx_dbdma_reset
LBB0_7:
	mov	w0, #0
	b	LBB0_9
LBB0_8:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_PCM_RX,4,2                     ; @PCM_RX
	.comm	_DSCR_CMD0_ALWAYS,4,2           ; @DSCR_CMD0_ALWAYS
	.comm	_au1x_pcm_dmarx_cb,4,2          ; @au1x_pcm_dmarx_cb
	.comm	_au1x_pcm_dmatx_cb,4,2          ; @au1x_pcm_dmatx_cb
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_au1x_pcm_dbdma_realloc
.subsections_via_symbols
