	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmnand_low_level_op
_brcmnand_low_level_op:                 ## @brcmnand_low_level_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	%ecx, %r15d
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %r14
	movq	_LLOP_DATA_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %edx
	addl	$-128, %esi
	cmpl	$3, %esi
	ja	LBB0_8
## %bb.1:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rsi,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_5:
	movq	_LLOP_WE@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_LLOP_RE@GOTPCREL(%rip), %rax
LBB0_7:
	orl	(%rax), %edx
	jmp	LBB0_8
LBB0_2:
	movq	_LLOP_WE@GOTPCREL(%rip), %rax
	movq	_LLOP_CLE@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_4:
	movq	_LLOP_WE@GOTPCREL(%rip), %rax
	movq	_LLOP_ALE@GOTPCREL(%rip), %rcx
LBB0_3:
	orl	(%rax), %edx
	orl	(%rcx), %edx
LBB0_8:
	movq	(%r14), %rbx
	testl	%r15d, %r15d
	je	LBB0_10
## %bb.9:
	movq	_LLOP_RETURN_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_10:
	orl	%edx, %r15d
	leaq	8(%r14), %r12
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_dev_dbg
	movq	_BRCMNAND_LL_OP@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_brcmnand_write_reg
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_brcmnand_read_reg
	movq	_CMD_LOW_LEVEL_OP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_brcmnand_send_cmd
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_brcmnand_waitfunc              ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_2
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.comm	_LLOP_DATA_MASK,4,2             ## @LLOP_DATA_MASK
	.comm	_LLOP_WE,4,2                    ## @LLOP_WE
	.comm	_LLOP_CLE,4,2                   ## @LLOP_CLE
	.comm	_LLOP_ALE,4,2                   ## @LLOP_ALE
	.comm	_LLOP_RE,4,2                    ## @LLOP_RE
	.comm	_LLOP_RETURN_IDLE,4,2           ## @LLOP_RETURN_IDLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ll_op cmd %#x\n"

	.comm	_BRCMNAND_LL_OP,4,2             ## @BRCMNAND_LL_OP
	.comm	_CMD_LOW_LEVEL_OP,4,2           ## @CMD_LOW_LEVEL_OP
	.no_dead_strip	_brcmnand_low_level_op
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmnand_low_level_op
_brcmnand_low_level_op:                 ; @brcmnand_low_level_op
	.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	x19, x0
	ldr	x20, [x0]
Lloh0:
	adrp	x8, _LLOP_DATA_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LLOP_DATA_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w2
	sub	w9, w1, #128
	cmp	w9, #3
	b.hi	LBB0_8
; %bb.1:
Lloh3:
	adrp	x10, lJTI0_0@PAGE
Lloh4:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
Lloh5:
	adrp	x9, _LLOP_WE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _LLOP_WE@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh7:
	adrp	x9, _LLOP_RE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _LLOP_RE@GOTPAGEOFF]
LBB0_4:
	ldr	w9, [x9]
	orr	w8, w9, w8
	b	LBB0_8
LBB0_5:
Lloh9:
	adrp	x9, _LLOP_WE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _LLOP_WE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _LLOP_CLE@GOTPAGE
Lloh13:
	ldr	x10, [x10, _LLOP_CLE@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh14:
	adrp	x9, _LLOP_WE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _LLOP_WE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
Lloh17:
	adrp	x10, _LLOP_ALE@GOTPAGE
Lloh18:
	ldr	x10, [x10, _LLOP_ALE@GOTPAGEOFF]
LBB0_7:
	ldr	w10, [x10]
	orr	w8, w9, w8
	orr	w8, w8, w10
LBB0_8:
Lloh19:
	adrp	x9, _LLOP_RETURN_IDLE@GOTPAGE
Lloh20:
	ldr	x9, [x9, _LLOP_RETURN_IDLE@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	cmp	w3, #0
	csel	w9, wzr, w9, eq
	orr	w21, w9, w8
	add	x22, x19, #8
	ldr	w0, [x20]
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_dev_dbg
Lloh24:
	adrp	x23, _BRCMNAND_LL_OP@GOTPAGE
Lloh25:
	ldr	x23, [x23, _BRCMNAND_LL_OP@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x20
	mov	x2, x21
	bl	_brcmnand_write_reg
	ldr	w1, [x23]
	mov	x0, x20
	bl	_brcmnand_read_reg
Lloh26:
	adrp	x8, _CMD_LOW_LEVEL_OP@GOTPAGE
Lloh27:
	ldr	x8, [x8, _CMD_LOW_LEVEL_OP@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_brcmnand_send_cmd
	mov	x0, x22
	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
	b	_brcmnand_waitfunc
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- End function
	.comm	_LLOP_DATA_MASK,4,2             ; @LLOP_DATA_MASK
	.comm	_LLOP_WE,4,2                    ; @LLOP_WE
	.comm	_LLOP_CLE,4,2                   ; @LLOP_CLE
	.comm	_LLOP_ALE,4,2                   ; @LLOP_ALE
	.comm	_LLOP_RE,4,2                    ; @LLOP_RE
	.comm	_LLOP_RETURN_IDLE,4,2           ; @LLOP_RETURN_IDLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ll_op cmd %#x\n"

	.comm	_BRCMNAND_LL_OP,4,2             ; @BRCMNAND_LL_OP
	.comm	_CMD_LOW_LEVEL_OP,4,2           ; @CMD_LOW_LEVEL_OP
	.no_dead_strip	_brcmnand_low_level_op
.subsections_via_symbols
