	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___mlx4_ib_query_gid            ## -- Begin function __mlx4_ib_query_gid
	.p2align	4, 0x90
___mlx4_ib_query_gid:                   ## @__mlx4_ib_query_gid
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r13
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movl	%esi, %r14d
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	callq	_to_mdev
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	_MLX4_MAD_IFC_IGNORE_KEYS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$24, %edi
	callq	_kzalloc
	movq	%rax, %r15
	movl	(%rbx), %esi
	movl	$24, %edi
	callq	_kmalloc
	movq	%rax, %rbx
	testq	%r15, %r15
	je	LBB0_11
## %bb.1:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.2:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_init_query_mad
	movq	_IB_SMP_ATTR_PORT_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movl	%r14d, %edi
	callq	_cpu_to_be32
	movq	%rax, 8(%r15)
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %edi
	callq	_mlx4_is_mfunc
	xorl	%r13d, %r13d
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_MLX4_MAD_IFC_NET_VIEW@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_4:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	cmovel	%eax, %r13d
	orl	-76(%rbp), %r13d                ## 4-byte Folded Reload
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rsp)
	movq	%rbx, %rdi
	movq	%rax, %rbx
	movl	%r13d, %esi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movq	%r15, %r9
	callq	_mlx4_MAD_IFC
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.5:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	(%rbx), %rsi
	addq	$8, %rsi
	movl	$8, %edx
	callq	_memcpy
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %edi
	callq	_mlx4_is_mfunc
	cmpl	$0, -72(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_8
## %bb.6:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_8
## %bb.7:
	testq	%rax, %rax
	je	LBB0_8
## %bb.10:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	addq	$8, %rdi
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_11
LBB0_8:
	movq	%r15, %rdi
	callq	_init_query_mad
	movq	_IB_SMP_ATTR_GUID_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, %r12d
	leal	7(%rax), %r14d
	testl	%eax, %eax
	cmovnsl	%eax, %r14d
	movl	%r14d, %edi
	sarl	$3, %edi
	callq	_cpu_to_be32
	movq	%rax, 8(%r15)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rsp)
	movq	%rbx, %rdi
	movq	%rax, %rbx
	movl	%r13d, %esi
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movq	%r15, %r9
	callq	_mlx4_MAD_IFC
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.9:
	andl	$-8, %r14d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	subl	%r14d, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rdi
	addq	$8, %rdi
	shll	$3, %eax
	movslq	%eax, %rsi
	addq	(%rbx), %rsi
	movl	$8, %edx
	callq	_memcpy
	xorl	%r12d, %r12d
LBB0_11:
	movq	%r15, %rdi
	callq	_kfree
	movq	%rbx, %rdi
	callq	_kfree
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MLX4_MAD_IFC_IGNORE_KEYS,4,2   ## @MLX4_MAD_IFC_IGNORE_KEYS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_IB_SMP_ATTR_PORT_INFO,4,2      ## @IB_SMP_ATTR_PORT_INFO
	.comm	_MLX4_MAD_IFC_NET_VIEW,4,2      ## @MLX4_MAD_IFC_NET_VIEW
	.comm	_IB_SMP_ATTR_GUID_INFO,4,2      ## @IB_SMP_ATTR_GUID_INFO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___mlx4_ib_query_gid            ; -- Begin function __mlx4_ib_query_gid
	.p2align	2
___mlx4_ib_query_gid:                   ; @__mlx4_ib_query_gid
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x25, x4
	mov	x22, x3
	mov	x21, x2
	mov	x23, x1
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w27, [x8]
	bl	_to_mdev
	mov	x24, x0
Lloh3:
	adrp	x8, _MLX4_MAD_IFC_IGNORE_KEYS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLX4_MAD_IFC_IGNORE_KEYS@GOTPAGEOFF]
Lloh5:
	ldr	w26, [x8]
Lloh6:
	adrp	x20, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x20, [x20, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	w0, #24
	bl	_kzalloc
	mov	x19, x0
	ldr	w1, [x20]
	mov	w0, #24
	bl	_kmalloc
	mov	x20, x0
	cmp	x19, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
	neg	w27, w27
	b	LBB0_9
LBB0_2:
	mov	x0, x19
	bl	_init_query_mad
Lloh8:
	adrp	x8, _IB_SMP_ATTR_PORT_INFO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IB_SMP_ATTR_PORT_INFO@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	mov	x0, x23
	bl	_cpu_to_be32
	str	x0, [x19, #8]
	ldr	w0, [x24]
	bl	_mlx4_is_mfunc
	cmp	x0, #0
	ccmp	w25, #0, #4, ne
Lloh11:
	adrp	x8, _MLX4_MAD_IFC_NET_VIEW@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MLX4_MAD_IFC_NET_VIEW@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	csel	w8, w8, wzr, ne
	orr	w26, w8, w26
	mov	x0, x24
	mov	x1, x26
	mov	x2, x23
	mov	x3, #0
	mov	x4, #0
	mov	x5, x19
	mov	x6, x20
	bl	_mlx4_MAD_IFC
	mov	x27, x0
	cbnz	w0, LBB0_9
; %bb.3:
	ldr	x0, [x22]
	ldr	x8, [x20]
	add	x1, x8, #8
	mov	w2, #8
	bl	_memcpy
	ldr	w0, [x24]
	bl	_mlx4_is_mfunc
	cbz	w21, LBB0_7
; %bb.4:
	cbnz	w25, LBB0_7
; %bb.5:
	cbz	x0, LBB0_7
; %bb.6:
	ldr	x8, [x22]
	add	x0, x8, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	mov	w27, #0
	b	LBB0_9
LBB0_7:
	mov	x0, x19
	bl	_init_query_mad
Lloh14:
	adrp	x8, _IB_SMP_ATTR_GUID_INFO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IB_SMP_ATTR_GUID_INFO@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	add	w8, w21, #7
	cmp	w21, #0
	csel	w8, w8, w21, lt
	asr	w25, w8, #3
	mov	x0, x25
	bl	_cpu_to_be32
	str	x0, [x19, #8]
	mov	x0, x24
	mov	x1, x26
	mov	x2, x23
	mov	x3, #0
	mov	x4, #0
	mov	x5, x19
	mov	x6, x20
	bl	_mlx4_MAD_IFC
	mov	x27, x0
	cbnz	w0, LBB0_9
; %bb.8:
	ldr	x8, [x22]
	add	x0, x8, #8
	ldr	x8, [x20]
	sub	w9, w21, w25, lsl #3
	lsl	w9, w9, #3
	add	x1, x8, w9, sxtw
	mov	w2, #8
	bl	_memcpy
LBB0_9:
	mov	x0, x19
	bl	_kfree
	mov	x0, x20
	bl	_kfree
	mov	x0, x27
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MLX4_MAD_IFC_IGNORE_KEYS,4,2   ; @MLX4_MAD_IFC_IGNORE_KEYS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_IB_SMP_ATTR_PORT_INFO,4,2      ; @IB_SMP_ATTR_PORT_INFO
	.comm	_MLX4_MAD_IFC_NET_VIEW,4,2      ; @MLX4_MAD_IFC_NET_VIEW
	.comm	_IB_SMP_ATTR_GUID_INFO,4,2      ; @IB_SMP_ATTR_GUID_INFO
.subsections_via_symbols
