	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_sdiod_skbuff_read
_brcmf_sdiod_skbuff_read:               ## @brcmf_sdiod_skbuff_read
	.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
	movq	%rcx, %rax
	movq	%rdi, %r14
	movl	(%rcx), %ecx
	addl	$3, %ecx
	andl	$-4, %ecx
	movl	(%rsi), %ebx
	cmpl	$2, %ebx
	je	LBB0_3
## %bb.1:
	cmpl	$1, %ebx
	jne	LBB0_4
## %bb.2:
	movq	8(%rax), %rax
	movq	%rsi, %rdi
	movq	%rax, %rsi
	callq	_sdio_memcpy_fromio
	movl	%eax, %ebx
	jmp	LBB0_5
LBB0_3:
	movq	8(%rax), %rax
	movq	%rsi, %rdi
	movq	%rax, %rsi
	callq	_sdio_readsb
	movl	%eax, %ebx
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movl	%ebx, %edx
	callq	_WARN
	movq	_ENOMEDIUM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movq	_ENOMEDIUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_7
## %bb.6:
	movq	_BRCMF_SDIOD_NOMEDIUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_brcmf_sdiod_change_state
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid sdio function number: %d\n"

	.comm	_ENOMEDIUM,4,2                  ## @ENOMEDIUM
	.comm	_BRCMF_SDIOD_NOMEDIUM,4,2       ## @BRCMF_SDIOD_NOMEDIUM
	.no_dead_strip	_brcmf_sdiod_skbuff_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_sdiod_skbuff_read
_brcmf_sdiod_skbuff_read:               ; @brcmf_sdiod_skbuff_read
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x8, x3
	mov	x19, x0
	ldr	w9, [x3]
	add	w9, w9, #3
	and	w3, w9, #0xfffffffc
	ldr	w9, [x1]
Lloh0:
	adrp	x21, _ENOMEDIUM@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ENOMEDIUM@GOTPAGEOFF]
	cmp	w9, #2
	b.eq	LBB0_3
; %bb.1:
	cmp	w9, #1
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [x8, #8]
	mov	x0, x1
	mov	x1, x8
	bl	_sdio_memcpy_fromio
	mov	x20, x0
	b	LBB0_5
LBB0_3:
	ldr	x8, [x8, #8]
	mov	x0, x1
	mov	x1, x8
	bl	_sdio_readsb
	mov	x20, x0
	b	LBB0_5
LBB0_4:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x9
	bl	_WARN
	ldr	w8, [x21]
	neg	w20, w8
LBB0_5:
	ldr	w8, [x21]
	cmn	w20, w8
	b.ne	LBB0_7
; %bb.6:
Lloh4:
	adrp	x8, _BRCMF_SDIOD_NOMEDIUM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BRCMF_SDIOD_NOMEDIUM@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_brcmf_sdiod_change_state
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid sdio function number: %d\n"

	.comm	_ENOMEDIUM,4,2                  ; @ENOMEDIUM
	.comm	_BRCMF_SDIOD_NOMEDIUM,4,2       ; @BRCMF_SDIOD_NOMEDIUM
	.no_dead_strip	_brcmf_sdiod_skbuff_read
.subsections_via_symbols
