	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmnand_set_wp
_brcmnand_set_wp:                       ## @brcmnand_set_wp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%esi, %r8d
	testl	%esi, %esi
	movq	_CS_SELECT_NAND_WP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	cmovnel	%edx, %r8d
	movq	_BRCMNAND_CS_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ecx, %ecx
	popq	%rbp
	jmp	_brcmnand_rmw_reg               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CS_SELECT_NAND_WP,4,2          ## @CS_SELECT_NAND_WP
	.comm	_BRCMNAND_CS_SELECT,4,2         ## @BRCMNAND_CS_SELECT
	.no_dead_strip	_brcmnand_set_wp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmnand_set_wp
_brcmnand_set_wp:                       ; @brcmnand_set_wp
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _CS_SELECT_NAND_WP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CS_SELECT_NAND_WP@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	cmp	w1, #0
	csel	w4, wzr, w2, eq
Lloh3:
	adrp	x8, _BRCMNAND_CS_SELECT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BRCMNAND_CS_SELECT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w3, #0
	b	_brcmnand_rmw_reg
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CS_SELECT_NAND_WP,4,2          ; @CS_SELECT_NAND_WP
	.comm	_BRCMNAND_CS_SELECT,4,2         ; @BRCMNAND_CS_SELECT
	.no_dead_strip	_brcmnand_set_wp
.subsections_via_symbols
