	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function renesas_sdhi_sdbuf_width
_renesas_sdhi_sdbuf_width:              ## @renesas_sdhi_sdbuf_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_CTL_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_sd_ctrl_read16
                                        ## kill: def $eax killed $eax def $rax
	leal	-128(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_5
## %bb.1:
	cmpl	$131, %eax
	je	LBB0_4
## %bb.2:
	cmpl	$130, %eax
	jne	LBB0_7
## %bb.3:
	xorl	%edx, %edx
	cmpl	$32, %ebx
	sete	%dl
	jmp	LBB0_6
LBB0_5:
	xorl	%eax, %eax
	cmpl	$32, %ebx
	sete	%al
	shll	$8, %eax
	orl	$1, %eax
	xorl	%edx, %edx
	cmpl	$64, %ebx
	cmovnel	%eax, %edx
	jmp	LBB0_6
LBB0_4:
	xorl	%edx, %edx
	cmpl	$32, %ebx
	setne	%dl
LBB0_6:
	movq	_HOST_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_sd_ctrl_write16                ## TAILCALL
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CTL_VERSION,4,2                ## @CTL_VERSION
	.comm	_HOST_MODE,4,2                  ## @HOST_MODE
	.no_dead_strip	_renesas_sdhi_sdbuf_width
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function renesas_sdhi_sdbuf_width
_renesas_sdhi_sdbuf_width:              ; @renesas_sdhi_sdbuf_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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _CTL_VERSION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CTL_VERSION@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_sd_ctrl_read16
	sub	w8, w0, #128
	cmp	w8, #2
	b.lo	LBB0_4
; %bb.1:
	cmp	w0, #131
	b.eq	LBB0_5
; %bb.2:
	cmp	w0, #130
	b.ne	LBB0_7
; %bb.3:
	cmp	w20, #32
	cset	w2, eq
	b	LBB0_6
LBB0_4:
	cmp	w20, #32
	mov	w8, #257
	csinc	w8, w8, wzr, eq
	cmp	w20, #64
	csel	w2, wzr, w8, eq
	b	LBB0_6
LBB0_5:
	cmp	w20, #32
	cset	w2, ne
LBB0_6:
Lloh3:
	adrp	x8, _HOST_MODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HOST_MODE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_sd_ctrl_write16
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CTL_VERSION,4,2                ; @CTL_VERSION
	.comm	_HOST_MODE,4,2                  ; @HOST_MODE
	.no_dead_strip	_renesas_sdhi_sdbuf_width
.subsections_via_symbols
