	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnxt_re_query_port             ## -- Begin function bnxt_re_query_port
	.p2align	4, 0x90
_bnxt_re_query_port:                    ## @bnxt_re_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
	movq	%rdi, %rsi
	callq	_to_bnxt_re_dev
	movq	%rax, %r14
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$128, %edx
	callq	_memset
	movq	8(%r14), %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	8(%r14), %rdi
	callq	_netif_carrier_ok
	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), %ecx
	movl	%ecx, 120(%rbx)
	movl	(%rax), %eax
	movl	%eax, 116(%rbx)
	movq	_IB_MTU_4096@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 112(%rbx)
	movq	8(%r14), %rax
	movl	(%rax), %edi
	callq	_iboe_get_mtu
	movl	%eax, 108(%rbx)
	movl	20(%r14), %eax
	movl	%eax, 104(%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, (%rbx)
	movl	$1, 4(%rbx)
	movq	_BNXT_RE_MAX_MR_SIZE_LOW@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 96(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 80(%rbx)
	movl	16(%r14), %eax
	movl	%eax, 72(%rbx)
	movups	%xmm0, 48(%rbx)
	movq	$0, 64(%rbx)
	movl	$4, 8(%rbx)
	movups	%xmm0, 24(%rbx)
	movq	$0, 40(%rbx)
	movl	4(%r14), %eax
	movl	%eax, 16(%rbx)
	movl	(%r14), %eax
	movl	%eax, 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_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	_BNXT_RE_MAX_MR_SIZE_LOW,8,3    ## @BNXT_RE_MAX_MR_SIZE_LOW
.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 bnxt_re_query_port
lCPI0_0:
	.long	1                               ; 0x1
	.long	4                               ; 0x4
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_bnxt_re_query_port
	.p2align	2
_bnxt_re_query_port:                    ; @bnxt_re_query_port
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	mov	x1, x0
	bl	_to_bnxt_re_dev
	mov	x20, x0
	mov	x0, x19
	mov	w1, #0
	mov	w2, #128
	bl	_memset
	ldr	x0, [x20, #8]
	bl	_netif_running
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x0, [x20, #8]
	bl	_netif_carrier_ok
	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	w9, [x9]
	str	w9, [x19, #120]
Lloh8:
	adrp	x9, _IB_MTU_4096@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IB_MTU_4096@GOTPAGEOFF]
	ldr	w8, [x8]
Lloh10:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #112]
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	bl	_iboe_get_mtu
	ldr	w8, [x20, #20]
	stp	w8, w0, [x19, #104]
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]
Lloh19:
	ldr	w9, [x9]
Lloh20:
	adrp	x10, _IB_PORT_VENDOR_CLASS_SUP@GOTPAGE
Lloh21:
	ldr	x10, [x10, _IB_PORT_VENDOR_CLASS_SUP@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh22:
	ldr	w9, [x10]
	orr	w8, w8, w9
	str	w8, [x19]
Lloh23:
	adrp	x8, _BNXT_RE_MAX_MR_SIZE_LOW@GOTPAGE
Lloh24:
	ldr	x8, [x8, _BNXT_RE_MAX_MR_SIZE_LOW@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	stp	xzr, x8, [x19, #88]
	str	xzr, [x19, #80]
	ldr	w8, [x20, #16]
	str	w8, [x19, #72]
	stp	xzr, xzr, [x19, #56]
Lloh26:
	adrp	x8, lCPI0_0@PAGE
Lloh27:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x19, #4]
	stp	xzr, xzr, [x19, #40]
	stp	xzr, xzr, [x19, #24]
	ldr	d0, [x20]
	stur	d0, [x19, #12]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 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	_BNXT_RE_MAX_MR_SIZE_LOW,8,3    ; @BNXT_RE_MAX_MR_SIZE_LOW
.subsections_via_symbols
