	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pl353_smc_set_buswidth         ## -- Begin function pl353_smc_set_buswidth
	.p2align	4, 0x90
_pl353_smc_set_buswidth:                ## @pl353_smc_set_buswidth
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_PL353_SMC_MEM_WIDTH_8@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	je	LBB0_3
## %bb.1:
	movq	_PL353_SMC_MEM_WIDTH_16@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_4
LBB0_3:
	movq	_pl353_smc_base@GOTPCREL(%rip), %rbx
	movq	_PL353_SMC_SET_OPMODE_OFFS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	callq	_writel
	movq	_PL353_SMC_DC_UPT_NAND_REGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PL353_SMC_DIRECT_CMD_OFFS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	callq	_writel
	xorl	%eax, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PL353_SMC_MEM_WIDTH_8,4,2      ## @PL353_SMC_MEM_WIDTH_8
	.comm	_PL353_SMC_MEM_WIDTH_16,4,2     ## @PL353_SMC_MEM_WIDTH_16
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_pl353_smc_base,8,3             ## @pl353_smc_base
	.comm	_PL353_SMC_SET_OPMODE_OFFS,8,3  ## @PL353_SMC_SET_OPMODE_OFFS
	.comm	_PL353_SMC_DC_UPT_NAND_REGS,4,2 ## @PL353_SMC_DC_UPT_NAND_REGS
	.comm	_PL353_SMC_DIRECT_CMD_OFFS,8,3  ## @PL353_SMC_DIRECT_CMD_OFFS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pl353_smc_set_buswidth         ; -- Begin function pl353_smc_set_buswidth
	.p2align	2
_pl353_smc_set_buswidth:                ; @pl353_smc_set_buswidth
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _PL353_SMC_MEM_WIDTH_8@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PL353_SMC_MEM_WIDTH_8@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _PL353_SMC_MEM_WIDTH_16@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PL353_SMC_MEM_WIDTH_16@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w0
	ccmp	w9, w0, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x19, _pl353_smc_base@GOTPAGE
Lloh7:
	ldr	x19, [x19, _pl353_smc_base@GOTPAGEOFF]
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _PL353_SMC_SET_OPMODE_OFFS@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PL353_SMC_SET_OPMODE_OFFS@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
Lloh11:
	adrp	x8, _PL353_SMC_DC_UPT_NAND_REGS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PL353_SMC_DC_UPT_NAND_REGS@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	x8, [x19]
Lloh14:
	adrp	x9, _PL353_SMC_DIRECT_CMD_OFFS@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PL353_SMC_DIRECT_CMD_OFFS@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_PL353_SMC_MEM_WIDTH_8,4,2      ; @PL353_SMC_MEM_WIDTH_8
	.comm	_PL353_SMC_MEM_WIDTH_16,4,2     ; @PL353_SMC_MEM_WIDTH_16
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_pl353_smc_base,8,3             ; @pl353_smc_base
	.comm	_PL353_SMC_SET_OPMODE_OFFS,8,3  ; @PL353_SMC_SET_OPMODE_OFFS
	.comm	_PL353_SMC_DC_UPT_NAND_REGS,4,2 ; @PL353_SMC_DC_UPT_NAND_REGS
	.comm	_PL353_SMC_DIRECT_CMD_OFFS,8,3  ; @PL353_SMC_DIRECT_CMD_OFFS
.subsections_via_symbols
