	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ocrdma_query_port              ## -- Begin function ocrdma_query_port
	.p2align	4, 0x90
_ocrdma_query_port:                     ## @ocrdma_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	callq	_get_ocrdma_dev
	movq	%rax, %r14
	movq	(%rax), %r15
	movq	%r15, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%r15, %rdi
	callq	_netif_oper_up
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_IB_PORT_PHYS_STATE_LINK_UP@GOTPCREL(%rip), %rax
	movq	_IB_PORT_ACTIVE@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_3:
	movq	_IB_PORT_PHYS_STATE_DISABLED@GOTPCREL(%rip), %rax
	movq	_IB_PORT_DOWN@GOTPCREL(%rip), %rcx
LBB0_4:
	movl	(%rcx), %r12d
	movl	(%rax), %eax
	movl	%eax, 96(%rbx)
	movq	_IB_MTU_4096@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 92(%rbx)
	movl	(%r15), %edi
	callq	_iboe_get_mtu
	movl	%eax, 88(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 56(%rbx)
	movups	%xmm0, 72(%rbx)
	movl	%r12d, (%rbx)
	movq	_IB_PORT_CM_SUP@GOTPCREL(%rip), %rax
	movq	_IB_PORT_REINIT_SUP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_IB_PORT_DEVICE_MGMT_SUP@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_IB_PORT_VENDOR_CLASS_SUP@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 4(%rbx)
	movl	$1, 8(%rbx)
	movq	_OCRDMA_MAX_SGID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movl	$1, 12(%rbx)
	leaq	28(%rbx), %rsi
	leaq	24(%rbx), %rdx
	movups	%xmm0, 32(%rbx)
	movq	%r14, %rdi
	callq	_get_link_speed_and_width
	movabsq	$19327352832, %rax              ## imm = 0x480000000
	movq	%rax, 16(%rbx)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	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_PORT_DOWN,4,2               ## @IB_PORT_DOWN
	.comm	_IB_PORT_PHYS_STATE_DISABLED,4,2 ## @IB_PORT_PHYS_STATE_DISABLED
	.comm	_IB_MTU_4096,4,2                ## @IB_MTU_4096
	.comm	_IB_PORT_CM_SUP,4,2             ## @IB_PORT_CM_SUP
	.comm	_IB_PORT_REINIT_SUP,4,2         ## @IB_PORT_REINIT_SUP
	.comm	_IB_PORT_DEVICE_MGMT_SUP,4,2    ## @IB_PORT_DEVICE_MGMT_SUP
	.comm	_IB_PORT_VENDOR_CLASS_SUP,4,2   ## @IB_PORT_VENDOR_CLASS_SUP
	.comm	_OCRDMA_MAX_SGID,4,2            ## @OCRDMA_MAX_SGID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function ocrdma_query_port
lCPI0_0:
	.long	2147483648                      ; 0x80000000
	.long	4                               ; 0x4
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_ocrdma_query_port
	.p2align	2
_ocrdma_query_port:                     ; @ocrdma_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	_get_ocrdma_dev
	mov	x20, x0
	ldr	x21, [x0]
	mov	x0, x21
	bl	_netif_running
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x21
	bl	_netif_oper_up
	cbz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _IB_PORT_PHYS_STATE_LINK_UP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_PORT_PHYS_STATE_LINK_UP@GOTPAGEOFF]
Lloh2:
	adrp	x9, _IB_PORT_ACTIVE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IB_PORT_ACTIVE@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh4:
	adrp	x8, _IB_PORT_PHYS_STATE_DISABLED@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IB_PORT_PHYS_STATE_DISABLED@GOTPAGEOFF]
Lloh6:
	adrp	x9, _IB_PORT_DOWN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IB_PORT_DOWN@GOTPAGEOFF]
LBB0_4:
	ldr	w22, [x9]
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _IB_MTU_4096@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IB_MTU_4096@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #92]
	ldr	w0, [x21]
	bl	_iboe_get_mtu
	str	w0, [x19, #88]
	movi.2d	v0, #0000000000000000
	stur	q0, [x19, #56]
	str	w22, [x19]
Lloh11:
	adrp	x8, _IB_PORT_CM_SUP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IB_PORT_CM_SUP@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _IB_PORT_REINIT_SUP@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IB_PORT_REINIT_SUP@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh17:
	adrp	x9, _IB_PORT_DEVICE_MGMT_SUP@GOTPAGE
Lloh18:
	ldr	x9, [x9, _IB_PORT_DEVICE_MGMT_SUP@GOTPAGEOFF]
	stur	q0, [x19, #72]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh20:
	adrp	x9, _IB_PORT_VENDOR_CLASS_SUP@GOTPAGE
Lloh21:
	ldr	x9, [x9, _IB_PORT_VENDOR_CLASS_SUP@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19, #4]
Lloh23:
	adrp	x8, _OCRDMA_MAX_SGID@GOTPAGE
Lloh24:
	ldr	x8, [x8, _OCRDMA_MAX_SGID@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	str	w8, [x19, #48]
	movi.2s	v0, #1
	str	d0, [x19, #8]
	add	x1, x19, #28
	add	x2, x19, #24
	stp	xzr, xzr, [x19, #32]
	mov	x0, x20
	bl	_get_link_speed_and_width
Lloh26:
	adrp	x8, lCPI0_0@PAGE
Lloh27:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19, #16]
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdr	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.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_PORT_DOWN,4,2               ; @IB_PORT_DOWN
	.comm	_IB_PORT_PHYS_STATE_DISABLED,4,2 ; @IB_PORT_PHYS_STATE_DISABLED
	.comm	_IB_MTU_4096,4,2                ; @IB_MTU_4096
	.comm	_IB_PORT_CM_SUP,4,2             ; @IB_PORT_CM_SUP
	.comm	_IB_PORT_REINIT_SUP,4,2         ; @IB_PORT_REINIT_SUP
	.comm	_IB_PORT_DEVICE_MGMT_SUP,4,2    ; @IB_PORT_DEVICE_MGMT_SUP
	.comm	_IB_PORT_VENDOR_CLASS_SUP,4,2   ; @IB_PORT_VENDOR_CLASS_SUP
	.comm	_OCRDMA_MAX_SGID,4,2            ; @OCRDMA_MAX_SGID
.subsections_via_symbols
