	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xsdfec_reg3_write
_xsdfec_reg3_write:                     ## @xsdfec_reg3_write
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_XSDFEC_LDPC_CODE_REG3_ADDR_BASE@GOTPCREL(%rip), %r9
	movq	_XSDFEC_LDPC_REG_JUMP@GOTPCREL(%rip), %rax
	movslq	(%rax), %r10
	movslq	%r8d, %rax
	imulq	%r10, %rax
	addq	(%r9), %rax
	movl	%ecx, %r8d
	movq	_XSDFEC_LDPC_CODE_REG3_ADDR_HIGH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_2
## %bb.1:
	movl	(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdx
	callq	_dev_dbg
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_2:
	movq	_XSDFEC_REG3_QC_OFF_LSB@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %r8d
	movq	_XSDFEC_REG3_LA_OFF_LSB@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	orl	%esi, %r8d
	orl	%edx, %r8d
	movq	%rax, %rsi
	movl	%r8d, %edx
	callq	_xsdfec_regwrite
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XSDFEC_REG3_QC_OFF_LSB,4,2     ## @XSDFEC_REG3_QC_OFF_LSB
	.comm	_XSDFEC_REG3_LA_OFF_LSB,4,2     ## @XSDFEC_REG3_LA_OFF_LSB
	.comm	_XSDFEC_LDPC_CODE_REG3_ADDR_BASE,8,3 ## @XSDFEC_LDPC_CODE_REG3_ADDR_BASE
	.comm	_XSDFEC_LDPC_REG_JUMP,4,2       ## @XSDFEC_LDPC_REG_JUMP
	.comm	_XSDFEC_LDPC_CODE_REG3_ADDR_HIGH,8,3 ## @XSDFEC_LDPC_CODE_REG3_ADDR_HIGH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Writing outside of LDPC reg3 space 0x%x"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_xsdfec_reg3_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xsdfec_reg3_write
_xsdfec_reg3_write:                     ; @xsdfec_reg3_write
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
                                        ; kill: def $w4 killed $w4 def $x4
	sxtw	x8, w4
Lloh0:
	adrp	x9, _XSDFEC_LDPC_CODE_REG3_ADDR_BASE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _XSDFEC_LDPC_CODE_REG3_ADDR_BASE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _XSDFEC_LDPC_REG_JUMP@GOTPAGE
Lloh4:
	ldr	x10, [x10, _XSDFEC_LDPC_REG_JUMP@GOTPAGEOFF]
Lloh5:
	ldrsw	x10, [x10]
	madd	x8, x10, x8, x9
Lloh6:
	adrp	x9, _XSDFEC_LDPC_CODE_REG3_ADDR_HIGH@GOTPAGE
Lloh7:
	ldr	x9, [x9, _XSDFEC_LDPC_CODE_REG3_ADDR_HIGH@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_2
; %bb.1:
	ldr	w0, [x0]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x8
	bl	_dev_dbg
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh14:
	adrp	x9, _XSDFEC_REG3_QC_OFF_LSB@GOTPAGE
Lloh15:
	ldr	x9, [x9, _XSDFEC_REG3_QC_OFF_LSB@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	lsl	w9, w3, w9
Lloh17:
	adrp	x10, _XSDFEC_REG3_LA_OFF_LSB@GOTPAGE
Lloh18:
	ldr	x10, [x10, _XSDFEC_REG3_LA_OFF_LSB@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	lsl	w10, w2, w10
	orr	w9, w9, w1
	orr	w2, w9, w10
	mov	x1, x8
	bl	_xsdfec_regwrite
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_XSDFEC_REG3_QC_OFF_LSB,4,2     ; @XSDFEC_REG3_QC_OFF_LSB
	.comm	_XSDFEC_REG3_LA_OFF_LSB,4,2     ; @XSDFEC_REG3_LA_OFF_LSB
	.comm	_XSDFEC_LDPC_CODE_REG3_ADDR_BASE,8,3 ; @XSDFEC_LDPC_CODE_REG3_ADDR_BASE
	.comm	_XSDFEC_LDPC_REG_JUMP,4,2       ; @XSDFEC_LDPC_REG_JUMP
	.comm	_XSDFEC_LDPC_CODE_REG3_ADDR_HIGH,8,3 ; @XSDFEC_LDPC_CODE_REG3_ADDR_HIGH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Writing outside of LDPC reg3 space 0x%x"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_xsdfec_reg3_write
.subsections_via_symbols
