	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5e_attach_netdev            ## -- Begin function mlx5e_attach_netdev
	.p2align	4, 0x90
_mlx5e_attach_netdev:                   ## @mlx5e_attach_netdev
	.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
	movq	%rdi, %rbx
	movq	16(%rdi), %r15
	movq	_MLX5E_STATE_DESTROYING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	12(%rbx), %rsi
	callq	_clear_bit
	movl	8(%rbx), %edi
	callq	_mlx5e_get_max_num_channels
	cmpl	%eax, 4(%rbx)
	jle	LBB0_2
## %bb.1:
	movl	%eax, %r14d
	movl	8(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_mlx5_core_warn
	movl	%r14d, 4(%rbx)
	movl	(%rbx), %edi
	movq	_MLX5E_INDIR_RQT_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edx
	callq	_mlx5e_build_default_indir_rqt
LBB0_2:
	movq	%rbx, %rdi
	callq	*(%r15)
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movq	%rbx, %rdi
	callq	*8(%r15)
	testl	%eax, %eax
	je	LBB0_4
## %bb.6:
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	*16(%r15)
	jmp	LBB0_7
LBB0_4:
	movq	24(%r15), %rcx
	xorl	%r14d, %r14d
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.5:
	movq	%rbx, %rdi
	callq	*%rcx
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5E_STATE_DESTROYING,4,2     ## @MLX5E_STATE_DESTROYING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MLX5E: Reducing number of channels to %d\n"

	.comm	_MLX5E_INDIR_RQT_SIZE,4,2       ## @MLX5E_INDIR_RQT_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5e_attach_netdev            ; -- Begin function mlx5e_attach_netdev
	.p2align	2
_mlx5e_attach_netdev:                   ; @mlx5e_attach_netdev
	.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, x0
	ldr	x21, [x0, #16]
Lloh0:
	adrp	x8, _MLX5E_STATE_DESTROYING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX5E_STATE_DESTROYING@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #12
	bl	_clear_bit
	ldr	w0, [x19, #8]
	bl	_mlx5e_get_max_num_channels
	ldr	w8, [x19, #4]
	cmp	w8, w0
	b.le	LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	w0, [x19, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_mlx5_core_warn
	str	w20, [x19, #4]
	ldr	w0, [x19]
Lloh5:
	adrp	x8, _MLX5E_INDIR_RQT_SIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MLX5E_INDIR_RQT_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_mlx5e_build_default_indir_rqt
LBB0_2:
	ldr	x8, [x21]
	mov	x0, x19
	blr	x8
	mov	x20, x0
	cbnz	w0, LBB0_8
; %bb.3:
	ldr	x8, [x21, #8]
	mov	x0, x19
	blr	x8
	cbz	w0, LBB0_5
; %bb.4:
	mov	x20, x0
	ldr	x8, [x21, #16]
	mov	x0, x19
	blr	x8
	b	LBB0_8
LBB0_5:
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_7
; %bb.6:
	mov	x0, x19
	blr	x8
LBB0_7:
	mov	w20, #0
LBB0_8:
	mov	x0, x20
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5E_STATE_DESTROYING,4,2     ; @MLX5E_STATE_DESTROYING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MLX5E: Reducing number of channels to %d\n"

	.comm	_MLX5E_INDIR_RQT_SIZE,4,2       ; @MLX5E_INDIR_RQT_SIZE
.subsections_via_symbols
