	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xsdfec_parse_of
_xsdfec_parse_of:                       ## @xsdfec_parse_of
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	40(%rdi), %rax
	movq	(%rax), %r15
	leaq	L_.str(%rip), %rsi
	leaq	-64(%rbp), %rdx
	movq	%r15, %rdi
	callq	_of_property_read_string
	testl	%eax, %eax
	js	LBB0_15
## %bb.1:
	movq	-64(%rbp), %rbx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasecmp
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasecmp
	testl	%eax, %eax
	jne	LBB0_14
## %bb.4:
	movq	_XSDFEC_TURBO_CODE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	movq	_XSDFEC_LDPC_CODE@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, (%r14)
	leaq	L_.str.3(%rip), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	js	LBB0_15
## %bb.6:
	movq	-48(%rbp), %rax
	movq	_XSDFEC_AXIS_WORDS_INCLUDE_MAX@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jge	LBB0_14
## %bb.7:
	movq	%rax, 32(%r14)
	leaq	L_.str.4(%rip), %rsi
	leaq	-56(%rbp), %rdx
	movq	%r15, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	js	LBB0_15
## %bb.8:
	movq	-56(%rbp), %rax
	leaq	-128(%rax), %rcx
	cmpq	$2, %rcx
	ja	LBB0_14
## %bb.9:
	movq	%rax, 24(%r14)
	leaq	L_.str.5(%rip), %rsi
	leaq	-32(%rbp), %rdx
	movq	%r15, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	js	LBB0_15
## %bb.10:
	movq	-32(%rbp), %rax
	cmpq	(%rbx), %rax
	jge	LBB0_14
## %bb.11:
	movq	%rax, 16(%r14)
	leaq	L_.str.6(%rip), %rsi
	leaq	-40(%rbp), %rdx
	movq	%r15, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	js	LBB0_15
## %bb.12:
	movq	-40(%rbp), %rax
	leaq	-128(%rax), %rcx
	cmpq	$2, %rcx
	ja	LBB0_14
## %bb.13:
	movq	%rax, 8(%r14)
	movq	_XSDFEC_FEC_CODE_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	%r14, %rdi
	callq	_xsdfec_regwrite
	movq	%r14, %rdi
	callq	_xsdfec_cfg_axi_streams
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_15:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"xlnx,sdfec-code"

L_.str.1:                               ## @.str.1
	.asciz	"ldpc"

	.comm	_XSDFEC_LDPC_CODE,4,2           ## @XSDFEC_LDPC_CODE
L_.str.2:                               ## @.str.2
	.asciz	"turbo"

	.comm	_XSDFEC_TURBO_CODE,4,2          ## @XSDFEC_TURBO_CODE
	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.3:                               ## @.str.3
	.asciz	"xlnx,sdfec-din-words"

	.comm	_XSDFEC_AXIS_WORDS_INCLUDE_MAX,8,3 ## @XSDFEC_AXIS_WORDS_INCLUDE_MAX
L_.str.4:                               ## @.str.4
	.asciz	"xlnx,sdfec-din-width"

L_.str.5:                               ## @.str.5
	.asciz	"xlnx,sdfec-dout-words"

L_.str.6:                               ## @.str.6
	.asciz	"xlnx,sdfec-dout-width"

	.comm	_XSDFEC_FEC_CODE_ADDR,4,2       ## @XSDFEC_FEC_CODE_ADDR
	.no_dead_strip	_xsdfec_parse_of
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xsdfec_parse_of
_xsdfec_parse_of:                       ; @xsdfec_parse_of
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x8, [x0, #40]
	ldr	x20, [x8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #40
	mov	x0, x20
	bl	_of_property_read_string
	tbnz	w0, #31, LBB0_15
; %bb.1:
	ldr	x21, [sp, #40]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_strcasecmp
	cbz	w0, LBB0_4
; %bb.2:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_strcasecmp
	cbnz	w0, LBB0_14
; %bb.3:
Lloh6:
	adrp	x8, _XSDFEC_TURBO_CODE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _XSDFEC_TURBO_CODE@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x8, _XSDFEC_LDPC_CODE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _XSDFEC_LDPC_CODE@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x2, sp, #24
	mov	x0, x20
	bl	_of_property_read_u32
	tbnz	w0, #31, LBB0_15
; %bb.6:
	ldr	x8, [sp, #24]
Lloh12:
	adrp	x21, _XSDFEC_AXIS_WORDS_INCLUDE_MAX@GOTPAGE
Lloh13:
	ldr	x21, [x21, _XSDFEC_AXIS_WORDS_INCLUDE_MAX@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ge	LBB0_14
; %bb.7:
	str	x8, [x19, #32]
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x2, sp, #32
	mov	x0, x20
	bl	_of_property_read_u32
	tbnz	w0, #31, LBB0_15
; %bb.8:
	ldr	x8, [sp, #32]
	sub	x9, x8, #128
	cmp	x9, #2
	b.hi	LBB0_14
; %bb.9:
	str	x8, [x19, #24]
Lloh16:
	adrp	x1, l_.str.5@PAGE
Lloh17:
	add	x1, x1, l_.str.5@PAGEOFF
	add	x2, sp, #8
	mov	x0, x20
	bl	_of_property_read_u32
	tbnz	w0, #31, LBB0_15
; %bb.10:
	ldr	x8, [sp, #8]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ge	LBB0_14
; %bb.11:
	str	x8, [x19, #16]
Lloh18:
	adrp	x1, l_.str.6@PAGE
Lloh19:
	add	x1, x1, l_.str.6@PAGEOFF
	add	x2, sp, #16
	mov	x0, x20
	bl	_of_property_read_u32
	tbnz	w0, #31, LBB0_15
; %bb.12:
	ldr	x8, [sp, #16]
	sub	x9, x8, #128
	cmp	x9, #2
	b.hi	LBB0_14
; %bb.13:
	str	x8, [x19, #8]
Lloh20:
	adrp	x8, _XSDFEC_FEC_CODE_ADDR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _XSDFEC_FEC_CODE_ADDR@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	ldr	w2, [x19]
	mov	x0, x19
	bl	_xsdfec_regwrite
	mov	x0, x19
	bl	_xsdfec_cfg_axi_streams
	mov	w0, #0
	b	LBB0_15
LBB0_14:
Lloh23:
	adrp	x8, _EINVAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_15:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"xlnx,sdfec-code"

l_.str.1:                               ; @.str.1
	.asciz	"ldpc"

	.comm	_XSDFEC_LDPC_CODE,4,2           ; @XSDFEC_LDPC_CODE
l_.str.2:                               ; @.str.2
	.asciz	"turbo"

	.comm	_XSDFEC_TURBO_CODE,4,2          ; @XSDFEC_TURBO_CODE
	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.3:                               ; @.str.3
	.asciz	"xlnx,sdfec-din-words"

	.comm	_XSDFEC_AXIS_WORDS_INCLUDE_MAX,8,3 ; @XSDFEC_AXIS_WORDS_INCLUDE_MAX
l_.str.4:                               ; @.str.4
	.asciz	"xlnx,sdfec-din-width"

l_.str.5:                               ; @.str.5
	.asciz	"xlnx,sdfec-dout-words"

l_.str.6:                               ; @.str.6
	.asciz	"xlnx,sdfec-dout-width"

	.comm	_XSDFEC_FEC_CODE_ADDR,4,2       ; @XSDFEC_FEC_CODE_ADDR
	.no_dead_strip	_xsdfec_parse_of
.subsections_via_symbols
