	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gfar_set_features              ## -- Begin function gfar_set_features
	.p2align	4, 0x90
_gfar_set_features:                     ## @gfar_set_features
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	movl	(%rdi), %r12d
	xorl	%esi, %r12d
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	_NETIF_F_HW_VLAN_CTAG_TX@GOTPCREL(%rip), %rax
	movq	_NETIF_F_HW_VLAN_CTAG_RX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_NETIF_F_RXCSUM@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	testl	%r12d, %ecx
	je	LBB0_1
## %bb.2:
	movq	_GFAR_RESETTING@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	movq	%rbx, %rsi
	callq	_test_and_set_bit_lock
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	callq	_cpu_relax
	jmp	LBB0_4
LBB0_5:
	movl	%r15d, (%r14)
	movq	_IFF_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r14)
	je	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_stop_gfar
	movq	%r14, %rdi
	callq	_startup_gfar
	movl	%eax, %r14d
	jmp	LBB0_8
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_9
LBB0_7:
	movq	%rbx, %rdi
	callq	_gfar_mac_reset
	xorl	%r14d, %r14d
LBB0_8:
	movl	(%r12), %edi
	movq	%rbx, %rsi
	callq	_clear_bit_unlock
LBB0_9:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETIF_F_HW_VLAN_CTAG_TX,4,2    ## @NETIF_F_HW_VLAN_CTAG_TX
	.comm	_NETIF_F_HW_VLAN_CTAG_RX,4,2    ## @NETIF_F_HW_VLAN_CTAG_RX
	.comm	_NETIF_F_RXCSUM,4,2             ## @NETIF_F_RXCSUM
	.comm	_GFAR_RESETTING,4,2             ## @GFAR_RESETTING
	.comm	_IFF_UP,4,2                     ## @IFF_UP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gfar_set_features              ; -- Begin function gfar_set_features
	.p2align	2
_gfar_set_features:                     ; @gfar_set_features
	.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	x21, x1
	mov	x20, x0
	ldr	w8, [x0]
	eor	w22, w8, w1
	bl	_netdev_priv
Lloh0:
	adrp	x8, _NETIF_F_HW_VLAN_CTAG_TX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETIF_F_HW_VLAN_CTAG_TX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _NETIF_F_HW_VLAN_CTAG_RX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NETIF_F_HW_VLAN_CTAG_RX@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _NETIF_F_RXCSUM@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NETIF_F_RXCSUM@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
	tst	w8, w22
	b.eq	LBB0_6
; %bb.1:
	mov	x19, x0
Lloh9:
	adrp	x22, _GFAR_RESETTING@GOTPAGE
Lloh10:
	ldr	x22, [x22, _GFAR_RESETTING@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	mov	x1, x19
	bl	_test_and_set_bit_lock
	cbz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_cpu_relax
	b	LBB0_2
LBB0_4:
	str	w21, [x20]
	ldr	w8, [x20, #4]
Lloh11:
	adrp	x9, _IFF_UP@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IFF_UP@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.5:
	mov	x0, x20
	bl	_stop_gfar
	mov	x0, x20
	bl	_startup_gfar
	mov	x20, x0
	b	LBB0_8
LBB0_6:
	mov	w20, #0
	b	LBB0_9
LBB0_7:
	mov	x0, x19
	bl	_gfar_mac_reset
	mov	w20, #0
LBB0_8:
	ldr	w0, [x22]
	mov	x1, x19
	bl	_clear_bit_unlock
LBB0_9:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_NETIF_F_HW_VLAN_CTAG_TX,4,2    ; @NETIF_F_HW_VLAN_CTAG_TX
	.comm	_NETIF_F_HW_VLAN_CTAG_RX,4,2    ; @NETIF_F_HW_VLAN_CTAG_RX
	.comm	_NETIF_F_RXCSUM,4,2             ; @NETIF_F_RXCSUM
	.comm	_GFAR_RESETTING,4,2             ; @GFAR_RESETTING
	.comm	_IFF_UP,4,2                     ; @IFF_UP
.subsections_via_symbols
