	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40iw_fragcnt_to_wqesize_rq    ## -- Begin function i40iw_fragcnt_to_wqesize_rq
	.p2align	4, 0x90
_i40iw_fragcnt_to_wqesize_rq:           ## @i40iw_fragcnt_to_wqesize_rq
	.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	$240, %eax
	btl	%edi, %eax
	jae	LBB0_3
## %bb.2:
	movl	$128, (%rsi)
	jmp	LBB0_5
LBB0_3:
	movl	$3, %eax
	btl	%edi, %eax
	jae	LBB0_6
## %bb.4:
	movl	$32, (%rsi)
	jmp	LBB0_5
LBB0_6:
	movl	$64, (%rsi)
LBB0_5:
	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
                                        ## -- End function
	.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_rq    ; -- Begin function i40iw_fragcnt_to_wqesize_rq
	.p2align	2
_i40iw_fragcnt_to_wqesize_rq:           ; @i40iw_fragcnt_to_wqesize_rq
	.cfi_startproc
; %bb.0:
	cmp	w0, #7
	b.hi	LBB0_6
; %bb.1:
	mov	w8, #1
	lsl	w8, w8, w0
	tst	w8, #0xf0
	b.eq	LBB0_3
; %bb.2:
	mov	w0, #0
	mov	w8, #128
	str	w8, [x1]
	ret
LBB0_3:
	tst	w8, #0x3
	b.eq	LBB0_5
; %bb.4:
	mov	w0, #0
	mov	w8, #32
	str	w8, [x1]
	ret
LBB0_5:
	mov	w0, #0
	mov	w8, #64
	str	w8, [x1]
	ret
LBB0_6:
Lloh0:
	adrp	x8, _I40IW_ERR_INVALID_FRAG_COUNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I40IW_ERR_INVALID_FRAG_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_I40IW_ERR_INVALID_FRAG_COUNT,4,2 ; @I40IW_ERR_INVALID_FRAG_COUNT
.subsections_via_symbols
