	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_ib_update_gids_v1
_mlx4_ib_update_gids_v1:                ## @mlx4_ib_update_gids_v1
	.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
	movl	%edx, %r14d
	movq	%rdi, %r13
	movq	(%rsi), %r12
	movq	%r12, %rdi
	callq	_mlx4_alloc_cmd_mailbox
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_2:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_MLX4_MAX_PORT_GIDS@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_5
## %bb.3:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rbx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	$4, %edx
	callq	_memcpy
	incq	%r14
	movslq	(%r15), %rax
	addq	$4, %rbx
	addq	$4, %r13
	cmpq	%rax, %r14
	jl	LBB0_4
LBB0_5:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	(%r14), %esi
	movq	_MLX4_SET_PORT_GID_TABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shll	$8, %edx
	orl	-44(%rbp), %edx                 ## 4-byte Folded Reload
	movq	_MLX4_CMD_SET_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_MLX4_CMD_TIME_CLASS_B@GOTPCREL(%rip), %r15
	movl	(%r15), %r9d
	movq	_MLX4_CMD_WRAPPED@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movl	%eax, (%rsp)
	movq	%r12, %rdi
	movl	$1, %ecx
	callq	_mlx4_cmd
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_mlx4_is_bonded
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	(%r14), %esi
	movq	_MLX4_SET_PORT_GID_TABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shll	$8, %edx
	orl	$2, %edx
	movq	_MLX4_CMD_SET_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	(%r15), %r9d
	movl	(%r13), %eax
	movl	%eax, (%rsp)
	movq	%r12, %rdi
	movl	$1, %ecx
	callq	_mlx4_cmd
	addl	%eax, %ebx
LBB0_7:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_mlx4_free_cmd_mailbox
LBB0_8:
	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	_MLX4_MAX_PORT_GIDS,4,2         ## @MLX4_MAX_PORT_GIDS
	.comm	_MLX4_SET_PORT_GID_TABLE,4,2    ## @MLX4_SET_PORT_GID_TABLE
	.comm	_MLX4_CMD_SET_PORT,4,2          ## @MLX4_CMD_SET_PORT
	.comm	_MLX4_CMD_TIME_CLASS_B,4,2      ## @MLX4_CMD_TIME_CLASS_B
	.comm	_MLX4_CMD_WRAPPED,4,2           ## @MLX4_CMD_WRAPPED
	.no_dead_strip	_mlx4_ib_update_gids_v1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_ib_update_gids_v1
_mlx4_ib_update_gids_v1:                ; @mlx4_ib_update_gids_v1
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x2
	mov	x22, x0
	ldr	x19, [x1]
	mov	x0, x19
	bl	_mlx4_alloc_cmd_mailbox
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_8
LBB0_2:
Lloh3:
	adrp	x24, _MLX4_MAX_PORT_GIDS@GOTPAGE
Lloh4:
	ldr	x24, [x24, _MLX4_MAX_PORT_GIDS@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x25, #0
	ldr	x23, [x20, #8]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x22
	mov	w2, #4
	bl	_memcpy
	add	x25, x25, #1
	ldrsw	x8, [x24]
	add	x23, x23, #4
	add	x22, x22, #4
	cmp	x25, x8
	b.lt	LBB0_4
LBB0_5:
Lloh5:
	adrp	x23, _MLX4_SET_PORT_GID_TABLE@GOTPAGE
Lloh6:
	ldr	x23, [x23, _MLX4_SET_PORT_GID_TABLE@GOTPAGEOFF]
	ldr	w1, [x20]
	ldr	w8, [x23]
	orr	w2, w21, w8, lsl #8
Lloh7:
	adrp	x22, _MLX4_CMD_SET_PORT@GOTPAGE
Lloh8:
	ldr	x22, [x22, _MLX4_CMD_SET_PORT@GOTPAGEOFF]
	ldr	w4, [x22]
Lloh9:
	adrp	x24, _MLX4_CMD_TIME_CLASS_B@GOTPAGE
Lloh10:
	ldr	x24, [x24, _MLX4_CMD_TIME_CLASS_B@GOTPAGEOFF]
	ldr	w5, [x24]
Lloh11:
	adrp	x25, _MLX4_CMD_WRAPPED@GOTPAGE
Lloh12:
	ldr	x25, [x25, _MLX4_CMD_WRAPPED@GOTPAGEOFF]
	ldr	w6, [x25]
	mov	x0, x19
	mov	w3, #1
	bl	_mlx4_cmd
	mov	x21, x0
	mov	x0, x19
	bl	_mlx4_is_bonded
	cbz	x0, LBB0_7
; %bb.6:
	ldr	w1, [x20]
	ldr	w8, [x23]
	mov	w2, #2
	bfi	w2, w8, #8, #24
	ldr	w4, [x22]
	ldr	w5, [x24]
	ldr	w6, [x25]
	mov	x0, x19
	mov	w3, #1
	bl	_mlx4_cmd
	add	w21, w0, w21
LBB0_7:
	mov	x0, x19
	mov	x1, x20
	bl	_mlx4_free_cmd_mailbox
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MLX4_MAX_PORT_GIDS,4,2         ; @MLX4_MAX_PORT_GIDS
	.comm	_MLX4_SET_PORT_GID_TABLE,4,2    ; @MLX4_SET_PORT_GID_TABLE
	.comm	_MLX4_CMD_SET_PORT,4,2          ; @MLX4_CMD_SET_PORT
	.comm	_MLX4_CMD_TIME_CLASS_B,4,2      ; @MLX4_CMD_TIME_CLASS_B
	.comm	_MLX4_CMD_WRAPPED,4,2           ; @MLX4_CMD_WRAPPED
	.no_dead_strip	_mlx4_ib_update_gids_v1
.subsections_via_symbols
