	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function show_dma_capability
_show_dma_capability:                   ## @show_dma_capability
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_CAPABILITY_HEADER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ioread32
	movl	%eax, %ebx
	movq	_CAPABILITY_REGISTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ioread32
	movl	%eax, %r15d
	movzbl	%bl, %esi
	movzbl	%bh, %edx
	shrl	$16, %ebx
	movl	%eax, %r8d
	shrl	$24, %r8d
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_cobalt_info
	movl	%r15d, %eax
	shrl	$8, %eax
	andl	$3, %eax
	je	LBB0_1
## %bb.2:
	cmpl	$3, %eax
	je	LBB0_5
## %bb.3:
	cmpl	$1, %eax
	jne	LBB0_7
## %bb.4:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str.3(%rip), %rdi
LBB0_6:
	xorl	%eax, %eax
	callq	_cobalt_info
LBB0_7:
	andl	$15, %r15d
	je	LBB0_10
## %bb.8:
	leaq	L_.str.5(%rip), %r13
	leaq	L_.str.4(%rip), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_CS_REG
	movl	%eax, %edi
	callq	_ioread32
	movq	_DMA_TYPE_FIFO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	movq	%r13, %r12
	leaq	L_.str.6(%rip), %rcx
	cmoveq	%rcx, %r12
	movl	%eax, %edi
	callq	_get_dma_direction
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r12, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_cobalt_info
	incl	%ebx
	cmpl	%ebx, %r15d
	jne	LBB0_9
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CAPABILITY_HEADER,4,2          ## @CAPABILITY_HEADER
	.comm	_CAPABILITY_REGISTER,4,2        ## @CAPABILITY_REGISTER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Omnitek DMA capability: ID 0x%02x Version 0x%02x Next 0x%x Size 0x%x\n"

L_.str.1:                               ## @.str.1
	.asciz	"Omnitek DMA: 32 bits PCIe and Local\n"

L_.str.2:                               ## @.str.2
	.asciz	"Omnitek DMA: 64 bits PCIe, 32 bits Local\n"

L_.str.3:                               ## @.str.3
	.asciz	"Omnitek DMA: 64 bits PCIe and Local\n"

L_.str.4:                               ## @.str.4
	.asciz	"Omnitek DMA channel #%d: %s %s\n"

	.comm	_DMA_TYPE_FIFO,4,2              ## @DMA_TYPE_FIFO
L_.str.5:                               ## @.str.5
	.asciz	"FIFO"

L_.str.6:                               ## @.str.6
	.asciz	"MEMORY"

	.no_dead_strip	_show_dma_capability
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function show_dma_capability
_show_dma_capability:                   ; @show_dma_capability
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x8, _CAPABILITY_HEADER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CAPABILITY_HEADER@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ioread32
	mov	x20, x0
Lloh3:
	adrp	x8, _CAPABILITY_REGISTER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CAPABILITY_REGISTER@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_ioread32
	mov	x19, x0
	ubfx	w8, w20, #8, #8
	and	w9, w20, #0xff
	lsr	w10, w20, #16
	lsr	w11, w0, #24
	stp	x10, x11, [sp, #16]
	stp	x9, x8, [sp]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_cobalt_info
	ubfx	w8, w19, #8, #2
	cbz	w8, LBB0_4
; %bb.1:
	cmp	w8, #3
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #1
	b.ne	LBB0_7
; %bb.3:
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_4:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_6:
	bl	_cobalt_info
LBB0_7:
	ands	w21, w19, #0xf
	b.eq	LBB0_10
; %bb.8:
	mov	w19, #0
Lloh14:
	adrp	x22, _DMA_TYPE_FIFO@GOTPAGE
Lloh15:
	ldr	x22, [x22, _DMA_TYPE_FIFO@GOTPAGEOFF]
Lloh16:
	adrp	x23, l_.str.5@PAGE
Lloh17:
	add	x23, x23, l_.str.5@PAGEOFF
Lloh18:
	adrp	x24, l_.str.6@PAGE
Lloh19:
	add	x24, x24, l_.str.6@PAGEOFF
Lloh20:
	adrp	x20, l_.str.4@PAGE
Lloh21:
	add	x20, x20, l_.str.4@PAGEOFF
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_CS_REG
	bl	_ioread32
	ldr	w8, [x22]
	tst	w8, w0
	csel	x25, x24, x23, eq
	bl	_get_dma_direction
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x25, x0, [sp, #8]
	str	x19, [sp]
	mov	x0, x20
	bl	_cobalt_info
	add	w19, w19, #1
	cmp	w21, w19
	b.ne	LBB0_9
LBB0_10:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_CAPABILITY_HEADER,4,2          ; @CAPABILITY_HEADER
	.comm	_CAPABILITY_REGISTER,4,2        ; @CAPABILITY_REGISTER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Omnitek DMA capability: ID 0x%02x Version 0x%02x Next 0x%x Size 0x%x\n"

l_.str.1:                               ; @.str.1
	.asciz	"Omnitek DMA: 32 bits PCIe and Local\n"

l_.str.2:                               ; @.str.2
	.asciz	"Omnitek DMA: 64 bits PCIe, 32 bits Local\n"

l_.str.3:                               ; @.str.3
	.asciz	"Omnitek DMA: 64 bits PCIe and Local\n"

l_.str.4:                               ; @.str.4
	.asciz	"Omnitek DMA channel #%d: %s %s\n"

	.comm	_DMA_TYPE_FIFO,4,2              ; @DMA_TYPE_FIFO
l_.str.5:                               ; @.str.5
	.asciz	"FIFO"

l_.str.6:                               ; @.str.6
	.asciz	"MEMORY"

	.no_dead_strip	_show_dma_capability
.subsections_via_symbols
