	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40iw_fragcnt_to_wqesize_sq    ## -- Begin function i40iw_fragcnt_to_wqesize_sq
	.p2align	4, 0x90
_i40iw_fragcnt_to_wqesize_sq:           ## @i40iw_fragcnt_to_wqesize_sq
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$7, %edi
	ja	LBB0_7
## %bb.1:
	movl	%edi, %eax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movq	_I40IW_QP_WQE_MIN_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsi)
	jmp	LBB0_4
LBB0_3:
	movl	$64, (%rsi)
	jmp	LBB0_4
LBB0_5:
	movl	$96, (%rsi)
	jmp	LBB0_4
LBB0_6:
	movl	$128, (%rsi)
LBB0_4:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_7:
	movq	_I40IW_ERR_INVALID_FRAG_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_I40IW_QP_WQE_MIN_SIZE,4,2      ## @I40IW_QP_WQE_MIN_SIZE
	.comm	_I40IW_ERR_INVALID_FRAG_COUNT,4,2 ## @I40IW_ERR_INVALID_FRAG_COUNT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40iw_fragcnt_to_wqesize_sq    ; -- Begin function i40iw_fragcnt_to_wqesize_sq
	.p2align	2
_i40iw_fragcnt_to_wqesize_sq:           ; @i40iw_fragcnt_to_wqesize_sq
	.cfi_startproc
; %bb.0:
	cmp	w0, #7
	b.hi	LBB0_6
; %bb.1:
	mov	w8, w0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	w0, #0
Lloh2:
	adrp	x8, _I40IW_QP_WQE_MIN_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _I40IW_QP_WQE_MIN_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x1]
	ret
LBB0_3:
	mov	w0, #0
	mov	w8, #64
	str	w8, [x1]
	ret
LBB0_4:
	mov	w0, #0
	mov	w8, #96
	str	w8, [x1]
	ret
LBB0_5:
	mov	w0, #0
	mov	w8, #128
	str	w8, [x1]
	ret
LBB0_6:
Lloh5:
	adrp	x8, _I40IW_ERR_INVALID_FRAG_COUNT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _I40IW_ERR_INVALID_FRAG_COUNT@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
                                        ; -- End function
	.comm	_I40IW_QP_WQE_MIN_SIZE,4,2      ; @I40IW_QP_WQE_MIN_SIZE
	.comm	_I40IW_ERR_INVALID_FRAG_COUNT,4,2 ; @I40IW_ERR_INVALID_FRAG_COUNT
.subsections_via_symbols
