	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function macsec_changelink
_macsec_changelink:                     ## @macsec_changelink
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	movq	_IFLA_MACSEC_CIPHER_SUITE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rdx,%rax,8)
	jne	LBB0_6
## %bb.3:
	movq	_IFLA_MACSEC_ICV_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rdx,%rax,8)
	jne	LBB0_6
## %bb.4:
	movq	_IFLA_MACSEC_SCI@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rdx,%rax,8)
	jne	LBB0_6
## %bb.5:
	movq	_IFLA_MACSEC_PORT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rdx,%rax,8)
	je	LBB0_8
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_8:
	movq	%rdx, %rsi
	popq	%rbp
	jmp	_macsec_changelink_common       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IFLA_MACSEC_CIPHER_SUITE,8,3   ## @IFLA_MACSEC_CIPHER_SUITE
	.comm	_IFLA_MACSEC_ICV_LEN,8,3        ## @IFLA_MACSEC_ICV_LEN
	.comm	_IFLA_MACSEC_SCI,8,3            ## @IFLA_MACSEC_SCI
	.comm	_IFLA_MACSEC_PORT,8,3           ## @IFLA_MACSEC_PORT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_macsec_changelink
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function macsec_changelink
_macsec_changelink:                     ; @macsec_changelink
	.cfi_startproc
; %bb.0:
	cbz	x2, LBB0_6
; %bb.1:
Lloh0:
	adrp	x8, _IFLA_MACSEC_CIPHER_SUITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IFLA_MACSEC_CIPHER_SUITE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x2, x8, lsl #3]
	cbnz	x8, LBB0_5
; %bb.2:
Lloh3:
	adrp	x8, _IFLA_MACSEC_ICV_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IFLA_MACSEC_ICV_LEN@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x8, [x2, x8, lsl #3]
	cbnz	x8, LBB0_5
; %bb.3:
Lloh6:
	adrp	x8, _IFLA_MACSEC_SCI@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IFLA_MACSEC_SCI@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x8, [x2, x8, lsl #3]
	cbnz	x8, LBB0_5
; %bb.4:
Lloh9:
	adrp	x8, _IFLA_MACSEC_PORT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IFLA_MACSEC_PORT@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	x8, [x2, x8, lsl #3]
	cbz	x8, LBB0_7
LBB0_5:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_6:
	mov	w0, #0
	ret
LBB0_7:
	mov	x1, x2
	b	_macsec_changelink_common
	.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
	.cfi_endproc
                                        ; -- End function
	.comm	_IFLA_MACSEC_CIPHER_SUITE,8,3   ; @IFLA_MACSEC_CIPHER_SUITE
	.comm	_IFLA_MACSEC_ICV_LEN,8,3        ; @IFLA_MACSEC_ICV_LEN
	.comm	_IFLA_MACSEC_SCI,8,3            ; @IFLA_MACSEC_SCI
	.comm	_IFLA_MACSEC_PORT,8,3           ; @IFLA_MACSEC_PORT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_macsec_changelink
.subsections_via_symbols
