	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alcor_set_bus_width
_alcor_set_bus_width:                   ## @alcor_set_bus_width
	.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	%rsi, %rbx
	callq	_mmc_priv
	movq	8(%rax), %rdi
	movq	(%rbx), %rcx
	movq	_MMC_BUS_WIDTH_1@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_3
## %bb.1:
	movq	_AU6601_REG_BUS_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	jmp	LBB0_2
LBB0_3:
	movq	_MMC_BUS_WIDTH_4@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_5
## %bb.4:
	movq	_AU6601_BUS_WIDTH_4BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AU6601_REG_BUS_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_alcor_write8                   ## TAILCALL
LBB0_5:
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_BUS_WIDTH_1,8,3            ## @MMC_BUS_WIDTH_1
	.comm	_AU6601_REG_BUS_CTRL,4,2        ## @AU6601_REG_BUS_CTRL
	.comm	_MMC_BUS_WIDTH_4,8,3            ## @MMC_BUS_WIDTH_4
	.comm	_AU6601_BUS_WIDTH_4BIT,4,2      ## @AU6601_BUS_WIDTH_4BIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown BUS mode\n"

	.no_dead_strip	_alcor_set_bus_width
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alcor_set_bus_width
_alcor_set_bus_width:                   ; @alcor_set_bus_width
	.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
	mov	x19, x1
	bl	_mmc_priv
	mov	x8, x0
	ldr	x0, [x0, #8]
	ldr	x9, [x19]
Lloh0:
	adrp	x10, _MMC_BUS_WIDTH_1@GOTPAGE
Lloh1:
	ldr	x10, [x10, _MMC_BUS_WIDTH_1@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _AU6601_REG_BUS_CTRL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AU6601_REG_BUS_CTRL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w1, #0
	b	LBB0_4
LBB0_2:
Lloh6:
	adrp	x10, _MMC_BUS_WIDTH_4@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MMC_BUS_WIDTH_4@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_5
; %bb.3:
Lloh9:
	adrp	x8, _AU6601_BUS_WIDTH_4BIT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AU6601_BUS_WIDTH_4BIT@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _AU6601_REG_BUS_CTRL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AU6601_REG_BUS_CTRL@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_alcor_write8
LBB0_5:
	ldr	w0, [x8]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dev_err
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_BUS_WIDTH_1,8,3            ; @MMC_BUS_WIDTH_1
	.comm	_AU6601_REG_BUS_CTRL,4,2        ; @AU6601_REG_BUS_CTRL
	.comm	_MMC_BUS_WIDTH_4,8,3            ; @MMC_BUS_WIDTH_4
	.comm	_AU6601_BUS_WIDTH_4BIT,4,2      ; @AU6601_BUS_WIDTH_4BIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown BUS mode\n"

	.no_dead_strip	_alcor_set_bus_width
.subsections_via_symbols
