	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_ib_query_device
_mlx4_ib_query_device:                  ## @mlx4_ib_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r12
	callq	_to_mdev
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	$16, %edi
	callq	_kzalloc
	movq	%rax, %r14
	movl	(%r15), %esi
	movl	$16, %edi
	callq	_kmalloc
	movq	%rax, %r15
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	testq	%r14, %r14
	je	LBB0_35
## %bb.1:
	testq	%r15, %r15
	je	LBB0_35
## %bb.2:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_init_query_mad
	movq	_IB_SMP_ATTR_NODE_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%r12, %rdi
	callq	_to_mdev
	movq	_MLX4_MAD_IFC_IGNORE_KEYS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r15, (%rsp)
	movq	%rax, %rdi
	movl	$1, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movq	%rbx, %r9
	callq	_mlx4_MAD_IFC
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_35
## %bb.3:
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$168, %edx
	callq	_memset
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14), %rdx
	movl	176(%rdx), %eax
	movl	%eax, 164(%r13)
	movq	_IB_DEVICE_CHANGE_PHY_PORT@GOTPCREL(%rip), %rcx
	movq	_IB_DEVICE_PORT_ACTIVE_EVENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	_IB_DEVICE_SYS_IMAGE_GUID@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_IB_DEVICE_RC_RNR_NAK_GEN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_IB_DEVICE_BLOCK_MULTICAST_LOOPBACK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r13)
	movl	(%rdx), %ecx
	movq	_MLX4_DEV_CAP_FLAG_BAD_PKEY_CNTR@GOTPCREL(%rip), %rsi
	testl	%ecx, (%rsi)
	je	LBB0_5
## %bb.4:
	movq	_IB_DEVICE_BAD_PKEY_CNTR@GOTPCREL(%rip), %rsi
	orl	(%rsi), %eax
	movl	%eax, (%r13)
LBB0_5:
	movq	_MLX4_DEV_CAP_FLAG_BAD_QKEY_CNTR@GOTPCREL(%rip), %rsi
	testl	%ecx, (%rsi)
	je	LBB0_7
## %bb.6:
	movq	_IB_DEVICE_BAD_QKEY_CNTR@GOTPCREL(%rip), %rsi
	orl	(%rsi), %eax
	movl	%eax, (%r13)
LBB0_7:
	movq	_MLX4_DEV_CAP_FLAG_APM@GOTPCREL(%rip), %rsi
	testl	%ecx, (%rsi)
	je	LBB0_9
## %bb.8:
	movq	_IB_DEVICE_AUTO_PATH_MIG@GOTPCREL(%rip), %rsi
	orl	(%rsi), %eax
	movl	%eax, (%r13)
LBB0_9:
	movq	_MLX4_DEV_CAP_FLAG_UD_AV_PORT@GOTPCREL(%rip), %rsi
	testl	%ecx, (%rsi)
	je	LBB0_11
## %bb.10:
	movq	_IB_DEVICE_UD_AV_PORT_ENFORCE@GOTPCREL(%rip), %rsi
	orl	(%rsi), %eax
	movl	%eax, (%r13)
LBB0_11:
	movq	_MLX4_DEV_CAP_FLAG_IPOIB_CSUM@GOTPCREL(%rip), %rsi
	testl	%ecx, (%rsi)
	je	LBB0_13
## %bb.12:
	movq	_IB_DEVICE_UD_IP_CSUM@GOTPCREL(%rip), %rsi
	orl	(%rsi), %eax
	movl	%eax, (%r13)
LBB0_13:
	cmpq	$0, 168(%rdx)
	je	LBB0_16
## %bb.14:
	movq	_MLX4_DEV_CAP_FLAG_BLH@GOTPCREL(%rip), %rsi
	testl	%ecx, (%rsi)
	je	LBB0_16
## %bb.15:
	movq	_IB_DEVICE_UD_TSO@GOTPCREL(%rip), %rsi
	orl	(%rsi), %eax
	movl	%eax, (%r13)
LBB0_16:
	movl	4(%rdx), %edx
	movq	_MLX4_BMME_FLAG_RESERVED_LKEY@GOTPCREL(%rip), %rsi
	testl	%edx, (%rsi)
	je	LBB0_18
## %bb.17:
	movq	_IB_DEVICE_LOCAL_DMA_LKEY@GOTPCREL(%rip), %rsi
	orl	(%rsi), %eax
	movl	%eax, (%r13)
LBB0_18:
	movq	_MLX4_BMME_FLAG_LOCAL_INV@GOTPCREL(%rip), %rsi
	testl	%edx, (%rsi)
	je	LBB0_22
## %bb.19:
	movq	_MLX4_BMME_FLAG_REMOTE_INV@GOTPCREL(%rip), %rsi
	testl	%edx, (%rsi)
	je	LBB0_22
## %bb.20:
	movq	_MLX4_BMME_FLAG_FAST_REG_WR@GOTPCREL(%rip), %rsi
	testl	%edx, (%rsi)
	je	LBB0_22
## %bb.21:
	movq	_IB_DEVICE_MEM_MGT_EXTENSIONS@GOTPCREL(%rip), %rsi
	orl	(%rsi), %eax
	movl	%eax, (%r13)
LBB0_22:
	movq	_MLX4_DEV_CAP_FLAG_XRC@GOTPCREL(%rip), %rsi
	testl	%ecx, (%rsi)
	je	LBB0_24
## %bb.23:
	movq	_IB_DEVICE_XRC@GOTPCREL(%rip), %rsi
	orl	(%rsi), %eax
	movl	%eax, (%r13)
LBB0_24:
	movq	_MLX4_DEV_CAP_FLAG_MEM_WINDOW@GOTPCREL(%rip), %rsi
	testl	%ecx, (%rsi)
	je	LBB0_26
## %bb.25:
	movq	_IB_DEVICE_MEM_WINDOW@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r13)
LBB0_26:
	movq	_MLX4_BMME_FLAG_TYPE_2_WIN@GOTPCREL(%rip), %rcx
	testl	%edx, (%rcx)
	je	LBB0_31
## %bb.27:
	movq	_MLX4_BMME_FLAG_WIN_TYPE_2B@GOTPCREL(%rip), %rcx
	andl	(%rcx), %edx
	jne	LBB0_28
## %bb.29:
	movq	_IB_DEVICE_MEM_WINDOW_TYPE_2A@GOTPCREL(%rip), %rcx
	jmp	LBB0_30
LBB0_28:
	movq	_IB_DEVICE_MEM_WINDOW_TYPE_2B@GOTPCREL(%rip), %rcx
LBB0_30:
	orl	(%rcx), %eax
	movl	%eax, (%r13)
LBB0_31:
	movq	(%r15), %rdi
	addq	$36, %rdi
	callq	_be32_to_cpup
	andl	$16777215, %eax                 ## imm = 0xFFFFFF
	movl	%eax, 4(%r13)
	movq	(%r14), %rax
	movq	184(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, 160(%r13)
	movq	(%r15), %rdi
	addq	$32, %rdi
	callq	_be32_to_cpup
	movl	%eax, 8(%r13)
	leaq	156(%r13), %rdi
	movq	(%r15), %rsi
	addq	$4, %rsi
	movl	$8, %edx
	callq	_memcpy
	movq	$-1, 16(%r13)
	movq	(%r14), %rax
	movl	160(%rax), %ecx
	movl	%ecx, 152(%r13)
	movl	8(%rax), %ecx
	subl	12(%rax), %ecx
	movl	%ecx, 24(%r13)
	movq	152(%rax), %rcx
	movq	_MLX4_IB_SQ_MAX_SPARE@GOTPCREL(%rip), %rdx
	subq	(%rdx), %rcx
	movq	%rcx, 144(%r13)
	movl	144(%rax), %esi
	movl	148(%rax), %edi
	callq	_min
	movl	%eax, 136(%r13)
	movq	(%r14), %rax
	movq	136(%rax), %rcx
	subq	128(%rax), %rcx
	movq	%rcx, 128(%r13)
	movl	120(%rax), %ecx
	movl	%ecx, 120(%r13)
	movq	112(%rax), %rcx
	subq	104(%rax), %rcx
	movq	%rcx, 112(%r13)
	movq	96(%rax), %rcx
	subq	88(%rax), %rcx
	movq	%rcx, 104(%r13)
	movl	16(%rax), %ecx
	movl	%ecx, 28(%r13)
	movl	80(%rax), %edx
	movl	%edx, 96(%r13)
	imull	24(%r13), %ecx
	movl	%ecx, 32(%r13)
	movq	72(%rax), %rcx
	subq	64(%rax), %rcx
	movq	%rcx, 88(%r13)
	movq	56(%rax), %rcx
	decq	%rcx
	movq	%rcx, 80(%r13)
	movl	52(%rax), %ecx
	movl	%ecx, 72(%r13)
	movq	_MLX4_MAX_FAST_REG_PAGES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 68(%r13)
	movl	48(%rax), %ecx
	movl	%ecx, 64(%r13)
	movq	_MLX4_DEV_CAP_FLAG_ATOMIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rax), %ecx
	jne	LBB0_32
## %bb.33:
	movq	_IB_ATOMIC_NONE@GOTPCREL(%rip), %rcx
	jmp	LBB0_34
LBB0_32:
	movq	_IB_ATOMIC_HCA@GOTPCREL(%rip), %rcx
LBB0_34:
	movl	(%rcx), %ecx
	movl	%ecx, 56(%r13)
	movl	%ecx, 60(%r13)
	movq	40(%rax), %rcx
	movl	4(%rcx), %ecx
	movl	%ecx, 52(%r13)
	movl	24(%rax), %ecx
	addl	20(%rax), %ecx
	movl	%ecx, 36(%r13)
	movl	28(%rax), %edx
	movl	%edx, 40(%r13)
	imull	%edx, %ecx
	movl	%ecx, 44(%r13)
	movl	32(%rax), %eax
	movl	%eax, 48(%r13)
	xorl	%ebx, %ebx
LBB0_35:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
	movq	%r15, %rdi
	callq	_kfree
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_IB_SMP_ATTR_NODE_INFO,4,2      ## @IB_SMP_ATTR_NODE_INFO
	.comm	_MLX4_MAD_IFC_IGNORE_KEYS,4,2   ## @MLX4_MAD_IFC_IGNORE_KEYS
	.comm	_IB_DEVICE_CHANGE_PHY_PORT,4,2  ## @IB_DEVICE_CHANGE_PHY_PORT
	.comm	_IB_DEVICE_PORT_ACTIVE_EVENT,4,2 ## @IB_DEVICE_PORT_ACTIVE_EVENT
	.comm	_IB_DEVICE_SYS_IMAGE_GUID,4,2   ## @IB_DEVICE_SYS_IMAGE_GUID
	.comm	_IB_DEVICE_RC_RNR_NAK_GEN,4,2   ## @IB_DEVICE_RC_RNR_NAK_GEN
	.comm	_IB_DEVICE_BLOCK_MULTICAST_LOOPBACK,4,2 ## @IB_DEVICE_BLOCK_MULTICAST_LOOPBACK
	.comm	_MLX4_DEV_CAP_FLAG_BAD_PKEY_CNTR,4,2 ## @MLX4_DEV_CAP_FLAG_BAD_PKEY_CNTR
	.comm	_IB_DEVICE_BAD_PKEY_CNTR,4,2    ## @IB_DEVICE_BAD_PKEY_CNTR
	.comm	_MLX4_DEV_CAP_FLAG_BAD_QKEY_CNTR,4,2 ## @MLX4_DEV_CAP_FLAG_BAD_QKEY_CNTR
	.comm	_IB_DEVICE_BAD_QKEY_CNTR,4,2    ## @IB_DEVICE_BAD_QKEY_CNTR
	.comm	_MLX4_DEV_CAP_FLAG_APM,4,2      ## @MLX4_DEV_CAP_FLAG_APM
	.comm	_IB_DEVICE_AUTO_PATH_MIG,4,2    ## @IB_DEVICE_AUTO_PATH_MIG
	.comm	_MLX4_DEV_CAP_FLAG_UD_AV_PORT,4,2 ## @MLX4_DEV_CAP_FLAG_UD_AV_PORT
	.comm	_IB_DEVICE_UD_AV_PORT_ENFORCE,4,2 ## @IB_DEVICE_UD_AV_PORT_ENFORCE
	.comm	_MLX4_DEV_CAP_FLAG_IPOIB_CSUM,4,2 ## @MLX4_DEV_CAP_FLAG_IPOIB_CSUM
	.comm	_IB_DEVICE_UD_IP_CSUM,4,2       ## @IB_DEVICE_UD_IP_CSUM
	.comm	_MLX4_DEV_CAP_FLAG_BLH,4,2      ## @MLX4_DEV_CAP_FLAG_BLH
	.comm	_IB_DEVICE_UD_TSO,4,2           ## @IB_DEVICE_UD_TSO
	.comm	_MLX4_BMME_FLAG_RESERVED_LKEY,4,2 ## @MLX4_BMME_FLAG_RESERVED_LKEY
	.comm	_IB_DEVICE_LOCAL_DMA_LKEY,4,2   ## @IB_DEVICE_LOCAL_DMA_LKEY
	.comm	_MLX4_BMME_FLAG_LOCAL_INV,4,2   ## @MLX4_BMME_FLAG_LOCAL_INV
	.comm	_MLX4_BMME_FLAG_REMOTE_INV,4,2  ## @MLX4_BMME_FLAG_REMOTE_INV
	.comm	_MLX4_BMME_FLAG_FAST_REG_WR,4,2 ## @MLX4_BMME_FLAG_FAST_REG_WR
	.comm	_IB_DEVICE_MEM_MGT_EXTENSIONS,4,2 ## @IB_DEVICE_MEM_MGT_EXTENSIONS
	.comm	_MLX4_DEV_CAP_FLAG_XRC,4,2      ## @MLX4_DEV_CAP_FLAG_XRC
	.comm	_IB_DEVICE_XRC,4,2              ## @IB_DEVICE_XRC
	.comm	_MLX4_DEV_CAP_FLAG_MEM_WINDOW,4,2 ## @MLX4_DEV_CAP_FLAG_MEM_WINDOW
	.comm	_IB_DEVICE_MEM_WINDOW,4,2       ## @IB_DEVICE_MEM_WINDOW
	.comm	_MLX4_BMME_FLAG_TYPE_2_WIN,4,2  ## @MLX4_BMME_FLAG_TYPE_2_WIN
	.comm	_MLX4_BMME_FLAG_WIN_TYPE_2B,4,2 ## @MLX4_BMME_FLAG_WIN_TYPE_2B
	.comm	_IB_DEVICE_MEM_WINDOW_TYPE_2B,4,2 ## @IB_DEVICE_MEM_WINDOW_TYPE_2B
	.comm	_IB_DEVICE_MEM_WINDOW_TYPE_2A,4,2 ## @IB_DEVICE_MEM_WINDOW_TYPE_2A
	.comm	_MLX4_IB_SQ_MAX_SPARE,8,3       ## @MLX4_IB_SQ_MAX_SPARE
	.comm	_MLX4_MAX_FAST_REG_PAGES,4,2    ## @MLX4_MAX_FAST_REG_PAGES
	.comm	_MLX4_DEV_CAP_FLAG_ATOMIC,4,2   ## @MLX4_DEV_CAP_FLAG_ATOMIC
	.comm	_IB_ATOMIC_HCA,4,2              ## @IB_ATOMIC_HCA
	.comm	_IB_ATOMIC_NONE,4,2             ## @IB_ATOMIC_NONE
	.no_dead_strip	_mlx4_ib_query_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_ib_query_device
_mlx4_ib_query_device:                  ; @mlx4_ib_query_device
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x23, x0
	bl	_to_mdev
	mov	x22, x0
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
Lloh3:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w0, #16
	bl	_kzalloc
	mov	x20, x0
	ldr	w1, [x21]
	mov	w0, #16
	bl	_kmalloc
	mov	x21, x0
	cmp	x20, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
	neg	w23, w24
	b	LBB0_29
LBB0_2:
	mov	x0, x20
	bl	_init_query_mad
Lloh5:
	adrp	x8, _IB_SMP_ATTR_NODE_INFO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IB_SMP_ATTR_NODE_INFO@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x20, #8]
	mov	x0, x23
	bl	_to_mdev
Lloh8:
	adrp	x8, _MLX4_MAD_IFC_IGNORE_KEYS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MLX4_MAD_IFC_IGNORE_KEYS@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	w2, #1
	mov	x3, #0
	mov	x4, #0
	mov	x5, x20
	mov	x6, x21
	bl	_mlx4_MAD_IFC
	mov	x23, x0
	cbnz	w0, LBB0_29
; %bb.3:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #168
	bl	_memset
	ldr	x10, [x22]
	ldr	w8, [x10, #176]
Lloh11:
	adrp	x9, _IB_DEVICE_CHANGE_PHY_PORT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IB_DEVICE_CHANGE_PHY_PORT@GOTPAGEOFF]
	str	w8, [x19, #164]
Lloh13:
	ldr	w8, [x9]
Lloh14:
	adrp	x9, _IB_DEVICE_PORT_ACTIVE_EVENT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IB_DEVICE_PORT_ACTIVE_EVENT@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh17:
	adrp	x9, _IB_DEVICE_SYS_IMAGE_GUID@GOTPAGE
Lloh18:
	ldr	x9, [x9, _IB_DEVICE_SYS_IMAGE_GUID@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh20:
	adrp	x9, _IB_DEVICE_RC_RNR_NAK_GEN@GOTPAGE
Lloh21:
	ldr	x9, [x9, _IB_DEVICE_RC_RNR_NAK_GEN@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh23:
	adrp	x9, _IB_DEVICE_BLOCK_MULTICAST_LOOPBACK@GOTPAGE
Lloh24:
	ldr	x9, [x9, _IB_DEVICE_BLOCK_MULTICAST_LOOPBACK@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19]
	ldr	w9, [x10]
Lloh26:
	adrp	x11, _MLX4_DEV_CAP_FLAG_BAD_PKEY_CNTR@GOTPAGE
Lloh27:
	ldr	x11, [x11, _MLX4_DEV_CAP_FLAG_BAD_PKEY_CNTR@GOTPAGEOFF]
Lloh28:
	ldr	w11, [x11]
	tst	w11, w9
	b.eq	LBB0_5
; %bb.4:
Lloh29:
	adrp	x11, _IB_DEVICE_BAD_PKEY_CNTR@GOTPAGE
Lloh30:
	ldr	x11, [x11, _IB_DEVICE_BAD_PKEY_CNTR@GOTPAGEOFF]
Lloh31:
	ldr	w11, [x11]
	orr	w8, w11, w8
	str	w8, [x19]
LBB0_5:
Lloh32:
	adrp	x11, _MLX4_DEV_CAP_FLAG_BAD_QKEY_CNTR@GOTPAGE
Lloh33:
	ldr	x11, [x11, _MLX4_DEV_CAP_FLAG_BAD_QKEY_CNTR@GOTPAGEOFF]
Lloh34:
	ldr	w11, [x11]
	tst	w11, w9
	b.eq	LBB0_7
; %bb.6:
Lloh35:
	adrp	x11, _IB_DEVICE_BAD_QKEY_CNTR@GOTPAGE
Lloh36:
	ldr	x11, [x11, _IB_DEVICE_BAD_QKEY_CNTR@GOTPAGEOFF]
Lloh37:
	ldr	w11, [x11]
	orr	w8, w8, w11
	str	w8, [x19]
LBB0_7:
Lloh38:
	adrp	x11, _MLX4_DEV_CAP_FLAG_APM@GOTPAGE
Lloh39:
	ldr	x11, [x11, _MLX4_DEV_CAP_FLAG_APM@GOTPAGEOFF]
Lloh40:
	ldr	w11, [x11]
	tst	w11, w9
	b.eq	LBB0_9
; %bb.8:
Lloh41:
	adrp	x11, _IB_DEVICE_AUTO_PATH_MIG@GOTPAGE
Lloh42:
	ldr	x11, [x11, _IB_DEVICE_AUTO_PATH_MIG@GOTPAGEOFF]
Lloh43:
	ldr	w11, [x11]
	orr	w8, w8, w11
	str	w8, [x19]
LBB0_9:
Lloh44:
	adrp	x11, _MLX4_DEV_CAP_FLAG_UD_AV_PORT@GOTPAGE
Lloh45:
	ldr	x11, [x11, _MLX4_DEV_CAP_FLAG_UD_AV_PORT@GOTPAGEOFF]
Lloh46:
	ldr	w11, [x11]
	tst	w11, w9
	b.eq	LBB0_11
; %bb.10:
Lloh47:
	adrp	x11, _IB_DEVICE_UD_AV_PORT_ENFORCE@GOTPAGE
Lloh48:
	ldr	x11, [x11, _IB_DEVICE_UD_AV_PORT_ENFORCE@GOTPAGEOFF]
Lloh49:
	ldr	w11, [x11]
	orr	w8, w8, w11
	str	w8, [x19]
LBB0_11:
Lloh50:
	adrp	x11, _MLX4_DEV_CAP_FLAG_IPOIB_CSUM@GOTPAGE
Lloh51:
	ldr	x11, [x11, _MLX4_DEV_CAP_FLAG_IPOIB_CSUM@GOTPAGEOFF]
Lloh52:
	ldr	w11, [x11]
	tst	w11, w9
	b.eq	LBB0_13
; %bb.12:
Lloh53:
	adrp	x11, _IB_DEVICE_UD_IP_CSUM@GOTPAGE
Lloh54:
	ldr	x11, [x11, _IB_DEVICE_UD_IP_CSUM@GOTPAGEOFF]
Lloh55:
	ldr	w11, [x11]
	orr	w8, w8, w11
	str	w8, [x19]
LBB0_13:
	ldr	x11, [x10, #168]
	cbz	x11, LBB0_16
; %bb.14:
Lloh56:
	adrp	x11, _MLX4_DEV_CAP_FLAG_BLH@GOTPAGE
Lloh57:
	ldr	x11, [x11, _MLX4_DEV_CAP_FLAG_BLH@GOTPAGEOFF]
Lloh58:
	ldr	w11, [x11]
	tst	w11, w9
	b.eq	LBB0_16
; %bb.15:
Lloh59:
	adrp	x11, _IB_DEVICE_UD_TSO@GOTPAGE
Lloh60:
	ldr	x11, [x11, _IB_DEVICE_UD_TSO@GOTPAGEOFF]
Lloh61:
	ldr	w11, [x11]
	orr	w8, w8, w11
	str	w8, [x19]
LBB0_16:
	ldr	w10, [x10, #4]
Lloh62:
	adrp	x11, _MLX4_BMME_FLAG_RESERVED_LKEY@GOTPAGE
Lloh63:
	ldr	x11, [x11, _MLX4_BMME_FLAG_RESERVED_LKEY@GOTPAGEOFF]
Lloh64:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_18
; %bb.17:
Lloh65:
	adrp	x11, _IB_DEVICE_LOCAL_DMA_LKEY@GOTPAGE
Lloh66:
	ldr	x11, [x11, _IB_DEVICE_LOCAL_DMA_LKEY@GOTPAGEOFF]
Lloh67:
	ldr	w11, [x11]
	orr	w8, w8, w11
	str	w8, [x19]
LBB0_18:
Lloh68:
	adrp	x11, _MLX4_BMME_FLAG_LOCAL_INV@GOTPAGE
Lloh69:
	ldr	x11, [x11, _MLX4_BMME_FLAG_LOCAL_INV@GOTPAGEOFF]
Lloh70:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_22
; %bb.19:
Lloh71:
	adrp	x11, _MLX4_BMME_FLAG_REMOTE_INV@GOTPAGE
Lloh72:
	ldr	x11, [x11, _MLX4_BMME_FLAG_REMOTE_INV@GOTPAGEOFF]
Lloh73:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_22
; %bb.20:
Lloh74:
	adrp	x11, _MLX4_BMME_FLAG_FAST_REG_WR@GOTPAGE
Lloh75:
	ldr	x11, [x11, _MLX4_BMME_FLAG_FAST_REG_WR@GOTPAGEOFF]
Lloh76:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_22
; %bb.21:
Lloh77:
	adrp	x11, _IB_DEVICE_MEM_MGT_EXTENSIONS@GOTPAGE
Lloh78:
	ldr	x11, [x11, _IB_DEVICE_MEM_MGT_EXTENSIONS@GOTPAGEOFF]
Lloh79:
	ldr	w11, [x11]
	orr	w8, w8, w11
	str	w8, [x19]
LBB0_22:
Lloh80:
	adrp	x11, _MLX4_DEV_CAP_FLAG_XRC@GOTPAGE
Lloh81:
	ldr	x11, [x11, _MLX4_DEV_CAP_FLAG_XRC@GOTPAGEOFF]
Lloh82:
	ldr	w11, [x11]
	tst	w11, w9
	b.eq	LBB0_24
; %bb.23:
Lloh83:
	adrp	x11, _IB_DEVICE_XRC@GOTPAGE
Lloh84:
	ldr	x11, [x11, _IB_DEVICE_XRC@GOTPAGEOFF]
Lloh85:
	ldr	w11, [x11]
	orr	w8, w8, w11
	str	w8, [x19]
LBB0_24:
Lloh86:
	adrp	x11, _MLX4_DEV_CAP_FLAG_MEM_WINDOW@GOTPAGE
Lloh87:
	ldr	x11, [x11, _MLX4_DEV_CAP_FLAG_MEM_WINDOW@GOTPAGEOFF]
Lloh88:
	ldr	w11, [x11]
	tst	w11, w9
	b.eq	LBB0_26
; %bb.25:
Lloh89:
	adrp	x9, _IB_DEVICE_MEM_WINDOW@GOTPAGE
Lloh90:
	ldr	x9, [x9, _IB_DEVICE_MEM_WINDOW@GOTPAGEOFF]
Lloh91:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19]
LBB0_26:
Lloh92:
	adrp	x9, _MLX4_BMME_FLAG_TYPE_2_WIN@GOTPAGE
Lloh93:
	ldr	x9, [x9, _MLX4_BMME_FLAG_TYPE_2_WIN@GOTPAGEOFF]
Lloh94:
	ldr	w9, [x9]
	tst	w9, w10
	b.eq	LBB0_28
; %bb.27:
Lloh95:
	adrp	x9, _MLX4_BMME_FLAG_WIN_TYPE_2B@GOTPAGE
Lloh96:
	ldr	x9, [x9, _MLX4_BMME_FLAG_WIN_TYPE_2B@GOTPAGEOFF]
Lloh97:
	adrp	x11, _IB_DEVICE_MEM_WINDOW_TYPE_2A@GOTPAGE
Lloh98:
	ldr	x11, [x11, _IB_DEVICE_MEM_WINDOW_TYPE_2A@GOTPAGEOFF]
Lloh99:
	adrp	x12, _IB_DEVICE_MEM_WINDOW_TYPE_2B@GOTPAGE
Lloh100:
	ldr	x12, [x12, _IB_DEVICE_MEM_WINDOW_TYPE_2B@GOTPAGEOFF]
Lloh101:
	ldr	w9, [x9]
	tst	w9, w10
	csel	x9, x11, x12, eq
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19]
LBB0_28:
	ldr	x8, [x21]
	add	x0, x8, #36
	bl	_be32_to_cpup
	and	w8, w0, #0xffffff
	str	w8, [x19, #4]
	ldr	x8, [x22]
	ldr	x8, [x8, #184]
	ldr	w8, [x8]
	str	w8, [x19, #160]
	ldr	x8, [x21]
	add	x0, x8, #32
	bl	_be32_to_cpup
	str	w0, [x19, #8]
	add	x0, x19, #156
	ldr	x8, [x21]
	add	x1, x8, #4
	mov	w2, #8
	bl	_memcpy
	mov	x8, #-1
	str	x8, [x19, #16]
	ldr	x8, [x22]
	ldr	w9, [x8, #160]
	str	w9, [x19, #152]
	ldp	w9, w10, [x8, #8]
	sub	w9, w9, w10
	str	w9, [x19, #24]
Lloh102:
	adrp	x9, _MLX4_IB_SQ_MAX_SPARE@GOTPAGE
Lloh103:
	ldr	x9, [x9, _MLX4_IB_SQ_MAX_SPARE@GOTPAGEOFF]
	ldr	x10, [x8, #152]
Lloh104:
	ldr	x9, [x9]
	sub	x9, x10, x9
	str	x9, [x19, #144]
	ldp	w1, w0, [x8, #144]
	bl	_min
	mov	w23, #0
	str	w0, [x19, #136]
	ldr	x8, [x22]
	ldp	x10, x9, [x8, #128]
	sub	x9, x9, x10
	str	x9, [x19, #128]
	ldr	w9, [x8, #120]
	str	w9, [x19, #120]
	ldp	x10, x9, [x8, #104]
	sub	x9, x9, x10
	ldp	x11, x10, [x8, #88]
	sub	x10, x10, x11
	stp	x10, x9, [x19, #104]
	ldr	w9, [x8, #80]
	str	w9, [x19, #96]
	ldr	w9, [x19, #24]
	ldp	w10, w11, [x8, #16]
	mul	w9, w9, w10
	stp	w10, w9, [x19, #28]
	ldp	x10, x9, [x8, #64]
	ldr	x12, [x8, #56]
	sub	x9, x9, x10
	sub	x10, x12, #1
	stp	x10, x9, [x19, #80]
	ldp	w10, w9, [x8, #48]
	str	w9, [x19, #72]
Lloh105:
	adrp	x9, _MLX4_MAX_FAST_REG_PAGES@GOTPAGE
Lloh106:
	ldr	x9, [x9, _MLX4_MAX_FAST_REG_PAGES@GOTPAGEOFF]
Lloh107:
	ldr	w9, [x9]
	stp	w10, w9, [x19, #64]
	ldr	w9, [x8]
Lloh108:
	adrp	x10, _MLX4_DEV_CAP_FLAG_ATOMIC@GOTPAGE
Lloh109:
	ldr	x10, [x10, _MLX4_DEV_CAP_FLAG_ATOMIC@GOTPAGEOFF]
Lloh110:
	ldr	w10, [x10]
	tst	w10, w9
Lloh111:
	adrp	x9, _IB_ATOMIC_HCA@GOTPAGE
Lloh112:
	ldr	x9, [x9, _IB_ATOMIC_HCA@GOTPAGEOFF]
Lloh113:
	adrp	x10, _IB_ATOMIC_NONE@GOTPAGE
Lloh114:
	ldr	x10, [x10, _IB_ATOMIC_NONE@GOTPAGEOFF]
	csel	x9, x10, x9, eq
	ldr	w9, [x9]
	stp	w9, w9, [x19, #56]
	ldr	x9, [x8, #40]
	ldr	w9, [x9, #4]
	str	w9, [x19, #52]
	ldp	w9, w10, [x8, #24]
	add	w9, w9, w11
	stp	w9, w10, [x19, #36]
	mul	w9, w10, w9
	ldr	w8, [x8, #32]
	stp	w9, w8, [x19, #44]
LBB0_29:
	mov	x0, x20
	bl	_kfree
	mov	x0, x21
	bl	_kfree
	mov	x0, x23
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.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	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpLdrGot	Lloh99, Lloh100
	.loh AdrpLdrGot	Lloh97, Lloh98
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh101
	.loh AdrpLdrGot	Lloh113, Lloh114
	.loh AdrpLdrGot	Lloh111, Lloh112
	.loh AdrpLdrGotLdr	Lloh108, Lloh109, Lloh110
	.loh AdrpLdrGotLdr	Lloh105, Lloh106, Lloh107
	.loh AdrpLdrGotLdr	Lloh102, Lloh103, Lloh104
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_IB_SMP_ATTR_NODE_INFO,4,2      ; @IB_SMP_ATTR_NODE_INFO
	.comm	_MLX4_MAD_IFC_IGNORE_KEYS,4,2   ; @MLX4_MAD_IFC_IGNORE_KEYS
	.comm	_IB_DEVICE_CHANGE_PHY_PORT,4,2  ; @IB_DEVICE_CHANGE_PHY_PORT
	.comm	_IB_DEVICE_PORT_ACTIVE_EVENT,4,2 ; @IB_DEVICE_PORT_ACTIVE_EVENT
	.comm	_IB_DEVICE_SYS_IMAGE_GUID,4,2   ; @IB_DEVICE_SYS_IMAGE_GUID
	.comm	_IB_DEVICE_RC_RNR_NAK_GEN,4,2   ; @IB_DEVICE_RC_RNR_NAK_GEN
	.comm	_IB_DEVICE_BLOCK_MULTICAST_LOOPBACK,4,2 ; @IB_DEVICE_BLOCK_MULTICAST_LOOPBACK
	.comm	_MLX4_DEV_CAP_FLAG_BAD_PKEY_CNTR,4,2 ; @MLX4_DEV_CAP_FLAG_BAD_PKEY_CNTR
	.comm	_IB_DEVICE_BAD_PKEY_CNTR,4,2    ; @IB_DEVICE_BAD_PKEY_CNTR
	.comm	_MLX4_DEV_CAP_FLAG_BAD_QKEY_CNTR,4,2 ; @MLX4_DEV_CAP_FLAG_BAD_QKEY_CNTR
	.comm	_IB_DEVICE_BAD_QKEY_CNTR,4,2    ; @IB_DEVICE_BAD_QKEY_CNTR
	.comm	_MLX4_DEV_CAP_FLAG_APM,4,2      ; @MLX4_DEV_CAP_FLAG_APM
	.comm	_IB_DEVICE_AUTO_PATH_MIG,4,2    ; @IB_DEVICE_AUTO_PATH_MIG
	.comm	_MLX4_DEV_CAP_FLAG_UD_AV_PORT,4,2 ; @MLX4_DEV_CAP_FLAG_UD_AV_PORT
	.comm	_IB_DEVICE_UD_AV_PORT_ENFORCE,4,2 ; @IB_DEVICE_UD_AV_PORT_ENFORCE
	.comm	_MLX4_DEV_CAP_FLAG_IPOIB_CSUM,4,2 ; @MLX4_DEV_CAP_FLAG_IPOIB_CSUM
	.comm	_IB_DEVICE_UD_IP_CSUM,4,2       ; @IB_DEVICE_UD_IP_CSUM
	.comm	_MLX4_DEV_CAP_FLAG_BLH,4,2      ; @MLX4_DEV_CAP_FLAG_BLH
	.comm	_IB_DEVICE_UD_TSO,4,2           ; @IB_DEVICE_UD_TSO
	.comm	_MLX4_BMME_FLAG_RESERVED_LKEY,4,2 ; @MLX4_BMME_FLAG_RESERVED_LKEY
	.comm	_IB_DEVICE_LOCAL_DMA_LKEY,4,2   ; @IB_DEVICE_LOCAL_DMA_LKEY
	.comm	_MLX4_BMME_FLAG_LOCAL_INV,4,2   ; @MLX4_BMME_FLAG_LOCAL_INV
	.comm	_MLX4_BMME_FLAG_REMOTE_INV,4,2  ; @MLX4_BMME_FLAG_REMOTE_INV
	.comm	_MLX4_BMME_FLAG_FAST_REG_WR,4,2 ; @MLX4_BMME_FLAG_FAST_REG_WR
	.comm	_IB_DEVICE_MEM_MGT_EXTENSIONS,4,2 ; @IB_DEVICE_MEM_MGT_EXTENSIONS
	.comm	_MLX4_DEV_CAP_FLAG_XRC,4,2      ; @MLX4_DEV_CAP_FLAG_XRC
	.comm	_IB_DEVICE_XRC,4,2              ; @IB_DEVICE_XRC
	.comm	_MLX4_DEV_CAP_FLAG_MEM_WINDOW,4,2 ; @MLX4_DEV_CAP_FLAG_MEM_WINDOW
	.comm	_IB_DEVICE_MEM_WINDOW,4,2       ; @IB_DEVICE_MEM_WINDOW
	.comm	_MLX4_BMME_FLAG_TYPE_2_WIN,4,2  ; @MLX4_BMME_FLAG_TYPE_2_WIN
	.comm	_MLX4_BMME_FLAG_WIN_TYPE_2B,4,2 ; @MLX4_BMME_FLAG_WIN_TYPE_2B
	.comm	_IB_DEVICE_MEM_WINDOW_TYPE_2B,4,2 ; @IB_DEVICE_MEM_WINDOW_TYPE_2B
	.comm	_IB_DEVICE_MEM_WINDOW_TYPE_2A,4,2 ; @IB_DEVICE_MEM_WINDOW_TYPE_2A
	.comm	_MLX4_IB_SQ_MAX_SPARE,8,3       ; @MLX4_IB_SQ_MAX_SPARE
	.comm	_MLX4_MAX_FAST_REG_PAGES,4,2    ; @MLX4_MAX_FAST_REG_PAGES
	.comm	_MLX4_DEV_CAP_FLAG_ATOMIC,4,2   ; @MLX4_DEV_CAP_FLAG_ATOMIC
	.comm	_IB_ATOMIC_HCA,4,2              ; @IB_ATOMIC_HCA
	.comm	_IB_ATOMIC_NONE,4,2             ; @IB_ATOMIC_NONE
	.no_dead_strip	_mlx4_ib_query_device
.subsections_via_symbols
