	.file	"extr_if_sis.c_sis_dma_ring_alloc.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"could not create %s dma tag\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"could not allocate DMA'able memory for %s\n"
	.align 8
.LC2:
	.string	"could not load DMA'able memory for %s\n"
	.text
	.p2align 4
	.type	sis_dma_ring_alloc, @function
sis_dma_ring_alloc:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, edx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, r8
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, r9
	xor	r9d, r9d
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rcx
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	edi, DWORD PTR 4[rdi]
	mov	ecx, DWORD PTR BUS_SPACE_MAXADDR[rip]
	mov	rax, QWORD PTR 96[rsp]
	mov	r14, QWORD PTR 104[rsp]
	mov	r8d, ecx
	mov	QWORD PTR 8[rsp], rax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	push	rbx
	.cfi_def_cfa_offset 104
	push	0
	.cfi_def_cfa_offset 112
	push	0
	.cfi_def_cfa_offset 120
	push	0
	.cfi_def_cfa_offset 128
	push	rdx
	.cfi_def_cfa_offset 136
	push	1
	.cfi_def_cfa_offset 144
	push	rdx
	.cfi_def_cfa_offset 152
	xor	edx, edx
	push	0
	.cfi_def_cfa_offset 160
	call	bus_dma_tag_create@PLT
	add	rsp, 64
	.cfi_def_cfa_offset 96
	test	eax, eax
	jne	.L9
	mov	edi, DWORD PTR [rbx]
	mov	edx, DWORD PTR BUS_DMA_NOWAIT[rip]
	mov	rcx, r12
	mov	rsi, r13
	or	edx, DWORD PTR BUS_DMA_ZERO[rip]
	or	edx, DWORD PTR BUS_DMA_COHERENT[rip]
	call	bus_dmamem_alloc@PLT
	test	eax, eax
	jne	.L10
	sub	rsp, 8
	.cfi_def_cfa_offset 104
	mov	rdx, QWORD PTR 0[r13]
	mov	esi, DWORD PTR [r12]
	mov	ecx, r15d
	mov	eax, DWORD PTR BUS_DMA_NOWAIT[rip]
	mov	r8d, DWORD PTR sis_dmamap_cb[rip]
	mov	QWORD PTR 24[rsp], 0
	push	rax
	.cfi_def_cfa_offset 112
	mov	edi, DWORD PTR [rbx]
	lea	r9, 32[rsp]
	call	bus_dmamap_load@PLT
	pop	rdx
	.cfi_def_cfa_offset 104
	pop	rcx
	.cfi_def_cfa_offset 96
	test	eax, eax
	jne	.L11
	mov	rdx, QWORD PTR 16[rsp]
	mov	rbx, QWORD PTR 8[rsp]
	mov	QWORD PTR [rbx], rdx
.L1:
	mov	rbx, QWORD PTR 24[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L12
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	edi, DWORD PTR 0[rbp]
	mov	rdx, r14
	lea	rsi, .LC1[rip]
	call	device_printf@PLT
	mov	eax, DWORD PTR ENOMEM[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	edi, DWORD PTR 0[rbp]
	mov	rdx, r14
	lea	rsi, .LC0[rip]
	call	device_printf@PLT
	mov	eax, DWORD PTR ENOMEM[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	edi, DWORD PTR 0[rbp]
	mov	rdx, r14
	lea	rsi, .LC2[rip]
	call	device_printf@PLT
	mov	eax, DWORD PTR ENOMEM[rip]
	jmp	.L1
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	sis_dma_ring_alloc, .-sis_dma_ring_alloc
	.comm	sis_dmamap_cb,4,4
	.comm	ENOMEM,4,4
	.comm	BUS_SPACE_MAXADDR,4,4
	.comm	BUS_DMA_ZERO,4,4
	.comm	BUS_DMA_NOWAIT,4,4
	.comm	BUS_DMA_COHERENT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_if_sis.c_sis_dma_ring_alloc.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"could not create %s dma tag\012\000"
	.align	2
.LC1:
	.ascii	"could not allocate DMA'able memory for %s\012\000"
	.align	2
.LC2:
	.ascii	"could not load DMA'able memory for %s\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sis_dma_ring_alloc, %function
sis_dma_ring_alloc:
	@ args = 16, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r2
	mov	r5, r3
	mov	ip, #1
	mov	r2, #0
	sub	sp, sp, #52
	ldr	r3, .L13
	str	r4, [sp, #20]
	ldr	r3, [r3]
	str	r4, [sp, #12]
	str	r5, [sp, #36]
	mov	r6, r0
	ldr	r0, [r0, #4]
	str	ip, [sp, #16]
	ldr	ip, .L13+4
	str	r3, [sp]
	str	r2, [sp, #32]
	str	r2, [sp, #28]
	str	r2, [sp, #24]
	str	r2, [sp, #8]
	str	r2, [sp, #4]
	ldr	ip, [ip]
	str	ip, [sp, #44]
	mov	ip,#0
	ldr	r10, [sp, #88]
	ldr	r7, [sp, #92]
	ldr	r9, [sp, #96]
	ldr	r8, [sp, #100]
	bl	bus_dma_tag_create
	cmp	r0, #0
	bne	.L9
	ldr	fp, .L13+8
	ldr	r1, .L13+12
	ldr	r2, .L13+16
	ldr	r1, [r1]
	ldr	r3, [fp]
	ldr	r2, [r2]
	orr	r3, r3, r1
	orr	r2, r3, r2
	mov	r1, r10
	mov	r3, r7
	ldr	r0, [r5]
	bl	bus_dmamem_alloc
	subs	ip, r0, #0
	bne	.L10
	ldr	r2, .L13+20
	ldr	r3, [fp]
	ldr	fp, [r2]
	add	lr, sp, #40
	str	r3, [sp, #8]
	ldr	r2, [r10]
	ldr	r1, [r7]
	ldr	r0, [r5]
	mov	r3, r4
	stm	sp, {fp, lr}
	str	ip, [sp, #40]
	bl	bus_dmamap_load
	cmp	r0, #0
	bne	.L11
	ldr	r3, [sp, #40]
	str	r3, [r9]
.L1:
	ldr	r3, .L13+4
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L10:
	mov	r2, r8
	ldr	r0, [r6]
	ldr	r1, .L13+24
	bl	device_printf
	ldr	r3, .L13+28
	ldr	r0, [r3]
	b	.L1
.L9:
	mov	r2, r8
	ldr	r0, [r6]
	ldr	r1, .L13+32
	bl	device_printf
	ldr	r3, .L13+28
	ldr	r0, [r3]
	b	.L1
.L11:
	mov	r2, r8
	ldr	r0, [r6]
	ldr	r1, .L13+36
	bl	device_printf
	ldr	r3, .L13+28
	ldr	r0, [r3]
	b	.L1
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	BUS_SPACE_MAXADDR
	.word	.LC3
	.word	BUS_DMA_NOWAIT
	.word	BUS_DMA_ZERO
	.word	BUS_DMA_COHERENT
	.word	sis_dmamap_cb
	.word	.LC1
	.word	ENOMEM
	.word	.LC0
	.word	.LC2
	.size	sis_dma_ring_alloc, .-sis_dma_ring_alloc
	.comm	sis_dmamap_cb,4,4
	.comm	ENOMEM,4,4
	.comm	BUS_SPACE_MAXADDR,4,4
	.comm	BUS_DMA_ZERO,4,4
	.comm	BUS_DMA_NOWAIT,4,4
	.comm	BUS_DMA_COHERENT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
