	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efa_query_port                 ## -- Begin function efa_query_port
	.p2align	4, 0x90
_efa_query_port:                        ## @efa_query_port
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rbx
	callq	_to_edev
	movq	%rax, %r14
	movl	$1, (%rbx)
	movq	_IB_PORT_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%rbx)
	movq	_IB_PORT_PHYS_STATE_LINK_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 4(%rbx)
	movq	_IB_SPEED_EDR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movq	_IB_WIDTH_4X@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movl	(%r14), %edi
	callq	_ib_mtu_int_to_enum
	movq	%rax, 32(%rbx)
	movl	(%r14), %edi
	callq	_ib_mtu_int_to_enum
	movq	%rax, 24(%rbx)
	movl	(%r14), %eax
	movl	%eax, 16(%rbx)
	movl	$1, 12(%rbx)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_PORT_ACTIVE,4,2             ## @IB_PORT_ACTIVE
	.comm	_IB_PORT_PHYS_STATE_LINK_UP,4,2 ## @IB_PORT_PHYS_STATE_LINK_UP
	.comm	_IB_SPEED_EDR,4,2               ## @IB_SPEED_EDR
	.comm	_IB_WIDTH_4X,4,2                ## @IB_WIDTH_4X
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efa_query_port                 ; -- Begin function efa_query_port
	.p2align	2
_efa_query_port:                        ; @efa_query_port
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x2
	bl	_to_edev
	mov	x20, x0
	movi.2s	v0, #1
Lloh0:
	adrp	x8, _IB_PORT_ACTIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_PORT_ACTIVE@GOTPAGEOFF]
	str	d0, [x19]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _IB_PORT_PHYS_STATE_LINK_UP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IB_PORT_PHYS_STATE_LINK_UP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #48]
	mov	w21, #1
	str	w21, [x19, #8]
Lloh6:
	adrp	x8, _IB_SPEED_EDR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IB_SPEED_EDR@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _IB_WIDTH_4X@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IB_WIDTH_4X@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #40]
	ldr	w0, [x0]
	bl	_ib_mtu_int_to_enum
	str	x0, [x19, #32]
	ldr	w0, [x20]
	bl	_ib_mtu_int_to_enum
	str	x0, [x19, #24]
	ldr	w8, [x20]
	stp	w21, w8, [x19, #12]
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_PORT_ACTIVE,4,2             ; @IB_PORT_ACTIVE
	.comm	_IB_PORT_PHYS_STATE_LINK_UP,4,2 ; @IB_PORT_PHYS_STATE_LINK_UP
	.comm	_IB_SPEED_EDR,4,2               ; @IB_SPEED_EDR
	.comm	_IB_WIDTH_4X,4,2                ; @IB_WIDTH_4X
.subsections_via_symbols
