	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ehca_determine_small_queue
_ehca_determine_small_queue:            ## @ehca_determine_small_queue
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	testl	%edx, %edx
	je	LBB0_2
## %bb.1:
	movl	%esi, %edi
	jmp	LBB0_8
LBB0_2:
	movl	$4, %edi
	cmpl	$5, %esi
	jl	LBB0_8
## %bb.3:
	movl	$12, %edi
	cmpl	$13, %esi
	jl	LBB0_8
## %bb.4:
	movl	$28, %edi
	cmpl	$29, %esi
	jl	LBB0_8
## %bb.5:
	movl	$60, %edi
	cmpl	$61, %esi
	jl	LBB0_8
## %bb.6:
	movl	$124, %edi
	cmpl	$125, %esi
	jl	LBB0_8
## %bb.7:
	xorl	%edi, %edi
	cmpl	$253, %esi
	setge	%dil
	shll	$8, %edi
	orl	$252, %edi
LBB0_8:
	movl	%edx, %esi
	callq	_ehca_calc_wqe_size
	movl	(%rbx), %ecx
	incl	%ecx
	imull	%eax, %ecx
	cmpl	$512, %ecx                      ## imm = 0x200
	jg	LBB0_10
## %bb.9:
	movl	$2, 4(%rbx)
	movl	$1, %eax
	jmp	LBB0_13
LBB0_10:
	cmpl	$1024, %ecx                     ## imm = 0x400
	ja	LBB0_12
## %bb.11:
	movl	$3, 4(%rbx)
	movl	$1, %eax
	jmp	LBB0_13
LBB0_12:
	movl	$0, 4(%rbx)
	xorl	%eax, %eax
LBB0_13:
	movl	%eax, 8(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ehca_determine_small_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ehca_determine_small_queue
_ehca_determine_small_queue:            ; @ehca_determine_small_queue
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	w8, #4
	mov	w9, #12
	mov	w10, #28
	mov	w11, #60
	mov	w12, #124
	mov	w13, #252
	mov	w14, #508
	cmp	w1, #252
	csel	w13, w14, w13, gt
	cmp	w1, #125
	csel	w12, w12, w13, lt
	cmp	w1, #61
	csel	w11, w11, w12, lt
	cmp	w1, #29
	csel	w10, w10, w11, lt
	cmp	w1, #13
	csel	w9, w9, w10, lt
	cmp	w1, #5
	csel	w8, w8, w9, lt
	cmp	w2, #0
	csel	w0, w1, w8, ne
	mov	x1, x2
	bl	_ehca_calc_wqe_size
	ldr	w8, [x19]
	madd	w8, w0, w8, w0
	cmp	w8, #512
	b.gt	LBB0_2
; %bb.1:
	mov	w8, #2
	b	LBB0_4
LBB0_2:
	cmp	w8, #1024
	b.hi	LBB0_5
; %bb.3:
	mov	w8, #3
LBB0_4:
	str	w8, [x19, #4]
	mov	w8, #1
	b	LBB0_6
LBB0_5:
	mov	w8, #0
	str	wzr, [x19, #4]
LBB0_6:
	str	w8, [x19, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ehca_determine_small_queue
.subsections_via_symbols
