	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_en_timestamp_config       ## -- Begin function mlx4_en_timestamp_config
	.p2align	4, 0x90
_mlx4_en_timestamp_config:              ## @mlx4_en_timestamp_config
	.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
	movl	%esi, %r13d
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	16(%rax), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movq	8(%rbx), %r14
	testq	%r14, %r14
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_mlx4_en_stop_port
LBB0_2:
	movq	%rbx, %rdi
	callq	_mlx4_en_free_resources
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_en_warn
	movl	%r13d, (%rbx)
	movl	%r12d, 4(%rbx)
	movq	_HWTSTAMP_FILTER_NONE@GOTPCREL(%rip), %rcx
	movq	_NETIF_F_HW_VLAN_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%r12d, (%rcx)
	jne	LBB0_3
## %bb.4:
	orl	%eax, (%r15)
	jmp	LBB0_5
LBB0_3:
	notl	%eax
	andl	%eax, (%r15)
LBB0_5:
	movq	%rbx, %rdi
	callq	_mlx4_en_alloc_resources
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r12d
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_10
LBB0_7:
	xorl	%r12d, %r12d
	testq	%r14, %r14
	je	LBB0_11
## %bb.8:
	movq	%r15, %rdi
	callq	_mlx4_en_start_port
	testl	%eax, %eax
	je	LBB0_11
## %bb.9:
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %r12d
LBB0_10:
	movq	%rbx, %rdi
	callq	_en_err
LBB0_11:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movq	%r15, %rdi
	callq	_netdev_features_change
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Changing Time Stamp configuration\n"

	.comm	_HWTSTAMP_FILTER_NONE,4,2       ## @HWTSTAMP_FILTER_NONE
	.comm	_NETIF_F_HW_VLAN_RX,4,2         ## @NETIF_F_HW_VLAN_RX
L_.str.1:                               ## @.str.1
	.asciz	"Failed reallocating port resources\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed starting port\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_en_timestamp_config       ; -- Begin function mlx4_en_timestamp_config
	.p2align	2
_mlx4_en_timestamp_config:              ; @mlx4_en_timestamp_config
	.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	x23, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x21, x0
	ldr	x20, [x0, #16]
	mov	x0, x20
	bl	_mutex_lock
	ldr	x24, [x21, #8]
	cbz	x24, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #1
	bl	_mlx4_en_stop_port
LBB0_2:
	mov	x0, x21
	bl	_mlx4_en_free_resources
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_en_warn
Lloh2:
	adrp	x8, _HWTSTAMP_FILTER_NONE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HWTSTAMP_FILTER_NONE@GOTPAGEOFF]
	stp	w23, w22, [x21]
Lloh4:
	ldr	w9, [x8]
Lloh5:
	adrp	x8, _NETIF_F_HW_VLAN_RX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NETIF_F_HW_VLAN_RX@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w9, w22
	b.ne	LBB0_4
; %bb.3:
	ldr	w9, [x19]
	orr	w8, w9, w8
	b	LBB0_5
LBB0_4:
	ldr	w9, [x19]
	bic	w8, w9, w8
LBB0_5:
	str	w8, [x19]
	mov	x0, x21
	bl	_mlx4_en_alloc_resources
	cbz	w0, LBB0_9
; %bb.6:
	mov	x22, x0
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_7:
	mov	x0, x21
	bl	_en_err
LBB0_8:
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x19
	bl	_netdev_features_change
	mov	x0, x22
	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
	ret
LBB0_9:
	cbz	x24, LBB0_12
; %bb.10:
	mov	x0, x19
	bl	_mlx4_en_start_port
	mov	x22, x0
	cbz	w0, LBB0_8
; %bb.11:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_12:
	mov	w22, #0
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Changing Time Stamp configuration\n"

	.comm	_HWTSTAMP_FILTER_NONE,4,2       ; @HWTSTAMP_FILTER_NONE
	.comm	_NETIF_F_HW_VLAN_RX,4,2         ; @NETIF_F_HW_VLAN_RX
l_.str.1:                               ; @.str.1
	.asciz	"Failed reallocating port resources\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed starting port\n"

.subsections_via_symbols
