	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm_sf2_cfp_op
_bcm_sf2_cfp_op:                        ## @bcm_sf2_cfp_op
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_CORE_CFP_ACC@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_core_readl
	movq	_OP_SEL_MASK@GOTPCREL(%rip), %rcx
	movq	_RAM_SEL_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	_OP_STR_DONE@GOTPCREL(%rip), %r12
	orl	(%r12), %ebx
	orl	%edx, %ebx
	movl	(%r15), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_core_writel
	movl	$1001, %ebx                     ## imm = 0x3E9
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_core_readl
	testl	%eax, (%r12)
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_cpu_relax
	decl	%ebx
	jne	LBB0_1
	jmp	LBB0_4
LBB0_3:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	xorl	%eax, %eax
	cmpl	$1, %ebx
	cmovnel	%eax, %r13d
LBB0_4:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CORE_CFP_ACC,4,2               ## @CORE_CFP_ACC
	.comm	_OP_SEL_MASK,4,2                ## @OP_SEL_MASK
	.comm	_RAM_SEL_MASK,4,2               ## @RAM_SEL_MASK
	.comm	_OP_STR_DONE,4,2                ## @OP_STR_DONE
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	_bcm_sf2_cfp_op
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm_sf2_cfp_op
_bcm_sf2_cfp_op:                        ; @bcm_sf2_cfp_op
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _CORE_CFP_ACC@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CORE_CFP_ACC@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_core_readl
Lloh2:
	adrp	x8, _OP_SEL_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _OP_SEL_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _RAM_SEL_MASK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _RAM_SEL_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w8, w0, w8
Lloh8:
	adrp	x22, _OP_STR_DONE@GOTPAGE
Lloh9:
	ldr	x22, [x22, _OP_STR_DONE@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w9, w9, w20
	orr	w1, w9, w8
	ldr	w2, [x21]
	mov	x0, x19
	bl	_core_writel
	mov	w20, #1001
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	mov	x0, x19
	bl	_core_readl
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_cpu_relax
	subs	w20, w20, #1
	b.ne	LBB0_1
; %bb.3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh10:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w20, #1
	csneg	w0, wzr, w8, ne
LBB0_5:
	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 AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_CORE_CFP_ACC,4,2               ; @CORE_CFP_ACC
	.comm	_OP_SEL_MASK,4,2                ; @OP_SEL_MASK
	.comm	_RAM_SEL_MASK,4,2               ; @RAM_SEL_MASK
	.comm	_OP_STR_DONE,4,2                ; @OP_STR_DONE
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	_bcm_sf2_cfp_op
.subsections_via_symbols
