	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ocrdma_build_q_conf
_ocrdma_build_q_conf:                   ## @ocrdma_build_q_conf
	.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	%rcx, %r15
	movq	%rdx, %r12
	movl	%esi, %r14d
	movq	%rdi, %r13
	movl	(%rdi), %edi
	callq	_roundup_pow_of_two
	movl	%eax, %edi
	movl	%eax, (%r13)
	movq	_OCRDMA_MAX_Q_PAGE_SIZE_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%edx, %edx
	jle	LBB0_4
## %bb.1:
	imull	%r14d, %edi
	movq	_OCRDMA_Q_PAGE_BASE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%esi, %eax
	movl	%ebx, %ecx
	shll	%cl, %eax
	cmpl	%eax, %edi
	jle	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	cmpl	%ebx, %edx
	jne	LBB0_2
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_5:
	movq	_OCRDMA_MAX_Q_PAGES@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movl	%eax, %esi
	callq	_roundup
	movq	_OCRDMA_Q_PAGE_BASE_SIZE@GOTPCREL(%rip), %r8
	movl	(%r8), %edx
	movl	%ebx, %ecx
	shll	%cl, %edx
	movl	%eax, %esi
	movl	%edx, %eax
	cltd
	movq	_OCRDMA_MAX_Q_PAGES@GOTPCREL(%rip), %rdi
	idivl	(%rdi)
	movl	%eax, %ecx
	movl	%esi, %eax
	cltd
	idivl	%ecx
	movl	%eax, (%r12)
	movl	(%r8), %eax
	movl	%ebx, %ecx
	shll	%cl, %eax
	cltd
	idivl	(%rdi)
	movl	%eax, (%r15)
	movl	%esi, %eax
	cltd
	idivl	%r14d
	movl	%eax, (%r13)
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OCRDMA_MAX_Q_PAGE_SIZE_CNT,4,2 ## @OCRDMA_MAX_Q_PAGE_SIZE_CNT
	.comm	_OCRDMA_Q_PAGE_BASE_SIZE,4,2    ## @OCRDMA_Q_PAGE_BASE_SIZE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_OCRDMA_MAX_Q_PAGES,4,2         ## @OCRDMA_MAX_Q_PAGES
	.no_dead_strip	_ocrdma_build_q_conf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ocrdma_build_q_conf
_ocrdma_build_q_conf:                   ; @ocrdma_build_q_conf
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x3
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
	ldr	w0, [x0]
	bl	_roundup_pow_of_two
	str	w0, [x20]
Lloh0:
	adrp	x8, _OCRDMA_MAX_Q_PAGE_SIZE_CNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OCRDMA_MAX_Q_PAGE_SIZE_CNT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	w23, #0
	mul	w0, w0, w21
Lloh3:
	adrp	x24, _OCRDMA_Q_PAGE_BASE_SIZE@GOTPAGE
Lloh4:
	ldr	x24, [x24, _OCRDMA_Q_PAGE_BASE_SIZE@GOTPAGEOFF]
	ldr	w9, [x24]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w10, w9, w23
	cmp	w0, w10
	b.le	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w23, w23, #1
	cmp	w8, w23
	b.ne	LBB0_2
LBB0_4:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
Lloh8:
	adrp	x25, _OCRDMA_MAX_Q_PAGES@GOTPAGE
Lloh9:
	ldr	x25, [x25, _OCRDMA_MAX_Q_PAGES@GOTPAGEOFF]
	ldr	w8, [x25]
	sdiv	w1, w10, w8
	bl	_roundup
	mov	x8, x0
	mov	w0, #0
	ldr	w9, [x24]
	lsl	w9, w9, w23
	ldr	w10, [x25]
	sdiv	w9, w9, w10
	sdiv	w9, w8, w9
	str	w9, [x22]
	ldr	w9, [x24]
	lsl	w9, w9, w23
	ldr	w10, [x25]
	sdiv	w9, w9, w10
	str	w9, [x19]
	sdiv	w8, w8, w21
	str	w8, [x20]
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_OCRDMA_MAX_Q_PAGE_SIZE_CNT,4,2 ; @OCRDMA_MAX_Q_PAGE_SIZE_CNT
	.comm	_OCRDMA_Q_PAGE_BASE_SIZE,4,2    ; @OCRDMA_Q_PAGE_BASE_SIZE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_OCRDMA_MAX_Q_PAGES,4,2         ; @OCRDMA_MAX_Q_PAGES
	.no_dead_strip	_ocrdma_build_q_conf
.subsections_via_symbols
