	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enable_status_frames
_enable_status_frames:                  ## @enable_status_frames
	.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	%esi, %r14d
	movq	%rdi, %r12
	movq	8(%rdi), %rax
	movq	(%rax), %r15
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	movq	_PSF_EVNT_EN@GOTPCREL(%rip), %rax
	movq	_PSF_RXTS_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	orl	(%rax), %r13d
	movq	_PSF_TXTS_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	movq	_ENDIAN_FLAG@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	jmp	LBB0_3
LBB0_1:
	xorl	%r13d, %r13d
LBB0_3:
	movq	_PSF_PTPVER@GOTPCREL(%rip), %rax
	movq	_VERSIONPTP_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	andl	(%rax), %ebx
	movq	_VERSIONPTP_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	_PAGE5@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PSF_CFG0@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	movq	%r12, %rsi
	movl	%r13d, %r8d
	callq	_ext_write
	movq	_PAGE6@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PSF_CFG1@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	movq	%r12, %rsi
	movl	%ebx, %r8d
	callq	_ext_write
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	(%r12), %edi
	testl	%edi, %edi
	je	LBB0_4
## %bb.5:
	movq	_status_frame_dst@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%r14d, %r14d
	je	LBB0_8
## %bb.6:
	callq	_dev_mc_add
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_10
LBB0_4:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_10
LBB0_8:
	callq	_dev_mc_del
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	leaq	L_.str.2(%rip), %rsi
LBB0_10:
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_phydev_warn                    ## TAILCALL
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PSF_EVNT_EN,4,2                ## @PSF_EVNT_EN
	.comm	_PSF_RXTS_EN,4,2                ## @PSF_RXTS_EN
	.comm	_PSF_TXTS_EN,4,2                ## @PSF_TXTS_EN
	.comm	_ENDIAN_FLAG,4,2                ## @ENDIAN_FLAG
	.comm	_PSF_PTPVER,4,2                 ## @PSF_PTPVER
	.comm	_VERSIONPTP_MASK,4,2            ## @VERSIONPTP_MASK
	.comm	_VERSIONPTP_SHIFT,4,2           ## @VERSIONPTP_SHIFT
	.comm	_PAGE5,4,2                      ## @PAGE5
	.comm	_PSF_CFG0,4,2                   ## @PSF_CFG0
	.comm	_PAGE6,4,2                      ## @PAGE6
	.comm	_PSF_CFG1,4,2                   ## @PSF_CFG1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"expected to find an attached netdevice\n"

	.comm	_status_frame_dst,4,2           ## @status_frame_dst
L_.str.1:                               ## @.str.1
	.asciz	"failed to add mc address\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to delete mc address\n"

	.no_dead_strip	_enable_status_frames
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enable_status_frames
_enable_status_frames:                  ; @enable_status_frames
	.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	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x21, [x8]
	cbz	w1, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _PSF_EVNT_EN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PSF_EVNT_EN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _PSF_RXTS_EN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PSF_RXTS_EN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _PSF_TXTS_EN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PSF_TXTS_EN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _ENDIAN_FLAG@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ENDIAN_FLAG@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w22, w8, w9
	b	LBB0_3
LBB0_2:
	mov	w22, #0
LBB0_3:
Lloh12:
	adrp	x8, _PSF_PTPVER@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PSF_PTPVER@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _VERSIONPTP_MASK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _VERSIONPTP_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh18:
	adrp	x9, _VERSIONPTP_SHIFT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _VERSIONPTP_SHIFT@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	lsl	w23, w8, w9
	mov	x0, x21
	bl	_mutex_lock
Lloh21:
	adrp	x8, _PAGE5@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PAGE5@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
Lloh24:
	adrp	x8, _PSF_CFG0@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PSF_CFG0@GOTPAGEOFF]
Lloh26:
	ldr	w3, [x8]
	mov	w0, #0
	mov	x1, x19
	mov	x4, x22
	bl	_ext_write
Lloh27:
	adrp	x8, _PAGE6@GOTPAGE
Lloh28:
	ldr	x8, [x8, _PAGE6@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
Lloh30:
	adrp	x8, _PSF_CFG1@GOTPAGE
Lloh31:
	ldr	x8, [x8, _PSF_CFG1@GOTPAGEOFF]
Lloh32:
	ldr	w3, [x8]
	mov	w0, #0
	mov	x1, x19
	mov	x4, x23
	bl	_ext_write
	mov	x0, x21
	bl	_mutex_unlock
	ldr	w0, [x19]
	cbz	w0, LBB0_7
; %bb.4:
Lloh33:
	adrp	x8, _status_frame_dst@GOTPAGE
Lloh34:
	ldr	x8, [x8, _status_frame_dst@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	cbz	w20, LBB0_8
; %bb.5:
	bl	_dev_mc_add
	cbz	x0, LBB0_11
; %bb.6:
Lloh36:
	adrp	x1, l_.str.1@PAGE
Lloh37:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_7:
Lloh38:
	adrp	x1, l_.str@PAGE
Lloh39:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_10
LBB0_8:
	bl	_dev_mc_del
	cbz	x0, LBB0_11
; %bb.9:
Lloh40:
	adrp	x1, l_.str.2@PAGE
Lloh41:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_10:
	mov	x0, x19
	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
	b	_phydev_warn
LBB0_11:
	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
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_PSF_EVNT_EN,4,2                ; @PSF_EVNT_EN
	.comm	_PSF_RXTS_EN,4,2                ; @PSF_RXTS_EN
	.comm	_PSF_TXTS_EN,4,2                ; @PSF_TXTS_EN
	.comm	_ENDIAN_FLAG,4,2                ; @ENDIAN_FLAG
	.comm	_PSF_PTPVER,4,2                 ; @PSF_PTPVER
	.comm	_VERSIONPTP_MASK,4,2            ; @VERSIONPTP_MASK
	.comm	_VERSIONPTP_SHIFT,4,2           ; @VERSIONPTP_SHIFT
	.comm	_PAGE5,4,2                      ; @PAGE5
	.comm	_PSF_CFG0,4,2                   ; @PSF_CFG0
	.comm	_PAGE6,4,2                      ; @PAGE6
	.comm	_PSF_CFG1,4,2                   ; @PSF_CFG1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"expected to find an attached netdevice\n"

	.comm	_status_frame_dst,4,2           ; @status_frame_dst
l_.str.1:                               ; @.str.1
	.asciz	"failed to add mc address\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to delete mc address\n"

	.no_dead_strip	_enable_status_frames
.subsections_via_symbols
