	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_gid
_update_gid:                            ## @update_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	(%rsi), %rbx
	movl	(%rbx), %edi
	callq	_be32_to_cpu
	movl	%eax, %r14d
	movl	104(%rbx), %edi
	callq	_be32_to_cpu
	shrl	$16, %eax
	movzbl	%al, %eax
	movq	_MLX4_QP_ST_UD@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_2
## %bb.1:
	movl	%r15d, %ecx
	orl	$128, %ecx
	movl	%ecx, 100(%rbx)
LBB0_2:
	movq	_MLX4_QP_ST_RC@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_MLX4_QP_ST_UC@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_8
LBB0_4:
	movq	_MLX4_QP_OPTPAR_PRIMARY_ADDR_PATH@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_6
## %bb.5:
	movl	%r15d, %eax
	andl	$127, %eax
	movl	%eax, 100(%rbx)
LBB0_6:
	movq	_MLX4_QP_OPTPAR_ALT_ADDR_PATH@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_8
## %bb.7:
	andl	$127, %r15d
	movl	%r15d, 96(%rbx)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX4_QP_ST_UD,8,3              ## @MLX4_QP_ST_UD
	.comm	_MLX4_QP_ST_RC,8,3              ## @MLX4_QP_ST_RC
	.comm	_MLX4_QP_ST_UC,8,3              ## @MLX4_QP_ST_UC
	.comm	_MLX4_QP_OPTPAR_PRIMARY_ADDR_PATH,4,2 ## @MLX4_QP_OPTPAR_PRIMARY_ADDR_PATH
	.comm	_MLX4_QP_OPTPAR_ALT_ADDR_PATH,4,2 ## @MLX4_QP_OPTPAR_ALT_ADDR_PATH
	.no_dead_strip	_update_gid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_gid
_update_gid:                            ; @update_gid
	.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
	ldr	x21, [x1]
	ldr	w0, [x21]
	bl	_be32_to_cpu
	mov	x20, x0
	ldr	w0, [x21, #104]
	bl	_be32_to_cpu
	ubfx	w8, w0, #16, #8
Lloh0:
	adrp	x9, _MLX4_QP_ST_UD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MLX4_QP_ST_UD@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	orr	w9, w19, #0x80
	str	w9, [x21, #100]
LBB0_2:
Lloh3:
	adrp	x9, _MLX4_QP_ST_RC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MLX4_QP_ST_RC@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _MLX4_QP_ST_UC@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MLX4_QP_ST_UC@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x9, x8
	ccmp	x10, x8, #4, ne
	b.ne	LBB0_7
; %bb.3:
Lloh9:
	adrp	x8, _MLX4_QP_OPTPAR_PRIMARY_ADDR_PATH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MLX4_QP_OPTPAR_PRIMARY_ADDR_PATH@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_5
; %bb.4:
	and	w8, w19, #0x7f
	str	w8, [x21, #100]
LBB0_5:
Lloh12:
	adrp	x8, _MLX4_QP_OPTPAR_ALT_ADDR_PATH@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MLX4_QP_OPTPAR_ALT_ADDR_PATH@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_7
; %bb.6:
	and	w8, w19, #0x7f
	str	w8, [x21, #96]
LBB0_7:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX4_QP_ST_UD,8,3              ; @MLX4_QP_ST_UD
	.comm	_MLX4_QP_ST_RC,8,3              ; @MLX4_QP_ST_RC
	.comm	_MLX4_QP_ST_UC,8,3              ; @MLX4_QP_ST_UC
	.comm	_MLX4_QP_OPTPAR_PRIMARY_ADDR_PATH,4,2 ; @MLX4_QP_OPTPAR_PRIMARY_ADDR_PATH
	.comm	_MLX4_QP_OPTPAR_ALT_ADDR_PATH,4,2 ; @MLX4_QP_OPTPAR_ALT_ADDR_PATH
	.no_dead_strip	_update_gid
.subsections_via_symbols
