	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rdx
	movq	(%rdi), %rax
	movq	8(%rdi), %rbx
	movq	16(%rbx), %r14
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %rcx
	movq	_bf5xx_dma_irq@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_sport_set_tx_callback
	movl	8(%rbx), %esi
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	shll	$2, %ecx
	movq	%r14, %rdi
	callq	_sport_config_tx_dma
	jmp	LBB0_3
LBB0_2:
	movq	%r14, %rdi
	callq	_sport_set_rx_callback
	movl	8(%rbx), %esi
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	shll	$2, %ecx
	movq	%r14, %rdi
	callq	_sport_config_rx_dma
LBB0_3:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	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	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x2, x0
	ldp	x8, x20, [x0]
Lloh0:
	adrp	x9, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
	ldr	x19, [x20, #16]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _bf5xx_dma_irq@GOTPAGE
Lloh4:
	ldr	x10, [x10, _bf5xx_dma_irq@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x10]
	mov	x0, x19
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	bl	_sport_set_tx_callback
	ldp	w2, w1, [x20, #4]
	ldr	w8, [x20]
	lsl	w3, w8, #2
	mov	x0, x19
	bl	_sport_config_tx_dma
	b	LBB0_3
LBB0_2:
	bl	_sport_set_rx_callback
	ldp	w2, w1, [x20, #4]
	ldr	w8, [x20]
	lsl	w3, w8, #2
	mov	x0, x19
	bl	_sport_config_rx_dma
LBB0_3:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 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
