	.file	"extr_aoa.c_aoa_chan_setblocksize.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"dma is running"
.LC1:
	.string	"bad blocksz"
	.text
	.p2align 4
	.type	aoa_chan_setblocksize, @function
aoa_chan_setblocksize:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, edx
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	movsx	rdi, DWORD PTR [rsi]
	call	DPRINTF@PLT
	mov	eax, DWORD PTR 16[rbx]
	xor	edi, edi
	lea	rsi, .LC0[rip]
	test	eax, eax
	sete	dil
	call	KASSERT@PLT
	xor	edi, edi
	test	r12d, r12d
	lea	rsi, .LC1[rip]
	setg	dil
	call	KASSERT@PLT
#APP
# 36 "data/freebsd/sys/dev/sound/macio/extr_aoa.c_aoa_chan_setblocksize.c" 1
	cntlzw ecx,r12d
# 0 "" 2
#NO_APP
	mov	r12d, -2147483648
	shr	r12d, cl
	movsx	rdi, r12d
	call	DPRINTF@PLT
	mov	eax, DWORD PTR 4[rbx]
	mov	edi, DWORD PTR 12[rbx]
	cmp	eax, r12d
	cmovle	r12d, eax
	cdq
	idiv	r12d
	mov	edx, r12d
	mov	esi, eax
	call	sndbuf_resize@PLT
	test	eax, eax
	jne	.L6
	cmp	DWORD PTR [rbx], r12d
	je	.L1
	mov	eax, DWORD PTR 4[rbx]
	mov	edi, DWORD PTR 8[rbx]
	cdq
	idiv	r12d
	lea	esi, 2[rax]
	call	dbdma_resize_channel@PLT
	test	eax, eax
	jne	.L6
	mov	DWORD PTR [rbx], r12d
	mov	rdi, rbx
	call	aoa_dma_set_program@PLT
	mov	r12d, DWORD PTR [rbx]
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	movsx	rdi, eax
	xor	r12d, r12d
	call	DPRINTF@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	aoa_chan_setblocksize, .-aoa_chan_setblocksize
	.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_aoa.c_aoa_chan_setblocksize.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"dma is running\000"
	.align	2
.LC1:
	.ascii	"bad blocksz\000"
	.global	__aeabi_idiv
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	aoa_chan_setblocksize, %function
aoa_chan_setblocksize:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r1
	ldr	r0, [r1]
	mov	r4, r2
	bl	DPRINTF
	ldr	r0, [r5, #16]
	ldr	r1, .L8
	clz	r0, r0
	lsr	r0, r0, #5
	bl	KASSERT
	cmp	r4, #0
	movle	r0, #0
	movgt	r0, #1
	ldr	r1, .L8+4
	bl	KASSERT
	.syntax divided
@ 36 "data/freebsd/sys/dev/sound/macio/extr_aoa.c_aoa_chan_setblocksize.c" 1
	cntlzw r2,r4
@ 0 "" 2
	.arm
	.syntax unified
	mov	r4, #-2147483648
	lsr	r4, r4, r2
	mov	r0, r4
	bl	DPRINTF
	ldr	r0, [r5, #4]
	cmp	r0, r4
	movlt	r4, r0
	mov	r1, r4
	bl	__aeabi_idiv
	mov	r2, r4
	mov	r1, r0
	ldr	r0, [r5, #12]
	bl	sndbuf_resize
	subs	r6, r0, #0
	bne	.L6
	ldr	r3, [r5]
	cmp	r3, r4
	beq	.L1
	mov	r1, r4
	ldr	r0, [r5, #4]
	bl	__aeabi_idiv
	mov	r1, r0
	ldr	r0, [r5, #8]
	add	r1, r1, #2
	bl	dbdma_resize_channel
	cmp	r0, #0
	bne	.L6
	str	r4, [r5]
	mov	r0, r5
	bl	aoa_dma_set_program
	ldr	r4, [r5]
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L6:
	mov	r4, #0
	bl	DPRINTF
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L9:
	.align	2
.L8:
	.word	.LC0
	.word	.LC1
	.size	aoa_chan_setblocksize, .-aoa_chan_setblocksize
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
