	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bcm_dma_setup_intr             ## -- Begin function bcm_dma_setup_intr
	.p2align	4, 0x90
_bcm_dma_setup_intr:                    ## @bcm_dma_setup_intr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	$-1, %eax
	testl	%edi, %edi
	js	LBB0_4
## %bb.1:
	movq	_BCM_DMA_CH_MAX@GOTPCREL(%rip), %rcx
	cmpl	%edi, (%rcx)
	jle	LBB0_4
## %bb.2:
	movq	_bcm_dma_sc@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %r8
	movl	%edi, %edi
	shlq	$5, %rdi
	movq	_BCM_DMA_CH_USED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r8,%rdi)
	je	LBB0_4
## %bb.3:
	movq	%rsi, 8(%r8,%rdi)
	movq	%rdx, 24(%r8,%rdi)
	movq	16(%r8,%rdi), %rax
	movq	_INFO_INT_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rax)
	xorl	%eax, %eax
LBB0_4:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_bcm_dma_sc,8,3                 ## @bcm_dma_sc
	.comm	_BCM_DMA_CH_MAX,4,2             ## @BCM_DMA_CH_MAX
	.comm	_BCM_DMA_CH_USED,4,2            ## @BCM_DMA_CH_USED
	.comm	_INFO_INT_EN,4,2                ## @INFO_INT_EN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bcm_dma_setup_intr             ; -- Begin function bcm_dma_setup_intr
	.p2align	2
_bcm_dma_setup_intr:                    ; @bcm_dma_setup_intr
	.cfi_startproc
; %bb.0:
	mov	x8, x0
	mov	w0, #-1
	tbnz	w8, #31, LBB0_4
; %bb.1:
Lloh0:
	adrp	x9, _BCM_DMA_CH_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BCM_DMA_CH_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w9, w8
	b.le	LBB0_4
; %bb.2:
Lloh3:
	adrp	x9, _bcm_dma_sc@GOTPAGE
Lloh4:
	ldr	x9, [x9, _bcm_dma_sc@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	x9, [x9]
	mov	w8, w8
	lsl	x10, x8, #5
	ldr	w10, [x9, x10]
Lloh6:
	adrp	x11, _BCM_DMA_CH_USED@GOTPAGE
Lloh7:
	ldr	x11, [x11, _BCM_DMA_CH_USED@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_5
; %bb.3:
	mov	w0, #0
	add	x8, x9, x8, lsl #5
	str	x1, [x8, #8]
	str	x2, [x8, #24]
	ldr	x8, [x8, #16]
Lloh9:
	adrp	x9, _INFO_INT_EN@GOTPAGE
Lloh10:
	ldr	x9, [x9, _INFO_INT_EN@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	ldr	w10, [x8]
	orr	w9, w10, w9
	str	w9, [x8]
LBB0_4:
	ret
LBB0_5:
	mov	w0, #-1
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_bcm_dma_sc,8,3                 ; @bcm_dma_sc
	.comm	_BCM_DMA_CH_MAX,4,2             ; @BCM_DMA_CH_MAX
	.comm	_BCM_DMA_CH_USED,4,2            ; @BCM_DMA_CH_USED
	.comm	_INFO_INT_EN,4,2                ; @INFO_INT_EN
.subsections_via_symbols
