	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___mlx4_unregister_mac          ## -- Begin function __mlx4_unregister_mac
	.p2align	4, 0x90
___mlx4_unregister_mac:                 ## @__mlx4_unregister_mac
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r13
	movq	%rdi, %r14
	callq	_mlx4_priv
	movq	(%rax), %rax
	leaq	(,%r13,2), %r15
	addq	%r13, %r15
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%r15,8), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_find_index
	movl	%eax, %r12d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_validate_index
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movq	%r13, %rsi
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	16(%r13,%r15,8), %rcx
	movslq	%r12d, %rax
	decq	(%rcx,%rax,8)
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_mlx4_dbg
	jmp	LBB0_4
LBB0_3:
	movq	8(%r13,%r15,8), %rdx
	movq	$0, (%rdx,%rax,8)
	movq	%r14, %rdi
	callq	_mlx4_set_port_mac_table
	decl	4(%r13,%r15,8)
LBB0_4:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Have more references for index %d,no need to modify mac table\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___mlx4_unregister_mac          ; -- Begin function __mlx4_unregister_mac
	.p2align	2
___mlx4_unregister_mac:                 ; @__mlx4_unregister_mac
	.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	x22, x2
	mov	x21, x1
	mov	x20, x0
	bl	_mlx4_priv
	ldr	x23, [x0]
	mov	w8, #24
	madd	x19, x21, x8, x23
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_find_index
	mov	x22, x0
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_validate_index
	cbnz	x0, LBB0_4
; %bb.1:
	mov	w8, #24
	madd	x8, x21, x8, x23
	ldr	x8, [x8, #16]
	sbfiz	x9, x22, #3, #32
	ldr	x10, [x8, x9]
	subs	x10, x10, #1
	str	x10, [x8, x9]
	b.eq	LBB0_3
; %bb.2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_mlx4_dbg
	b	LBB0_4
LBB0_3:
	sxtw	x8, w22
	mov	w9, #24
	madd	x22, x21, x9, x23
	ldr	x2, [x22, #8]
	str	xzr, [x2, x8, lsl #3]
	mov	x0, x20
	mov	x1, x21
	bl	_mlx4_set_port_mac_table
	ldr	w8, [x22, #4]
	sub	w8, w8, #1
	str	w8, [x22, #4]
LBB0_4:
	mov	x0, x19
	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
	b	_mutex_unlock
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Have more references for index %d,no need to modify mac table\n"

.subsections_via_symbols
