	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dtsec_initialization
_dtsec_initialization:                  ## @dtsec_initialization
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	16(%rdi), %r15
	leaq	-32(%rbp), %rbx
	movq	%rbx, %rsi
	callq	_set_fman_mac_params
	movq	%rbx, %rdi
	callq	_dtsec_config
	movl	%eax, 8(%r14)
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_fman_get_max_frm
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_dtsec_cfg_max_frame_len
	testl	%eax, %eax
	js	LBB0_3
## %bb.5:
	movl	8(%r14), %edi
	movl	$1, %esi
	callq	_dtsec_cfg_pad_and_crc
	testl	%eax, %eax
	js	LBB0_3
## %bb.6:
	movl	8(%r14), %edi
	callq	_dtsec_init
	testl	%eax, %eax
	js	LBB0_3
## %bb.7:
	movl	8(%r14), %edi
	movq	_FM_MAC_EX_1G_RX_MIB_CNT_OVFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	*(%r14)
	testl	%eax, %eax
	js	LBB0_3
## %bb.8:
	movl	8(%r14), %edi
	leaq	-28(%rbp), %rsi
	callq	_dtsec_get_version
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_4
## %bb.9:
	movl	(%r15), %edi
	movl	-28(%rbp), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	jmp	LBB0_10
LBB0_3:
	movl	%eax, %ebx
LBB0_4:
	movl	8(%r14), %edi
	callq	_dtsec_free
	jmp	LBB0_10
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_FM_MAC_EX_1G_RX_MIB_CNT_OVFL,4,2 ## @FM_MAC_EX_1G_RX_MIB_CNT_OVFL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FMan dTSEC version: 0x%08x\n"

	.no_dead_strip	_dtsec_initialization
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dtsec_initialization
_dtsec_initialization:                  ; @dtsec_initialization
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	x21, [x0, #16]
	add	x1, sp, #8
	bl	_set_fman_mac_params
	add	x0, sp, #8
	bl	_dtsec_config
	str	w0, [x19, #8]
	cbz	w0, LBB0_9
; %bb.1:
	mov	x20, x0
	bl	_fman_get_max_frm
	mov	x1, x0
	mov	x0, x20
	bl	_dtsec_cfg_max_frame_len
	tbnz	w0, #31, LBB0_7
; %bb.2:
	ldr	w0, [x19, #8]
	mov	w1, #1
	bl	_dtsec_cfg_pad_and_crc
	tbnz	w0, #31, LBB0_7
; %bb.3:
	ldr	w0, [x19, #8]
	bl	_dtsec_init
	tbnz	w0, #31, LBB0_7
; %bb.4:
	ldr	x8, [x19]
	ldr	w0, [x19, #8]
Lloh0:
	adrp	x9, _FM_MAC_EX_1G_RX_MIB_CNT_OVFL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FM_MAC_EX_1G_RX_MIB_CNT_OVFL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	mov	w2, #0
	blr	x8
	tbnz	w0, #31, LBB0_7
; %bb.5:
	ldr	w0, [x19, #8]
	add	x1, sp, #4
	bl	_dtsec_get_version
	mov	x20, x0
	tbnz	w0, #31, LBB0_8
; %bb.6:
	ldr	w0, [x21]
	ldr	w2, [sp, #4]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	b	LBB0_10
LBB0_7:
	mov	x20, x0
LBB0_8:
	ldr	w0, [x19, #8]
	bl	_dtsec_free
	b	LBB0_10
LBB0_9:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_10:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_FM_MAC_EX_1G_RX_MIB_CNT_OVFL,4,2 ; @FM_MAC_EX_1G_RX_MIB_CNT_OVFL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FMan dTSEC version: 0x%08x\n"

	.no_dead_strip	_dtsec_initialization
.subsections_via_symbols
