	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_xdp_set
_mlx4_xdp_set:                          ## @mlx4_xdp_set
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r12
	movq	48(%rax), %r14
	testq	%r15, %r15
	je	LBB0_4
## %bb.1:
	movl	(%r12), %r13d
	movq	8(%r12), %rax
	movq	_TX_XDP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	%r13d, (%rax,%rcx,4)
	jne	LBB0_5
## %bb.2:
	decl	%r13d
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_bpf_prog_add
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movq	%r13, %rdi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_4:
	movq	8(%r12), %rax
	movq	_TX_XDP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorl	%r13d, %r13d
	cmpl	$0, (%rax,%rcx,4)
	je	LBB0_10
LBB0_5:
	leaq	8(%r12), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %esi
	movq	%rbx, %rdi
	callq	_mlx4_en_check_xdp_mtu
	testl	%eax, %eax
	je	LBB0_16
## %bb.6:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$56, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_17
## %bb.7:
	movq	%rax, %rbx
	testq	%r15, %r15
	je	LBB0_19
## %bb.8:
	movl	(%r12), %esi
	decl	%esi
	movq	%r15, %rdi
	callq	_bpf_prog_add
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_20
## %bb.9:
	movq	%r15, %rdi
	callq	_PTR_ERR
	movl	%eax, %r13d
	jmp	LBB0_41
LBB0_10:
	movq	%r14, %rdi
	callq	_mutex_lock
	cmpl	$0, (%r12)
	jle	LBB0_15
## %bb.11:
	xorl	%ebx, %ebx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_13 Depth=1
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jge	LBB0_15
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax), %r15d
	movq	%r14, %rdi
	callq	_lockdep_is_held
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_rcu_dereference_protected
	movq	%rax, %r15
	movq	24(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_rcu_assign_pointer
	testq	%r15, %r15
	je	LBB0_12
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r15, %rdi
	callq	_bpf_prog_put
	jmp	LBB0_12
LBB0_15:
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%r13d, %r13d
	jmp	LBB0_42
LBB0_16:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_17:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_18:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_42
LBB0_19:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	jmp	LBB0_21
LBB0_20:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
LBB0_21:
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	40(%r12), %rsi
	leaq	-72(%rbp), %rdi
	movl	$8, %edx
	callq	_memcpy
	movq	-72(%rbp), %rax
	movq	_TX_XDP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%r13d, (%rax,%rcx,4)
	movq	8(%r12), %rax
	movq	_TX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %ebx
	addl	%r13d, %ebx
	movq	_MAX_TX_RINGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	cmpl	%eax, %ebx
	jle	LBB0_23
## %bb.22:
	movq	40(%r12), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_ALIGN
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	subl	%eax, %ecx
	movq	-72(%rbp), %rax
	movq	_TX@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%ecx, (%rax,%rdx,4)
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_en_warn
LBB0_23:
	leaq	-72(%rbp), %rdx
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	xorl	%ecx, %ecx
	callq	_mlx4_en_try_alloc_resources
	testl	%eax, %eax
	je	LBB0_26
## %bb.24:
	movl	%eax, %r13d
	testq	%r15, %r15
	je	LBB0_39
## %bb.25:
	movl	(%r12), %esi
	decl	%esi
	movq	%r15, %rdi
	callq	_bpf_prog_sub
	jmp	LBB0_39
LBB0_26:
	movq	32(%r12), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_28
## %bb.27:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %esi
	callq	_mlx4_en_stop_port
LBB0_28:
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_mlx4_en_safe_replace_resources
	cmpl	-52(%rbp), %ebx                 ## 4-byte Folded Reload
	jle	LBB0_30
## %bb.29:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_TX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_netif_set_real_num_tx_queues
LBB0_30:
	cmpl	$0, (%r12)
	jle	LBB0_35
## %bb.31:
	xorl	%ebx, %ebx
	jmp	LBB0_33
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_33 Depth=1
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jge	LBB0_35
LBB0_33:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax), %r13d
	movq	%r14, %rdi
	callq	_lockdep_is_held
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_rcu_dereference_protected
	movq	%rax, %r13
	movq	24(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_rcu_assign_pointer
	testq	%r13, %r13
	je	LBB0_32
## %bb.34:                              ##   in Loop: Header=BB0_33 Depth=1
	movq	%r13, %rdi
	callq	_bpf_prog_put
	jmp	LBB0_32
LBB0_35:
	xorl	%r13d, %r13d
	cmpq	$0, -88(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_39
## %bb.36:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_mlx4_en_start_port
	testl	%eax, %eax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_40
## %bb.37:
	movl	%eax, %r15d
	movl	20(%r12), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_en_err
	movl	4(%r14), %edi
	addq	$16, %r12
	movq	%r12, %rsi
	callq	_queue_work
	movl	%r15d, %r13d
	jmp	LBB0_40
LBB0_39:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_40:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_41:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_42:
	movl	%r13d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TX_XDP,8,3                     ## @TX_XDP
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_TX,8,3                         ## @TX
	.comm	_MAX_TX_RINGS,4,2               ## @MAX_TX_RINGS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Reducing the number of TX rings, to not exceed the max total rings number.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed starting port %d for XDP change\n"

	.no_dead_strip	_mlx4_xdp_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_xdp_set
_mlx4_xdp_set:                          ; @mlx4_xdp_set
	.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	x23, x1
	mov	x22, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	x19, [x0, #48]
Lloh0:
	adrp	x26, _TX_XDP@GOTPAGE
Lloh1:
	ldr	x26, [x26, _TX_XDP@GOTPAGEOFF]
	cbz	x23, LBB0_4
; %bb.1:
	ldr	w24, [x20]
	mov	x25, x20
	ldr	x8, [x25, #8]!
	ldr	x9, [x26]
	ldr	w8, [x8, x9, lsl #2]
	cmp	w8, w24
	b.ne	LBB0_6
; %bb.2:
	sub	w1, w24, #1
	mov	x0, x23
	bl	_bpf_prog_add
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_13
; %bb.3:
	mov	x0, x21
	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
	b	_PTR_ERR
LBB0_4:
	mov	x25, x20
	ldr	x8, [x25, #8]!
	ldr	x9, [x26]
	ldr	w8, [x8, x9, lsl #2]
	cbz	w8, LBB0_12
; %bb.5:
	mov	w24, #0
LBB0_6:
	ldr	w1, [x22]
	mov	x0, x22
	bl	_mlx4_en_check_xdp_mtu
	cbz	w0, LBB0_11
; %bb.7:
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #56
	bl	_kzalloc
	cbz	x0, LBB0_19
; %bb.8:
	mov	x21, x0
	cbz	x23, LBB0_21
; %bb.9:
	ldr	w8, [x20]
	sub	w1, w8, #1
	mov	x0, x23
	bl	_bpf_prog_add
	mov	x23, x0
	bl	_IS_ERR
	cbz	x0, LBB0_21
; %bb.10:
	mov	x0, x23
	bl	_PTR_ERR
	mov	x24, x0
	b	LBB0_40
LBB0_11:
Lloh5:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_20
LBB0_12:
	mov	x21, #0
LBB0_13:
	mov	x0, x19
	bl	_mutex_lock
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.14:
	mov	x23, #0
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x20]
	cmp	x23, x8
	b.ge	LBB0_18
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	lsl	x24, x23, #3
	ldr	x8, [x8, x24]
	ldr	w22, [x8]
	mov	x0, x19
	bl	_lockdep_is_held
	mov	x1, x0
	mov	x0, x22
	bl	_rcu_dereference_protected
	mov	x22, x0
	ldr	x8, [x20, #24]
	ldr	x8, [x8, x24]
	ldr	w0, [x8]
	mov	x1, x21
	bl	_rcu_assign_pointer
	cbz	x22, LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x22
	bl	_bpf_prog_put
	b	LBB0_15
LBB0_18:
	mov	x0, x19
	bl	_mutex_unlock
	mov	w24, #0
	b	LBB0_41
LBB0_19:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_20:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_41
LBB0_21:
	mov	x0, x19
	bl	_mutex_lock
	ldr	x1, [x20, #40]
	add	x0, sp, #8
	mov	w2, #8
	bl	_memcpy
	ldr	x8, [sp, #8]
	ldr	x9, [x26]
	str	w24, [x8, x9, lsl #2]
	ldr	x8, [x20, #8]
Lloh9:
	adrp	x27, _TX@GOTPAGE
Lloh10:
	ldr	x27, [x27, _TX@GOTPAGEOFF]
	ldr	x9, [x27]
	ldr	w8, [x8, x9, lsl #2]
Lloh11:
	adrp	x9, _MAX_TX_RINGS@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MAX_TX_RINGS@GOTPAGEOFF]
Lloh13:
	ldr	w28, [x9]
	add	w26, w8, w24
	cmp	w26, w28
	b.le	LBB0_23
; %bb.22:
	ldr	x8, [x20, #40]
	ldr	w1, [x8]
	mov	x0, x24
	bl	_ALIGN
	sub	w8, w28, w0
	ldr	x9, [sp, #8]
	ldr	x10, [x27]
	str	w8, [x9, x10, lsl #2]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_en_warn
LBB0_23:
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x21
	mov	w3, #0
	bl	_mlx4_en_try_alloc_resources
	cbz	w0, LBB0_26
; %bb.24:
	mov	x24, x0
	cbz	x23, LBB0_39
; %bb.25:
	ldr	w8, [x20]
	sub	w1, w8, #1
	mov	x0, x23
	bl	_bpf_prog_sub
	b	LBB0_39
LBB0_26:
	ldr	x8, [x20, #32]
	str	x8, [sp]                        ; 8-byte Folded Spill
	cbz	x8, LBB0_28
; %bb.27:
	mov	x0, x22
	mov	w1, #1
	bl	_mlx4_en_stop_port
LBB0_28:
	mov	x0, x20
	mov	x1, x21
	bl	_mlx4_en_safe_replace_resources
	cmp	w26, w28
	b.le	LBB0_30
; %bb.29:
	ldr	x8, [x25]
	ldr	x9, [x27]
	ldr	w1, [x8, x9, lsl #2]
	mov	x0, x22
	bl	_netif_set_real_num_tx_queues
LBB0_30:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_35
; %bb.31:
	mov	x25, #0
	b	LBB0_33
LBB0_32:                                ;   in Loop: Header=BB0_33 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x20]
	cmp	x25, x8
	b.ge	LBB0_35
LBB0_33:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	lsl	x26, x25, #3
	ldr	x8, [x8, x26]
	ldr	w24, [x8]
	mov	x0, x19
	bl	_lockdep_is_held
	mov	x1, x0
	mov	x0, x24
	bl	_rcu_dereference_protected
	mov	x24, x0
	ldr	x8, [x20, #24]
	ldr	x8, [x8, x26]
	ldr	w0, [x8]
	mov	x1, x23
	bl	_rcu_assign_pointer
	cbz	x24, LBB0_32
; %bb.34:                               ;   in Loop: Header=BB0_33 Depth=1
	mov	x0, x24
	bl	_bpf_prog_put
	b	LBB0_32
LBB0_35:
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	cbz	x8, LBB0_38
; %bb.36:
	mov	x0, x22
	bl	_mlx4_en_start_port
	mov	x24, x0
	cbz	w0, LBB0_39
; %bb.37:
	ldr	w2, [x20, #20]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_en_err
	ldr	w0, [x19, #4]
	add	x1, x20, #16
	bl	_queue_work
	b	LBB0_39
LBB0_38:
	mov	w24, #0
LBB0_39:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_40:
	mov	x0, x21
	bl	_kfree
LBB0_41:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_TX_XDP,8,3                     ; @TX_XDP
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_TX,8,3                         ; @TX
	.comm	_MAX_TX_RINGS,4,2               ; @MAX_TX_RINGS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Reducing the number of TX rings, to not exceed the max total rings number.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed starting port %d for XDP change\n"

	.no_dead_strip	_mlx4_xdp_set
.subsections_via_symbols
