	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm_sdhci_read_2
_bcm_sdhci_read_2:                      ## @bcm_sdhci_read_2
	.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
	movl	%edx, %ebx
	callq	_device_get_softc
	movq	_SDHCI_BLOCK_SIZE@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_SDHCI_BLOCK_COUNT@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	jne	LBB0_4
LBB0_2:
	cmpq	$0, 8(%rax)
	je	LBB0_4
## %bb.3:
	movl	(%rax), %eax
	jmp	LBB0_8
LBB0_4:
	movq	_SDHCI_TRANSFER_MODE@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	je	LBB0_6
## %bb.5:
	movq	_SDHCI_COMMAND_FLAGS@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	je	LBB0_6
## %bb.7:
	movl	%ebx, %esi
	andl	$-4, %esi
	movq	%rax, %rdi
	callq	_RD4
	jmp	LBB0_8
LBB0_6:
	movl	4(%rax), %eax
LBB0_8:
	shll	$3, %ebx
	movl	%ebx, %ecx
	sarl	%cl, %eax
	movzwl	%ax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDHCI_BLOCK_SIZE,4,2           ## @SDHCI_BLOCK_SIZE
	.comm	_SDHCI_BLOCK_COUNT,4,2          ## @SDHCI_BLOCK_COUNT
	.comm	_SDHCI_TRANSFER_MODE,4,2        ## @SDHCI_TRANSFER_MODE
	.comm	_SDHCI_COMMAND_FLAGS,4,2        ## @SDHCI_COMMAND_FLAGS
	.no_dead_strip	_bcm_sdhci_read_2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm_sdhci_read_2
_bcm_sdhci_read_2:                      ; @bcm_sdhci_read_2
	.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, x2
	bl	_device_get_softc
Lloh0:
	adrp	x8, _SDHCI_BLOCK_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDHCI_BLOCK_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SDHCI_BLOCK_COUNT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SDHCI_BLOCK_COUNT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w19
	ccmp	w9, w19, #4, ne
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w0, [x0]
	b	LBB0_6
LBB0_3:
Lloh6:
	adrp	x8, _SDHCI_TRANSFER_MODE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SDHCI_TRANSFER_MODE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _SDHCI_COMMAND_FLAGS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SDHCI_COMMAND_FLAGS@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w19
	ccmp	w9, w19, #4, ne
	b.ne	LBB0_5
; %bb.4:
	ldr	w0, [x0, #4]
	b	LBB0_6
LBB0_5:
	and	w1, w19, #0xfffffffc
	bl	_RD4
LBB0_6:
	ubfiz	w8, w19, #3, #2
	asr	w8, w0, w8
	and	w0, w8, #0xffff
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SDHCI_BLOCK_SIZE,4,2           ; @SDHCI_BLOCK_SIZE
	.comm	_SDHCI_BLOCK_COUNT,4,2          ; @SDHCI_BLOCK_COUNT
	.comm	_SDHCI_TRANSFER_MODE,4,2        ; @SDHCI_TRANSFER_MODE
	.comm	_SDHCI_COMMAND_FLAGS,4,2        ; @SDHCI_COMMAND_FLAGS
	.no_dead_strip	_bcm_sdhci_read_2
.subsections_via_symbols
