	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bf5xx_pcm_prepare
_bf5xx_pcm_prepare:                     ## @bf5xx_pcm_prepare
	.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, %r12
	movq	8(%rdi), %rbx
	movq	16(%rbx), %r14
	movl	12(%rbx), %esi
	movq	%rbx, %rdi
	callq	_frames_to_bytes
	cltd
	idivl	(%rbx)
	movl	%eax, %r15d
	shll	$3, %r15d
	movq	(%r12), %rax
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %rcx
	movq	_bf5xx_dma_irq@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_sport_set_tx_callback
	movl	4(%rbx), %edx
	movl	8(%rbx), %esi
	movq	%r14, %rdi
	movl	%r15d, %ecx
	callq	_sport_config_tx_dma
	jmp	LBB0_3
LBB0_2:
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_sport_set_rx_callback
	movl	4(%rbx), %edx
	movl	8(%rbx), %esi
	movq	%r14, %rdi
	movl	%r15d, %ecx
	callq	_sport_config_rx_dma
LBB0_3:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ## @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_bf5xx_dma_irq,4,2              ## @bf5xx_dma_irq
	.no_dead_strip	_bf5xx_pcm_prepare
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bf5xx_pcm_prepare
_bf5xx_pcm_prepare:                     ; @bf5xx_pcm_prepare
	.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	x22, x0
	ldr	x20, [x0, #8]
	ldr	x19, [x20, #16]
	ldr	w1, [x20, #12]
	mov	x0, x20
	bl	_frames_to_bytes
	ldr	w8, [x20]
	sdiv	w8, w0, w8
	lsl	w21, w8, #3
Lloh0:
	adrp	x8, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
	ldr	x9, [x22]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x10, _bf5xx_dma_irq@GOTPAGE
Lloh4:
	ldr	x10, [x10, _bf5xx_dma_irq@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x10]
	mov	x0, x19
	mov	x2, x22
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	bl	_sport_set_tx_callback
	ldp	w2, w1, [x20, #4]
	mov	x0, x19
	mov	x3, x21
	bl	_sport_config_tx_dma
	b	LBB0_3
LBB0_2:
	bl	_sport_set_rx_callback
	ldp	w2, w1, [x20, #4]
	mov	x0, x19
	mov	x3, x21
	bl	_sport_config_rx_dma
LBB0_3:
	mov	w0, #0
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ; @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_bf5xx_dma_irq,4,2              ; @bf5xx_dma_irq
	.no_dead_strip	_bf5xx_pcm_prepare
.subsections_via_symbols
