	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnxt_re_query_device           ## -- Begin function bnxt_re_query_device
	.p2align	4, 0x90
_bnxt_re_query_device:                  ## @bnxt_re_query_device
	.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	%rsi, %rbx
	movq	%rdi, %rsi
	callq	_to_bnxt_re_dev
	movq	%rax, %r14
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$232, %edx
	callq	_memset
	leaq	224(%rbx), %r15
	movl	76(%r14), %r12d
	movl	$4, %edi
	movl	$4, %esi
	callq	_min
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_memcpy
	movq	8(%r14), %rax
	movl	(%rax), %edi
	leaq	220(%rbx), %rsi
	callq	_bnxt_qplib_get_guid
	movq	_BNXT_RE_MAX_MR_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 216(%rbx)
	movq	_BNXT_RE_PAGE_SIZE_4K@GOTPCREL(%rip), %rax
	movq	_BNXT_RE_PAGE_SIZE_2M@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movq	(%r14), %rax
	movq	(%rax), %rax
	movl	8(%rax), %ecx
	movl	%ecx, 212(%rbx)
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	movsd	68(%r14), %xmm1                 ## xmm1 = mem[0],zero
	movlhps	%xmm0, %xmm1                    ## xmm1 = xmm1[0],xmm0[0]
	movups	%xmm1, 196(%rbx)
	movq	_IB_DEVICE_CURR_QP_STATE_MOD@GOTPCREL(%rip), %rcx
	movq	_IB_DEVICE_RC_RNR_NAK_GEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	_IB_DEVICE_SHUTDOWN_PORT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_IB_DEVICE_SYS_IMAGE_GUID@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_IB_DEVICE_LOCAL_DMA_LKEY@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_IB_DEVICE_RESIZE_MAX_WR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_IB_DEVICE_PORT_ACTIVE_EVENT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_IB_DEVICE_N_NOTIFY_CQ@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_IB_DEVICE_MEM_WINDOW@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_IB_DEVICE_MEM_WINDOW_TYPE_2B@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_IB_DEVICE_MEM_MGT_EXTENSIONS@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 4(%rbx)
	movq	60(%r14), %xmm0                 ## xmm0 = mem[0],zero
	pshufd	$84, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,1,1]
	movdqu	%xmm0, 180(%rbx)
	movl	56(%r14), %eax
	movl	%eax, 176(%rbx)
	movups	40(%r14), %xmm0
	movups	%xmm0, 160(%rbx)
	movq	_IB_ATOMIC_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 152(%rbx)
	movq	%rax, 144(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 120(%rbx)
	movups	%xmm0, 104(%rbx)
	movq	$0, 136(%rbx)
	movl	36(%r14), %eax
	movl	%eax, 96(%rbx)
	movq	$0, 88(%rbx)
	movl	32(%r14), %eax
	movl	%eax, 80(%rbx)
	movups	%xmm0, 56(%rbx)
	movq	$0, 72(%rbx)
	movl	28(%r14), %eax
	movl	%eax, 48(%rbx)
	movups	%xmm0, 32(%rbx)
	movl	24(%r14), %eax
	movl	%eax, 28(%rbx)
	movl	20(%r14), %eax
	movl	%eax, 24(%rbx)
	movl	16(%r14), %eax
	movl	%eax, 20(%rbx)
	movq	_MAX_PBL_LVL_1_PGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movl	$1, 8(%rbx)
	movq	_BNXT_RE_DEFAULT_ACK_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BNXT_RE_MAX_MR_SIZE,4,2        ## @BNXT_RE_MAX_MR_SIZE
	.comm	_BNXT_RE_PAGE_SIZE_4K,4,2       ## @BNXT_RE_PAGE_SIZE_4K
	.comm	_BNXT_RE_PAGE_SIZE_2M,4,2       ## @BNXT_RE_PAGE_SIZE_2M
	.comm	_IB_DEVICE_CURR_QP_STATE_MOD,4,2 ## @IB_DEVICE_CURR_QP_STATE_MOD
	.comm	_IB_DEVICE_RC_RNR_NAK_GEN,4,2   ## @IB_DEVICE_RC_RNR_NAK_GEN
	.comm	_IB_DEVICE_SHUTDOWN_PORT,4,2    ## @IB_DEVICE_SHUTDOWN_PORT
	.comm	_IB_DEVICE_SYS_IMAGE_GUID,4,2   ## @IB_DEVICE_SYS_IMAGE_GUID
	.comm	_IB_DEVICE_LOCAL_DMA_LKEY,4,2   ## @IB_DEVICE_LOCAL_DMA_LKEY
	.comm	_IB_DEVICE_RESIZE_MAX_WR,4,2    ## @IB_DEVICE_RESIZE_MAX_WR
	.comm	_IB_DEVICE_PORT_ACTIVE_EVENT,4,2 ## @IB_DEVICE_PORT_ACTIVE_EVENT
	.comm	_IB_DEVICE_N_NOTIFY_CQ,4,2      ## @IB_DEVICE_N_NOTIFY_CQ
	.comm	_IB_DEVICE_MEM_WINDOW,4,2       ## @IB_DEVICE_MEM_WINDOW
	.comm	_IB_DEVICE_MEM_WINDOW_TYPE_2B,4,2 ## @IB_DEVICE_MEM_WINDOW_TYPE_2B
	.comm	_IB_DEVICE_MEM_MGT_EXTENSIONS,4,2 ## @IB_DEVICE_MEM_MGT_EXTENSIONS
	.comm	_IB_ATOMIC_NONE,8,3             ## @IB_ATOMIC_NONE
	.comm	_MAX_PBL_LVL_1_PGS,4,2          ## @MAX_PBL_LVL_1_PGS
	.comm	_BNXT_RE_DEFAULT_ACK_DELAY,4,2  ## @BNXT_RE_DEFAULT_ACK_DELAY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnxt_re_query_device           ; -- Begin function bnxt_re_query_device
	.p2align	2
_bnxt_re_query_device:                  ; @bnxt_re_query_device
	.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, x1
	mov	x1, x0
	bl	_to_bnxt_re_dev
	mov	x20, x0
	mov	x0, x19
	mov	w1, #0
	mov	w2, #232
	bl	_memset
	add	x21, x19, #224
	ldr	w22, [x20, #76]
	mov	w0, #4
	mov	w1, #4
	bl	_min
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_memcpy
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	add	x1, x19, #220
	bl	_bnxt_qplib_get_guid
Lloh0:
	adrp	x8, _BNXT_RE_MAX_MR_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BNXT_RE_MAX_MR_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _BNXT_RE_PAGE_SIZE_4K@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BNXT_RE_PAGE_SIZE_4K@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _BNXT_RE_PAGE_SIZE_2M@GOTPAGE
Lloh7:
	ldr	x10, [x10, _BNXT_RE_PAGE_SIZE_2M@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w10, w9
	str	w9, [x19]
	ldr	x9, [x20]
	ldr	x9, [x9]
	ldr	w10, [x9, #8]
	stp	w10, w8, [x19, #212]
	ldr	d0, [x9]
	ldur	d1, [x20, #68]
	mov.d	v1[1], v0[0]
	stur	q1, [x19, #196]
Lloh9:
	adrp	x8, _IB_DEVICE_CURR_QP_STATE_MOD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IB_DEVICE_CURR_QP_STATE_MOD@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _IB_DEVICE_RC_RNR_NAK_GEN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IB_DEVICE_RC_RNR_NAK_GEN@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh15:
	adrp	x9, _IB_DEVICE_SHUTDOWN_PORT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IB_DEVICE_SHUTDOWN_PORT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh18:
	adrp	x9, _IB_DEVICE_SYS_IMAGE_GUID@GOTPAGE
Lloh19:
	ldr	x9, [x9, _IB_DEVICE_SYS_IMAGE_GUID@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh21:
	adrp	x9, _IB_DEVICE_LOCAL_DMA_LKEY@GOTPAGE
Lloh22:
	ldr	x9, [x9, _IB_DEVICE_LOCAL_DMA_LKEY@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh24:
	adrp	x9, _IB_DEVICE_RESIZE_MAX_WR@GOTPAGE
Lloh25:
	ldr	x9, [x9, _IB_DEVICE_RESIZE_MAX_WR@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh27:
	adrp	x9, _IB_DEVICE_PORT_ACTIVE_EVENT@GOTPAGE
Lloh28:
	ldr	x9, [x9, _IB_DEVICE_PORT_ACTIVE_EVENT@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh30:
	adrp	x9, _IB_DEVICE_N_NOTIFY_CQ@GOTPAGE
Lloh31:
	ldr	x9, [x9, _IB_DEVICE_N_NOTIFY_CQ@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh33:
	adrp	x9, _IB_DEVICE_MEM_WINDOW@GOTPAGE
Lloh34:
	ldr	x9, [x9, _IB_DEVICE_MEM_WINDOW@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh36:
	adrp	x9, _IB_DEVICE_MEM_WINDOW_TYPE_2B@GOTPAGE
Lloh37:
	ldr	x9, [x9, _IB_DEVICE_MEM_WINDOW_TYPE_2B@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh39:
	adrp	x9, _IB_DEVICE_MEM_MGT_EXTENSIONS@GOTPAGE
Lloh40:
	ldr	x9, [x9, _IB_DEVICE_MEM_MGT_EXTENSIONS@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19, #4]
	ldur	d0, [x20, #60]
	dup.4s	v1, v0[1]
	zip1.4s	v0, v0, v1
	stur	q0, [x19, #180]
	ldr	w8, [x20, #56]
	str	w8, [x19, #176]
	ldur	q0, [x20, #40]
	str	q0, [x19, #160]
Lloh42:
	adrp	x8, _IB_ATOMIC_NONE@GOTPAGE
Lloh43:
	ldr	x8, [x8, _IB_ATOMIC_NONE@GOTPAGEOFF]
Lloh44:
	ldr	x8, [x8]
	stp	x8, x8, [x19, #144]
	str	xzr, [x19, #136]
	movi.2d	v0, #0000000000000000
	stur	q0, [x19, #120]
	stur	q0, [x19, #104]
	ldp	w9, w8, [x20, #32]
	str	w8, [x19, #96]
	str	xzr, [x19, #88]
	str	w9, [x19, #80]
	stp	xzr, xzr, [x19, #64]
	str	xzr, [x19, #56]
	ldr	w8, [x20, #28]
	str	w8, [x19, #48]
	stp	xzr, xzr, [x19, #32]
	ldr	w8, [x20, #24]
	str	w8, [x19, #28]
	ldr	d0, [x20, #16]
	stur	d0, [x19, #20]
Lloh45:
	adrp	x8, _MAX_PBL_LVL_1_PGS@GOTPAGE
Lloh46:
	ldr	x8, [x8, _MAX_PBL_LVL_1_PGS@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	mov	w8, #1
Lloh48:
	adrp	x9, _BNXT_RE_DEFAULT_ACK_DELAY@GOTPAGE
Lloh49:
	ldr	x9, [x9, _BNXT_RE_DEFAULT_ACK_DELAY@GOTPAGEOFF]
Lloh50:
	ldr	w9, [x9]
	stp	w8, w9, [x19, #8]
	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	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.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	_BNXT_RE_MAX_MR_SIZE,4,2        ; @BNXT_RE_MAX_MR_SIZE
	.comm	_BNXT_RE_PAGE_SIZE_4K,4,2       ; @BNXT_RE_PAGE_SIZE_4K
	.comm	_BNXT_RE_PAGE_SIZE_2M,4,2       ; @BNXT_RE_PAGE_SIZE_2M
	.comm	_IB_DEVICE_CURR_QP_STATE_MOD,4,2 ; @IB_DEVICE_CURR_QP_STATE_MOD
	.comm	_IB_DEVICE_RC_RNR_NAK_GEN,4,2   ; @IB_DEVICE_RC_RNR_NAK_GEN
	.comm	_IB_DEVICE_SHUTDOWN_PORT,4,2    ; @IB_DEVICE_SHUTDOWN_PORT
	.comm	_IB_DEVICE_SYS_IMAGE_GUID,4,2   ; @IB_DEVICE_SYS_IMAGE_GUID
	.comm	_IB_DEVICE_LOCAL_DMA_LKEY,4,2   ; @IB_DEVICE_LOCAL_DMA_LKEY
	.comm	_IB_DEVICE_RESIZE_MAX_WR,4,2    ; @IB_DEVICE_RESIZE_MAX_WR
	.comm	_IB_DEVICE_PORT_ACTIVE_EVENT,4,2 ; @IB_DEVICE_PORT_ACTIVE_EVENT
	.comm	_IB_DEVICE_N_NOTIFY_CQ,4,2      ; @IB_DEVICE_N_NOTIFY_CQ
	.comm	_IB_DEVICE_MEM_WINDOW,4,2       ; @IB_DEVICE_MEM_WINDOW
	.comm	_IB_DEVICE_MEM_WINDOW_TYPE_2B,4,2 ; @IB_DEVICE_MEM_WINDOW_TYPE_2B
	.comm	_IB_DEVICE_MEM_MGT_EXTENSIONS,4,2 ; @IB_DEVICE_MEM_MGT_EXTENSIONS
	.comm	_IB_ATOMIC_NONE,8,3             ; @IB_ATOMIC_NONE
	.comm	_MAX_PBL_LVL_1_PGS,4,2          ; @MAX_PBL_LVL_1_PGS
	.comm	_BNXT_RE_DEFAULT_ACK_DELAY,4,2  ; @BNXT_RE_DEFAULT_ACK_DELAY
.subsections_via_symbols
