	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efa_qp_validate_attr
_efa_qp_validate_attr:                  ## @efa_qp_validate_attr
	.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	(%rsi), %rdx
	movq	_IB_QPT_DRIVER@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	je	LBB0_3
## %bb.1:
	movq	_IB_QPT_UD@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_ibdev_dbg
	jmp	LBB0_9
LBB0_3:
	cmpq	$0, 16(%rsi)
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_8
LBB0_5:
	cmpq	$0, 8(%rsi)
	je	LBB0_6
## %bb.7:
	leaq	L_.str.2(%rip), %rsi
LBB0_8:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_ibdev_dbg
LBB0_9:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_6:
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_QPT_DRIVER,8,3              ## @IB_QPT_DRIVER
	.comm	_IB_QPT_UD,8,3                  ## @IB_QPT_UD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported qp type %d\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
L_.str.1:                               ## @.str.1
	.asciz	"SRQ is not supported\n"

L_.str.2:                               ## @.str.2
	.asciz	"Unsupported create flags\n"

	.no_dead_strip	_efa_qp_validate_attr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efa_qp_validate_attr
_efa_qp_validate_attr:                  ; @efa_qp_validate_attr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _IB_QPT_DRIVER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IB_QPT_DRIVER@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _IB_QPT_UD@GOTPAGE
Lloh4:
	ldr	x10, [x10, _IB_QPT_UD@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x1, #16]
	cbz	x8, LBB0_6
; %bb.2:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
	str	x8, [sp]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
LBB0_4:
	bl	_ibdev_dbg
Lloh10:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
LBB0_6:
	ldr	x8, [x1, #8]
	cbz	x8, LBB0_8
; %bb.7:
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_8:
	mov	w0, #0
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_QPT_DRIVER,8,3              ; @IB_QPT_DRIVER
	.comm	_IB_QPT_UD,8,3                  ; @IB_QPT_UD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported qp type %d\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
l_.str.1:                               ; @.str.1
	.asciz	"SRQ is not supported\n"

l_.str.2:                               ; @.str.2
	.asciz	"Unsupported create flags\n"

	.no_dead_strip	_efa_qp_validate_attr
.subsections_via_symbols
