	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stfsm_write_status
_stfsm_write_status:                    ## @stfsm_write_status
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	%rdx, %rbx
	movl	%esi, %r13d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %edi
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	testl	%r8d, %r8d
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %r9
	cmoveq	%rax, %r9
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edx
	movq	%rbx, %r8
	callq	_dev_dbg
	leal	-3(%r12), %eax
	xorl	%edi, %edi
	cmpl	$-2, %eax
	setb	%dil
	callq	_BUG_ON
	movq	_SEQ_OPC_PADS_1@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	$8, %edi
	callq	_SEQ_OPC_CYCLES
	movl	%eax, %r14d
	movl	%r13d, %edi
	callq	_SEQ_OPC_OPCODE
	orl	%r14d, %eax
	orl	%r15d, %eax
	movq	_stfsm_seq_write_status@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rcx
	movl	%eax, 4(%rcx)
	movq	_STA_PADS_1@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_STA_CSDEASSERT@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%ebx, 8(%rsi)
	cmpl	$1, %r12d
	jne	LBB0_1
## %bb.2:
	movq	_STFSM_INST_STA_WR1@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_STFSM_INST_STA_WR1_2@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movq	16(%rsi), %rcx
	movl	%eax, 8(%rcx)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_stfsm_load_seq
	movq	%rbx, %rdi
	callq	_stfsm_wait_seq
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_stfsm_wait_busy
LBB0_5:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stfsm_seq_write_status,24,3    ## @stfsm_seq_write_status
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"write 'status' register [0x%02x], %d byte(s), 0x%04x\n %s wait-busy\n"

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

L_.str.2:                               ## @.str.2
	.asciz	"no"

	.comm	_SEQ_OPC_PADS_1,4,2             ## @SEQ_OPC_PADS_1
	.comm	_STA_PADS_1,4,2                 ## @STA_PADS_1
	.comm	_STA_CSDEASSERT,4,2             ## @STA_CSDEASSERT
	.comm	_STFSM_INST_STA_WR1,4,2         ## @STFSM_INST_STA_WR1
	.comm	_STFSM_INST_STA_WR1_2,4,2       ## @STFSM_INST_STA_WR1_2
	.no_dead_strip	_stfsm_write_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stfsm_write_status
_stfsm_write_status:                    ; @stfsm_write_status
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x8, l_.str.1@PAGE
Lloh1:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh2:
	adrp	x9, l_.str.2@PAGE
Lloh3:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w4, #0
	csel	x5, x9, x8, eq
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	mov	x4, x22
	bl	_dev_dbg
	sub	w8, w21, #3
	cmn	w8, #2
	cset	w0, lo
	bl	_BUG_ON
Lloh6:
	adrp	x8, _SEQ_OPC_PADS_1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SEQ_OPC_PADS_1@GOTPAGEOFF]
Lloh8:
	ldr	w24, [x8]
	mov	w0, #8
	bl	_SEQ_OPC_CYCLES
	orr	w24, w0, w24
	mov	x0, x23
	bl	_SEQ_OPC_OPCODE
	orr	w8, w24, w0
Lloh9:
	adrp	x1, _stfsm_seq_write_status@GOTPAGE
Lloh10:
	ldr	x1, [x1, _stfsm_seq_write_status@GOTPAGEOFF]
	ldr	x9, [x1]
	str	w8, [x9, #4]
Lloh11:
	adrp	x8, _STA_PADS_1@GOTPAGE
Lloh12:
	ldr	x8, [x8, _STA_PADS_1@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	orr	w8, w8, w22
Lloh14:
	adrp	x9, _STA_CSDEASSERT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _STA_CSDEASSERT@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh17:
	adrp	x9, _STFSM_INST_STA_WR1@GOTPAGE
Lloh18:
	ldr	x9, [x9, _STFSM_INST_STA_WR1@GOTPAGEOFF]
Lloh19:
	adrp	x10, _STFSM_INST_STA_WR1_2@GOTPAGE
Lloh20:
	ldr	x10, [x10, _STFSM_INST_STA_WR1_2@GOTPAGEOFF]
	str	w8, [x1, #8]
	cmp	w21, #1
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	ldr	x9, [x1, #16]
	str	w8, [x9, #8]
	mov	x0, x19
	bl	_stfsm_load_seq
	mov	x0, x19
	bl	_stfsm_wait_seq
	cbz	w20, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_stfsm_wait_busy
LBB0_2:
	mov	w0, #0
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_stfsm_seq_write_status,24,3    ; @stfsm_seq_write_status
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"write 'status' register [0x%02x], %d byte(s), 0x%04x\n %s wait-busy\n"

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

l_.str.2:                               ; @.str.2
	.asciz	"no"

	.comm	_SEQ_OPC_PADS_1,4,2             ; @SEQ_OPC_PADS_1
	.comm	_STA_PADS_1,4,2                 ; @STA_PADS_1
	.comm	_STA_CSDEASSERT,4,2             ; @STA_CSDEASSERT
	.comm	_STFSM_INST_STA_WR1,4,2         ; @STFSM_INST_STA_WR1
	.comm	_STFSM_INST_STA_WR1_2,4,2       ; @STFSM_INST_STA_WR1_2
	.no_dead_strip	_stfsm_write_status
.subsections_via_symbols
