	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function poly_store
_poly_store:                            ## @poly_store
	.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
	leaq	-7(%rdx), %rax
	cmpq	$-7, %rax
	jbe	LBB0_1
## %bb.2:
	movq	%rdx, %rbx
	leaq	L_.str(%rip), %rax
	leaq	-32(%rbp), %rdx
	movq	%rsi, %rdi
	movq	%rax, %rsi
	callq	_sscanf
	movq	-32(%rbp), %rax
	cmpq	$512, %rax                      ## imm = 0x200
	jae	LBB0_1
## %bb.3:
	movzbl	%al, %eax
	movq	%rax, -32(%rbp)
	movq	_ppc440spe_mq_dcr_host@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_DCRN_MQ0_CFBHL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_dcr_read
	movq	_MQ0_CFBHL_POLY@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$255, %edx
	shll	%cl, %edx
	notl	%edx
	movslq	%edx, %rsi
	movq	-32(%rbp), %rdx
	shlq	%cl, %rdx
	andq	%rax, %rsi
	orq	%rsi, %rdx
	movl	(%r14), %edi
	movl	(%r15), %esi
	callq	_dcr_write
	jmp	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subq	(%rax), %rbx
LBB0_4:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%lx"

	.comm	_ppc440spe_mq_dcr_host,4,2      ## @ppc440spe_mq_dcr_host
	.comm	_DCRN_MQ0_CFBHL,4,2             ## @DCRN_MQ0_CFBHL
	.comm	_MQ0_CFBHL_POLY,4,2             ## @MQ0_CFBHL_POLY
	.no_dead_strip	_poly_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function poly_store
_poly_store:                            ; @poly_store
	.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
	sub	x8, x2, #7
	cmn	x8, #7
	b.ls	LBB0_3
; %bb.1:
	mov	x19, x2
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	add	x2, sp, #8
	mov	x0, x1
	mov	x1, x8
	bl	_sscanf
	ldr	x8, [sp, #8]
	cmp	x8, #512
	b.hs	LBB0_3
; %bb.2:
	and	x8, x8, #0xff
	str	x8, [sp, #8]
Lloh2:
	adrp	x20, _ppc440spe_mq_dcr_host@GOTPAGE
Lloh3:
	ldr	x20, [x20, _ppc440spe_mq_dcr_host@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh4:
	adrp	x21, _DCRN_MQ0_CFBHL@GOTPAGE
Lloh5:
	ldr	x21, [x21, _DCRN_MQ0_CFBHL@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_dcr_read
Lloh6:
	adrp	x8, _MQ0_CFBHL_POLY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MQ0_CFBHL_POLY@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	mov	w9, #255
	lsl	w9, w9, w8
	mvn	w9, w9
	sxtw	x9, w9
	and	x9, x0, x9
	ldr	x10, [sp, #8]
	lsl	x8, x10, x8
	orr	x2, x9, x8
	ldr	w0, [x20]
	ldr	w1, [x21]
	bl	_dcr_write
	b	LBB0_4
LBB0_3:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	neg	x19, x8
LBB0_4:
	mov	x0, x19
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%lx"

	.comm	_ppc440spe_mq_dcr_host,4,2      ; @ppc440spe_mq_dcr_host
	.comm	_DCRN_MQ0_CFBHL,4,2             ; @DCRN_MQ0_CFBHL
	.comm	_MQ0_CFBHL_POLY,4,2             ; @MQ0_CFBHL_POLY
	.no_dead_strip	_poly_store
.subsections_via_symbols
