	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm_sdhci_write_2
_bcm_sdhci_write_2:                     ## @bcm_sdhci_write_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %ebx
	callq	_device_get_softc
	movq	%rax, %r15
	movq	_SDHCI_BLOCK_SIZE@GOTPCREL(%rip), %r13
	movq	_SDHCI_BLOCK_COUNT@GOTPCREL(%rip), %r12
	cmpl	%ebx, (%r13)
	je	LBB0_2
## %bb.1:
	cmpl	%ebx, (%r12)
	jne	LBB0_4
LBB0_2:
	cmpl	$0, (%r15)
	je	LBB0_4
## %bb.3:
	movl	4(%r15), %eax
	jmp	LBB0_7
LBB0_4:
	movq	_SDHCI_COMMAND_FLAGS@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_6
## %bb.5:
	movl	8(%r15), %eax
	jmp	LBB0_7
LBB0_6:
	movl	%ebx, %esi
	andl	$-4, %esi
	movq	%r15, %rdi
	callq	_RD4
LBB0_7:
	leal	(,%rbx,8), %ecx
	movl	$65535, %edx                    ## imm = 0xFFFF
	shll	%cl, %edx
	notl	%edx
	andl	%eax, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r14d
	orl	%edx, %r14d
	movq	_SDHCI_TRANSFER_MODE@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_9
## %bb.8:
	movl	%r14d, 8(%r15)
	jmp	LBB0_12
LBB0_9:
	movl	(%r13), %esi
	cmpl	%ebx, %esi
	je	LBB0_11
## %bb.10:
	cmpl	%ebx, (%r12)
	je	LBB0_11
## %bb.13:
	movq	_SDHCI_COMMAND_FLAGS@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_17
## %bb.14:
	cmpl	$0, (%r15)
	je	LBB0_16
## %bb.15:
	movl	4(%r15), %edx
	movq	%r15, %rdi
	callq	_WR4
	movl	$0, (%r15)
LBB0_16:
	movl	%r14d, 8(%r15)
LBB0_17:
	andl	$-4, %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WR4                            ## TAILCALL
LBB0_11:
	movl	%r14d, 4(%r15)
	movl	$1, (%r15)
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	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_COMMAND_FLAGS,4,2        ## @SDHCI_COMMAND_FLAGS
	.comm	_SDHCI_TRANSFER_MODE,4,2        ## @SDHCI_TRANSFER_MODE
	.no_dead_strip	_bcm_sdhci_write_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_write_2
_bcm_sdhci_write_2:                     ; @bcm_sdhci_write_2
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x3
	mov	x19, x2
	bl	_device_get_softc
	mov	x20, x0
Lloh0:
	adrp	x22, _SDHCI_BLOCK_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SDHCI_BLOCK_SIZE@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh2:
	adrp	x23, _SDHCI_BLOCK_COUNT@GOTPAGE
Lloh3:
	ldr	x23, [x23, _SDHCI_BLOCK_COUNT@GOTPAGEOFF]
	ldr	w9, [x23]
	cmp	w8, w19
	ccmp	w9, w19, #4, ne
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x20]
	cbz	w8, LBB0_3
; %bb.2:
	ldr	w0, [x20, #4]
	b	LBB0_6
LBB0_3:
Lloh4:
	adrp	x8, _SDHCI_COMMAND_FLAGS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SDHCI_COMMAND_FLAGS@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_5
; %bb.4:
	ldr	w0, [x20, #8]
	b	LBB0_6
LBB0_5:
	and	w1, w19, #0xfffffffc
	mov	x0, x20
	bl	_RD4
LBB0_6:
	ubfiz	w8, w19, #3, #2
	mov	w9, #65535
	lsl	w9, w9, w8
	bic	w9, w0, w9
	lsl	w8, w21, w8
	orr	w21, w9, w8
Lloh7:
	adrp	x8, _SDHCI_TRANSFER_MODE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SDHCI_TRANSFER_MODE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_8
; %bb.7:
	str	w21, [x20, #8]
	b	LBB0_10
LBB0_8:
	ldr	w1, [x22]
	ldr	w8, [x23]
	cmp	w1, w19
	ccmp	w8, w19, #4, ne
	b.ne	LBB0_11
; %bb.9:
	mov	w8, #1
	stp	w8, w21, [x20]
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh10:
	adrp	x8, _SDHCI_COMMAND_FLAGS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SDHCI_COMMAND_FLAGS@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_15
; %bb.12:
	ldr	w8, [x20]
	cbz	w8, LBB0_14
; %bb.13:
	ldr	w2, [x20, #4]
	mov	x0, x20
	bl	_WR4
	str	wzr, [x20]
LBB0_14:
	str	w21, [x20, #8]
LBB0_15:
	and	w1, w19, #0xfffffffc
	mov	x0, x20
	mov	x2, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_WR4
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_SDHCI_BLOCK_SIZE,4,2           ; @SDHCI_BLOCK_SIZE
	.comm	_SDHCI_BLOCK_COUNT,4,2          ; @SDHCI_BLOCK_COUNT
	.comm	_SDHCI_COMMAND_FLAGS,4,2        ; @SDHCI_COMMAND_FLAGS
	.comm	_SDHCI_TRANSFER_MODE,4,2        ; @SDHCI_TRANSFER_MODE
	.no_dead_strip	_bcm_sdhci_write_2
.subsections_via_symbols
