	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function macsec_fill_sectag
_macsec_fill_sectag:                    ## @macsec_fill_sectag
	.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	%ecx, %r12d
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	%ecx, %edi
	callq	_macsec_sectag_len
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_memset
	movq	_ETH_P_MACSEC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movl	%eax, 12(%rbx)
	testl	%r12d, %r12d
	je	LBB0_2
## %bb.1:
	movq	_MACSEC_TCI_SC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	leaq	8(%rbx), %rdi
	leaq	8(%r14), %rsi
	movl	$4, %edx
	callq	_memcpy
	jmp	LBB0_6
LBB0_2:
	cmpq	$0, 40(%r14)
	je	LBB0_4
## %bb.3:
	movq	_MACSEC_TCI_ES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
LBB0_4:
	cmpq	$0, 32(%r14)
	je	LBB0_6
## %bb.5:
	movq	_MACSEC_TCI_SCB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
LBB0_6:
	movl	%r15d, %edi
	callq	_htonl
	movl	%eax, 4(%rbx)
	cmpq	$0, 24(%r14)
	je	LBB0_8
## %bb.7:
	movq	_MACSEC_TCI_CONFID@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_8:
	movq	(%r14), %rax
	movq	_DEFAULT_ICV_LEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	movl	(%rbx), %eax
	jmp	LBB0_12
LBB0_10:
	movq	_MACSEC_TCI_C@GOTPCREL(%rip), %rcx
LBB0_11:
	movl	(%rbx), %eax
	orl	(%rcx), %eax
LBB0_12:
	orl	16(%r14), %eax
	movl	%eax, (%rbx)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_P_MACSEC,4,2               ## @ETH_P_MACSEC
	.comm	_MACSEC_TCI_SC,4,2              ## @MACSEC_TCI_SC
	.comm	_MACSEC_TCI_ES,4,2              ## @MACSEC_TCI_ES
	.comm	_MACSEC_TCI_SCB,4,2             ## @MACSEC_TCI_SCB
	.comm	_MACSEC_TCI_CONFID,4,2          ## @MACSEC_TCI_CONFID
	.comm	_DEFAULT_ICV_LEN,8,3            ## @DEFAULT_ICV_LEN
	.comm	_MACSEC_TCI_C,4,2               ## @MACSEC_TCI_C
	.no_dead_strip	_macsec_fill_sectag
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function macsec_fill_sectag
_macsec_fill_sectag:                    ; @macsec_fill_sectag
	.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	x22, x3
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, x3
	bl	_macsec_sectag_len
	mov	x2, x0
	mov	x0, x19
	mov	w1, #0
	bl	_memset
Lloh0:
	adrp	x8, _ETH_P_MACSEC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_P_MACSEC@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_htons
	str	w0, [x19, #12]
	cbz	w22, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _MACSEC_TCI_SC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MACSEC_TCI_SC@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	mov	x0, x19
	str	w8, [x0], #8
	add	x1, x20, #8
	mov	w2, #4
	bl	_memcpy
	b	LBB0_6
LBB0_2:
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _MACSEC_TCI_ES@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MACSEC_TCI_ES@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_4:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_6
; %bb.5:
Lloh9:
	adrp	x8, _MACSEC_TCI_SCB@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MACSEC_TCI_SCB@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_6:
	mov	x0, x21
	bl	_htonl
	str	w0, [x19, #4]
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_8
; %bb.7:
Lloh12:
	adrp	x8, _MACSEC_TCI_CONFID@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MACSEC_TCI_CONFID@GOTPAGEOFF]
	b	LBB0_11
LBB0_8:
	ldr	x8, [x20]
Lloh14:
	adrp	x9, _DEFAULT_ICV_LEN@GOTPAGE
Lloh15:
	ldr	x9, [x9, _DEFAULT_ICV_LEN@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
	ldr	w8, [x19]
	b	LBB0_12
LBB0_10:
Lloh17:
	adrp	x8, _MACSEC_TCI_C@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MACSEC_TCI_C@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
LBB0_12:
	ldr	w9, [x20, #16]
	orr	w8, w8, w9
	str	w8, [x19]
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_P_MACSEC,4,2               ; @ETH_P_MACSEC
	.comm	_MACSEC_TCI_SC,4,2              ; @MACSEC_TCI_SC
	.comm	_MACSEC_TCI_ES,4,2              ; @MACSEC_TCI_ES
	.comm	_MACSEC_TCI_SCB,4,2             ; @MACSEC_TCI_SCB
	.comm	_MACSEC_TCI_CONFID,4,2          ; @MACSEC_TCI_CONFID
	.comm	_DEFAULT_ICV_LEN,8,3            ; @DEFAULT_ICV_LEN
	.comm	_MACSEC_TCI_C,4,2               ; @MACSEC_TCI_C
	.no_dead_strip	_macsec_fill_sectag
.subsections_via_symbols
