	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function macsec_newlink
_macsec_newlink:                        ## @macsec_newlink
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r13
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_macsec_priv
	movq	%rax, %r12
	movq	_IFLA_LINK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	movq	_DEFAULT_ICV_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	callq	_nla_get_u32
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	___dev_get_by_index
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	movq	_IFF_MACSEC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%r14)
	movq	%r15, (%r12)
	testq	%r13, %r13
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_8
## %bb.6:
	movq	_IFLA_MACSEC_ICV_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	callq	_nla_get_u8
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_8:
	movq	8(%r15), %rbx
	movl	$1, %edi
	callq	_macsec_extra_len
	addq	-48(%rbp), %rax                 ## 8-byte Folded Reload
	subq	%rax, %rbx
	movq	%rbx, 8(%r14)
	movl	(%r15), %edi
	callq	_rtnl_dereference
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	_macsec_handle_frame@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	je	LBB0_11
## %bb.10:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_33:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_register_netdevice
	testl	%eax, %eax
	js	LBB0_12
## %bb.13:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	_netdev_upper_dev_link
	testl	%eax, %eax
	js	LBB0_14
## %bb.15:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_20
## %bb.16:
	movq	_IFLA_MACSEC_SCI@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rcx,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.17:
	callq	_nla_get_sci
	jmp	LBB0_22
LBB0_12:
	movl	%eax, %r12d
	jmp	LBB0_33
LBB0_14:
	movl	%eax, %r12d
	jmp	LBB0_32
LBB0_18:
	movq	_IFLA_MACSEC_PORT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rcx,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.19:
	callq	_nla_get_be16
	movq	%r14, %rdi
	movl	%eax, %esi
	jmp	LBB0_21
LBB0_20:
	movq	_MACSEC_PORT_ES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
LBB0_21:
	callq	_dev_to_sci
LBB0_22:
	movl	%eax, %ebx
	testq	%r13, %r13
	je	LBB0_25
## %bb.23:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_sci_exists
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_31
LBB0_25:
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_macsec_add_dev
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_31
## %bb.26:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_28
## %bb.27:
	movq	%r14, %rdi
	callq	_macsec_changelink_common
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_30
LBB0_28:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_register_macsec_dev
	testl	%eax, %eax
	js	LBB0_29
## %bb.34:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_netif_stacked_transfer_operstate
	movq	%r14, %rdi
	callq	_linkwatch_fire_event
	movq	_macsec_generation@GOTPCREL(%rip), %rax
	incl	(%rax)
	xorl	%r12d, %r12d
	jmp	LBB0_33
LBB0_29:
	movl	%eax, %r12d
LBB0_30:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_macsec_del_dev
LBB0_31:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_netdev_upper_dev_unlink
LBB0_32:
	movq	%r14, %rdi
	callq	_unregister_netdevice
	jmp	LBB0_33
	.cfi_endproc
                                        ## -- End function
	.comm	_DEFAULT_ICV_LEN,8,3            ## @DEFAULT_ICV_LEN
	.comm	_IFLA_LINK,8,3                  ## @IFLA_LINK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_IFF_MACSEC,4,2                 ## @IFF_MACSEC
	.comm	_IFLA_MACSEC_ICV_LEN,8,3        ## @IFLA_MACSEC_ICV_LEN
	.comm	_macsec_handle_frame,8,3        ## @macsec_handle_frame
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_IFLA_MACSEC_SCI,8,3            ## @IFLA_MACSEC_SCI
	.comm	_IFLA_MACSEC_PORT,8,3           ## @IFLA_MACSEC_PORT
	.comm	_MACSEC_PORT_ES,4,2             ## @MACSEC_PORT_ES
	.comm	_macsec_generation,4,2          ## @macsec_generation
	.no_dead_strip	_macsec_newlink
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function macsec_newlink
_macsec_newlink:                        ; @macsec_newlink
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x24, x4
	mov	x22, x3
	mov	x23, x2
	mov	x19, x1
	mov	x21, x0
	mov	x0, x1
	bl	_macsec_priv
	mov	x20, x0
Lloh0:
	adrp	x8, _IFLA_LINK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IFLA_LINK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x0, [x23, x8, lsl #3]
	cbz	x0, LBB0_11
; %bb.1:
Lloh3:
	adrp	x8, _DEFAULT_ICV_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DEFAULT_ICV_LEN@GOTPAGEOFF]
Lloh5:
	ldr	x23, [x8]
	bl	_nla_get_u32
	mov	x1, x0
	mov	x0, x21
	bl	___dev_get_by_index
	cbz	x0, LBB0_12
; %bb.2:
	mov	x21, x0
Lloh6:
	adrp	x8, _IFF_MACSEC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IFF_MACSEC@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	orr	w8, w9, w8
	str	w8, [x19, #16]
	str	x0, [x20]
	cbz	x22, LBB0_5
; %bb.3:
Lloh9:
	adrp	x8, _IFLA_MACSEC_ICV_LEN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IFLA_MACSEC_ICV_LEN@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	x0, [x22, x8, lsl #3]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_nla_get_u8
	mov	x23, x0
LBB0_5:
	ldr	x25, [x21, #8]
	mov	w0, #1
	bl	_macsec_extra_len
	add	x8, x23, x0
	sub	x8, x25, x8
	str	x8, [x19, #8]
	ldr	w0, [x21]
	bl	_rtnl_dereference
Lloh12:
	adrp	x8, _macsec_handle_frame@GOTPAGE
Lloh13:
	ldr	x8, [x8, _macsec_handle_frame@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x0, #0
	ccmp	x0, x8, #4, ne
	b.ne	LBB0_13
; %bb.6:
	mov	x25, x0
	mov	x0, x19
	bl	_register_netdevice
	tbnz	w0, #31, LBB0_16
; %bb.7:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x24
	bl	_netdev_upper_dev_link
	tbnz	w0, #31, LBB0_17
; %bb.8:
	cbz	x22, LBB0_20
; %bb.9:
Lloh15:
	adrp	x8, _IFLA_MACSEC_SCI@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IFLA_MACSEC_SCI@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	ldr	x0, [x22, x8, lsl #3]
	cbz	x0, LBB0_18
; %bb.10:
	bl	_nla_get_sci
	mov	x24, x0
	cbnz	x25, LBB0_22
	b	LBB0_24
LBB0_11:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_14
LBB0_12:
Lloh20:
	adrp	x8, _ENODEV@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh22:
	adrp	x8, _EBUSY@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w26, w8
LBB0_15:
	mov	x0, x26
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_16:
	mov	x26, x0
	b	LBB0_15
LBB0_17:
	mov	x26, x0
	b	LBB0_32
LBB0_18:
Lloh24:
	adrp	x8, _IFLA_MACSEC_PORT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IFLA_MACSEC_PORT@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	ldr	x0, [x22, x8, lsl #3]
	cbz	x0, LBB0_20
; %bb.19:
	bl	_nla_get_be16
	mov	x1, x0
	b	LBB0_21
LBB0_20:
Lloh27:
	adrp	x8, _MACSEC_PORT_ES@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MACSEC_PORT_ES@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
LBB0_21:
	mov	x0, x19
	bl	_dev_to_sci
	mov	x24, x0
	cbz	x25, LBB0_24
LBB0_22:
	mov	x0, x21
	mov	x1, x24
	bl	_sci_exists
	cbz	x0, LBB0_24
; %bb.23:
Lloh30:
	adrp	x8, _EBUSY@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	neg	w26, w8
	b	LBB0_31
LBB0_24:
	mov	x0, x19
	mov	x1, x24
	mov	x2, x23
	bl	_macsec_add_dev
	mov	x26, x0
	cbnz	w0, LBB0_31
; %bb.25:
	cbz	x22, LBB0_27
; %bb.26:
	mov	x0, x19
	mov	x1, x22
	bl	_macsec_changelink_common
	mov	x26, x0
	cbnz	w0, LBB0_30
LBB0_27:
	mov	x0, x21
	mov	x1, x19
	bl	_register_macsec_dev
	tbnz	w0, #31, LBB0_29
; %bb.28:
	mov	x0, x21
	mov	x1, x19
	bl	_netif_stacked_transfer_operstate
	mov	x0, x19
	bl	_linkwatch_fire_event
	mov	w26, #0
Lloh33:
	adrp	x8, _macsec_generation@GOTPAGE
Lloh34:
	ldr	x8, [x8, _macsec_generation@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	b	LBB0_15
LBB0_29:
	mov	x26, x0
LBB0_30:
	mov	x0, x20
	bl	_macsec_del_dev
LBB0_31:
	mov	x0, x21
	mov	x1, x19
	bl	_netdev_upper_dev_unlink
LBB0_32:
	mov	x0, x19
	bl	_unregister_netdevice
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_DEFAULT_ICV_LEN,8,3            ; @DEFAULT_ICV_LEN
	.comm	_IFLA_LINK,8,3                  ; @IFLA_LINK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_IFF_MACSEC,4,2                 ; @IFF_MACSEC
	.comm	_IFLA_MACSEC_ICV_LEN,8,3        ; @IFLA_MACSEC_ICV_LEN
	.comm	_macsec_handle_frame,8,3        ; @macsec_handle_frame
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_IFLA_MACSEC_SCI,8,3            ; @IFLA_MACSEC_SCI
	.comm	_IFLA_MACSEC_PORT,8,3           ; @IFLA_MACSEC_PORT
	.comm	_MACSEC_PORT_ES,4,2             ; @MACSEC_PORT_ES
	.comm	_macsec_generation,4,2          ; @macsec_generation
	.no_dead_strip	_macsec_newlink
.subsections_via_symbols
