	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmnand_set_sector_size_1k
_brcmnand_set_sector_size_1k:           ## @brcmnand_set_sector_size_1k
	.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, %r14d
	movq	%rdi, %rbx
	movq	8(%rdi), %r13
	movq	%r13, %rdi
	callq	_brcmnand_sector_1k_shift
	movl	%eax, %r15d
	movl	(%rbx), %esi
	movq	_BRCMNAND_CS_ACC_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_brcmnand_cs_offset
	testl	%r15d, %r15d
	js	LBB0_1
## %bb.2:
	movl	%eax, %r12d
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_nand_readreg
	btrl	%r15d, %eax
	xorl	%edx, %edx
	testl	%r14d, %r14d
	setne	%dl
	movl	%r15d, %ecx
	shll	%cl, %edx
	orl	%eax, %edx
	movq	%r13, %rdi
	movl	%r12d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nand_writereg                  ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BRCMNAND_CS_ACC_CONTROL,4,2    ## @BRCMNAND_CS_ACC_CONTROL
	.no_dead_strip	_brcmnand_set_sector_size_1k
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmnand_set_sector_size_1k
_brcmnand_set_sector_size_1k:           ; @brcmnand_set_sector_size_1k
	.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	x22, x0
	ldr	x19, [x0, #8]
	mov	x0, x19
	bl	_brcmnand_sector_1k_shift
	mov	x21, x0
	ldr	w1, [x22]
Lloh0:
	adrp	x8, _BRCMNAND_CS_ACC_CONTROL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BRCMNAND_CS_ACC_CONTROL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_brcmnand_cs_offset
	tbnz	w21, #31, LBB0_2
; %bb.1:
	mov	x22, x0
	mov	x0, x19
	mov	x1, x22
	bl	_nand_readreg
	mov	w8, #1
	lsl	w8, w8, w21
	bic	w8, w0, w8
	cmp	w20, #0
	cset	w9, ne
	lsl	w9, w9, w21
	orr	w2, w8, w9
	mov	x0, x19
	mov	x1, x22
	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
	b	_nand_writereg
LBB0_2:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BRCMNAND_CS_ACC_CONTROL,4,2    ; @BRCMNAND_CS_ACC_CONTROL
	.no_dead_strip	_brcmnand_set_sector_size_1k
.subsections_via_symbols
