	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efa_com_get_device_attr        ## -- Begin function efa_com_get_device_attr
	.p2align	4, 0x90
_efa_com_get_device_attr:               ## @efa_com_get_device_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	%r15
	pushq	%r14
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_EFA_ADMIN_DEVICE_ATTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-112(%rbp), %rsi
	callq	_efa_com_get_feature
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %ebx
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
LBB0_2:
	movl	%ebx, %edx
	callq	_ibdev_err_ratelimited
LBB0_8:
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	-28(%rbp), %eax
	movl	%eax, 84(%r14)
	movl	-32(%rbp), %eax
	movl	%eax, 80(%r14)
	movl	-56(%rbp), %edx
	movl	%edx, (%r14)
	movl	-36(%rbp), %eax
	movl	%eax, 76(%r14)
	movdqu	-52(%rbp), %xmm0
	pshufd	$57, %xmm0, %xmm1               ## xmm1 = xmm0[1,2,3,0]
	movdqu	%xmm1, 60(%r14)
	testl	%edx, %edx
	jle	LBB0_4
## %bb.5:
	movd	%xmm0, 4(%r15)
	movq	_EFA_ADMIN_QUEUE_ATTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-112(%rbp), %rsi
	movq	%r15, %rdi
	callq	_efa_com_get_feature
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	movl	(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_ibdev_err_ratelimited
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_7:
	movl	-60(%rbp), %eax
	movl	%eax, 56(%r14)
	movl	-64(%rbp), %eax
	movl	%eax, 52(%r14)
	movaps	-80(%rbp), %xmm0
	movups	%xmm0, 36(%r14)
	movaps	-96(%rbp), %xmm0
	movups	%xmm0, 20(%r14)
	movdqa	-112(%rbp), %xmm0
	movdqu	%xmm0, 4(%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_EFA_ADMIN_DEVICE_ATTR,4,2      ## @EFA_ADMIN_DEVICE_ATTR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to get device attributes %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to get device attr api version [%u < 1]\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EFA_ADMIN_QUEUE_ATTR,4,2       ## @EFA_ADMIN_QUEUE_ATTR
L_.str.2:                               ## @.str.2
	.asciz	"Failed to get queue attributes %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efa_com_get_device_attr        ; -- Begin function efa_com_get_device_attr
	.p2align	2
_efa_com_get_device_attr:               ; @efa_com_get_device_attr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _EFA_ADMIN_DEVICE_ATTR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EFA_ADMIN_DEVICE_ATTR@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, sp
	bl	_efa_com_get_feature
	cbz	w0, LBB0_4
; %bb.1:
	mov	x21, x0
	ldr	w0, [x20]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
LBB0_2:
	mov	x2, x21
	bl	_ibdev_err_ratelimited
LBB0_3:
	mov	x0, x21
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_4:
	ldr	w8, [sp, #84]
	str	w8, [x19, #84]
	ldr	w2, [sp, #56]
	str	w2, [x19]
	ldur	d0, [sp, #76]
	stur	d0, [x19, #76]
	ldur	q0, [sp, #60]
	ext.16b	v1, v0, v0, #4
	stur	q1, [x19, #60]
	cmp	w2, #0
	b.le	LBB0_7
; %bb.5:
	str	s0, [x20, #4]
Lloh5:
	adrp	x8, _EFA_ADMIN_QUEUE_ATTR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EFA_ADMIN_QUEUE_ATTR@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x1, sp
	mov	x0, x20
	bl	_efa_com_get_feature
	mov	x21, x0
	cbz	w0, LBB0_8
; %bb.6:
	ldr	w0, [x20]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_2
LBB0_7:
	ldr	w0, [x20]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_ibdev_err_ratelimited
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_3
LBB0_8:
	ldr	d0, [sp, #48]
	stur	d0, [x19, #52]
	ldr	q0, [sp, #32]
	stur	q0, [x19, #36]
	ldp	q1, q0, [sp]
	stur	q0, [x19, #20]
	stur	q1, [x19, #4]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EFA_ADMIN_DEVICE_ATTR,4,2      ; @EFA_ADMIN_DEVICE_ATTR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to get device attributes %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to get device attr api version [%u < 1]\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EFA_ADMIN_QUEUE_ATTR,4,2       ; @EFA_ADMIN_QUEUE_ATTR
l_.str.2:                               ; @.str.2
	.asciz	"Failed to get queue attributes %d\n"

.subsections_via_symbols
