	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsi_get_dma_chan
_fsi_get_dma_chan:                      ## @fsi_get_dma_chan
	.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	_PORTA_DMA@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_request_dma
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_PORTB_DMA@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_request_dma
	movq	(%rbx), %rdi
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	callq	_free_dma
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	_master@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rdi, 8(%rax)
	movq	(%r14), %rcx
	movq	%rcx, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_PORTA_DMA,8,3                  ## @PORTA_DMA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fsia"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_PORTB_DMA,8,3                  ## @PORTB_DMA
L_.str.1:                               ## @.str.1
	.asciz	"fsib"

	.comm	_master,8,3                     ## @master
	.no_dead_strip	_fsi_get_dma_chan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsi_get_dma_chan
_fsi_get_dma_chan:                      ; @fsi_get_dma_chan
	.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
Lloh0:
	adrp	x19, _PORTA_DMA@GOTPAGE
Lloh1:
	ldr	x19, [x19, _PORTA_DMA@GOTPAGEOFF]
	ldr	x0, [x19]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_request_dma
	cbnz	x0, LBB0_3
; %bb.1:
Lloh4:
	adrp	x20, _PORTB_DMA@GOTPAGE
Lloh5:
	ldr	x20, [x20, _PORTB_DMA@GOTPAGEOFF]
	ldr	x0, [x20]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_request_dma
	ldr	x8, [x19]
	cbz	x0, LBB0_5
; %bb.2:
	mov	x0, x8
	bl	_free_dma
LBB0_3:
Lloh8:
	adrp	x8, _EIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh11:
	adrp	x9, _master@GOTPAGE
Lloh12:
	ldr	x9, [x9, _master@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	ldr	x10, [x20]
	stp	x10, x8, [x9]
	b	LBB0_4
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_PORTA_DMA,8,3                  ; @PORTA_DMA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fsia"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_PORTB_DMA,8,3                  ; @PORTB_DMA
l_.str.1:                               ; @.str.1
	.asciz	"fsib"

	.comm	_master,8,3                     ; @master
	.no_dead_strip	_fsi_get_dma_chan
.subsections_via_symbols
