	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_sdio_bus_get_memdump
_brcmf_sdio_bus_get_memdump:            ## @brcmf_sdio_bus_get_memdump
	.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
	movq	%rdx, %r15
	movq	%rsi, %r13
	callq	_dev_get_drvdata
	movq	(%rax), %rbx
	movq	8(%rbx), %r14
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rcx
	callq	_brcmf_dbg
	movq	(%r14), %rax
	movl	(%rax), %r14d
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %edi
	callq	_sdio_claim_host
	testq	%r15, %r15
	je	LBB0_5
## %bb.1:
	movq	%r15, %rsi
	xorl	%eax, %eax
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_MEMBLOCK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	leal	(%rdi,%r15), %edx
	movslq	%edx, %rdx
	movq	%rsi, %rbx
	subq	%rax, %rbx
	cmpq	%rsi, %rdx
	cmovbq	%rdi, %rbx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rsi, %r12
	xorl	%esi, %esi
	movl	%r14d, %edx
	movq	%r13, %rcx
	movl	%ebx, %r8d
	callq	_brcmf_sdiod_ramrw
	movl	%r14d, %r8d
	testl	%eax, %eax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	%ebx, %rax
	addq	%rax, %r13
	addl	%ebx, %r15d
	addl	%ebx, %r8d
	movslq	%r15d, %rax
	cmpq	%r12, %rax
	movq	%r12, %rsi
	movl	%r8d, %r14d
	jb	LBB0_2
LBB0_5:
	xorl	%r14d, %r14d
	jmp	LBB0_6
LBB0_3:
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	movl	%r8d, %ecx
	callq	_brcmf_err
LBB0_6:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_sdio_release_host
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INFO,4,2                       ## @INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dump at 0x%08x: size=%zu\n"

	.comm	_MEMBLOCK,4,2                   ## @MEMBLOCK
L_.str.1:                               ## @.str.1
	.asciz	"error %d on reading %d membytes at 0x%08x\n"

	.no_dead_strip	_brcmf_sdio_bus_get_memdump
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_sdio_bus_get_memdump
_brcmf_sdio_bus_get_memdump:            ; @brcmf_sdio_bus_get_memdump
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x21, x1
	bl	_dev_get_drvdata
	ldr	x19, [x0]
	ldr	x22, [x19, #8]
Lloh0:
	adrp	x8, _INFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INFO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x8, [x22]
	ldr	w2, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x20
	bl	_brcmf_dbg
	ldr	x8, [x22]
	ldr	w22, [x8]
	ldr	w0, [x19]
	bl	_sdio_claim_host
	cbz	x20, LBB0_4
; %bb.1:
	mov	x8, #0
	mov	w25, #0
Lloh5:
	adrp	x26, _MEMBLOCK@GOTPAGE
Lloh6:
	ldr	x26, [x26, _MEMBLOCK@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x26]
	add	w10, w9, w25
	sxtw	x10, w10
	sub	x8, x20, x8
	cmp	x10, x20
	csel	x23, x9, x8, lo
	mov	x0, x19
	mov	w1, #0
	mov	x2, x22
	mov	x3, x21
	mov	x4, x23
	bl	_brcmf_sdiod_ramrw
	cbnz	w0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x21, w23, sxtw
	add	w25, w25, w23
	add	w22, w22, w23
	sxtw	x8, w25
	cmp	x8, x20
	b.lo	LBB0_2
LBB0_4:
	mov	w24, #0
	b	LBB0_6
LBB0_5:
	mov	x24, x0
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x24
	mov	x2, x23
	mov	x3, x22
	bl	_brcmf_err
LBB0_6:
	ldr	w0, [x19]
	bl	_sdio_release_host
	mov	x0, x24
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_INFO,4,2                       ; @INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dump at 0x%08x: size=%zu\n"

	.comm	_MEMBLOCK,4,2                   ; @MEMBLOCK
l_.str.1:                               ; @.str.1
	.asciz	"error %d on reading %d membytes at 0x%08x\n"

	.no_dead_strip	_brcmf_sdio_bus_get_memdump
.subsections_via_symbols
