	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxgb4_alloc_mac_filt           ## -- Begin function cxgb4_alloc_mac_filt
	.p2align	4, 0x90
_cxgb4_alloc_mac_filt:                  ## @cxgb4_alloc_mac_filt
	.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	%r9, %r12
	movq	%r8, %rbx
	movl	%ecx, %r14d
	movl	%edx, %ecx
	movl	%esi, %r13d
	movq	%rdi, %r15
	movl	24(%rbp), %eax
	movl	(%rdi), %esi
	subq	$8, %rsp
	movl	%r13d, %edx
	movl	%r14d, %r8d
	movq	%rbx, %r9
	pushq	%rax
	pushq	16(%rbp)
	pushq	%r12
	callq	_t4_alloc_mac_filt
	addq	$32, %rsp
	testl	%eax, %eax
	js	LBB0_8
## %bb.1:
	testl	%r14d, %r14d
	je	LBB0_8
## %bb.2:
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movl	%r14d, %r14d
	xorl	%r13d, %r13d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	cmpq	%r13, %r14
	je	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%r13,4), %edx
	cmpl	$65535, %edx                    ## imm = 0xFFFF
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rbx,%r13,8), %rsi
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_cxgb4_mps_ref_inc
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movq	%rbx, %rcx
	movl	24(%rbp), %r8d
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_cxgb4_free_mac_filt
	movl	%r14d, %eax
	jmp	LBB0_8
LBB0_7:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
LBB0_8:
	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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxgb4_alloc_mac_filt           ; -- Begin function cxgb4_alloc_mac_filt
	.p2align	2
_cxgb4_alloc_mac_filt:                  ; @cxgb4_alloc_mac_filt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x7
	mov	x7, x6
	mov	x25, x5
	mov	x20, x4
	mov	x21, x3
	mov	x3, x2
	mov	x22, x1
	mov	x23, x0
	ldr	w1, [x0]
	str	w19, [sp]
	mov	x2, x22
	mov	x4, x21
	mov	x5, x20
	mov	x6, x25
	bl	_t4_alloc_mac_filt
	mov	x24, x0
	tbnz	w0, #31, LBB0_7
; %bb.1:
	cbz	w21, LBB0_7
; %bb.2:
	mov	x26, #0
	mov	w27, w21
	mov	w28, #65535
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x26, x26, #1
	cmp	x27, x26
	b.eq	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x25, x26, lsl #2]
	cmp	w2, w28
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [x20, x26, lsl #3]
	mov	x0, x23
	mov	x3, #0
	bl	_cxgb4_mps_ref_inc
	cbz	x0, LBB0_3
; %bb.6:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w24, w8
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	bl	_cxgb4_free_mac_filt
LBB0_7:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
