	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_sdiod_probe
_brcmf_sdiod_probe:                     ## @brcmf_sdiod_probe
	.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	%rdi, %rbx
	movq	16(%rdi), %rdi
	callq	_sdio_claim_host
	movq	16(%rbx), %rdi
	movq	_SDIO_FUNC1_BLOCKSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_sdio_set_block_size
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_3:
	movq	(%rbx), %rdi
	movq	_SDIO_FUNC2_BLOCKSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_sdio_set_block_size
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rdi
LBB0_2:
	xorl	%eax, %eax
	callq	_brcmf_err
	movq	16(%rbx), %rdi
	callq	_sdio_release_host
LBB0_12:
	movq	%rbx, %rdi
	callq	_brcmf_sdiod_remove
LBB0_13:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	_SDIO_WAIT_F2RDY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rbx), %rcx
	movl	%eax, 8(%rcx)
	movq	16(%rbx), %rdi
	callq	_sdio_enable_func
	movl	%eax, %r14d
	movq	16(%rbx), %rdi
	callq	_sdio_release_host
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_brcmf_err
	jmp	LBB0_12
LBB0_7:
	movq	%rbx, %rdi
	callq	_brcmf_sdiod_freezer_attach
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_12
## %bb.8:
	movq	%rbx, %rdi
	callq	_brcmf_sdio_probe
	movl	%eax, 8(%rbx)
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_brcmf_sdiod_host_fixup
	xorl	%r14d, %r14d
	jmp	LBB0_13
LBB0_10:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	testl	%r14d, %r14d
	je	LBB0_14
## %bb.11:
	negl	%r14d
	jmp	LBB0_12
LBB0_14:
	xorl	%r14d, %r14d
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_SDIO_FUNC1_BLOCKSIZE,4,2       ## @SDIO_FUNC1_BLOCKSIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to set F1 blocksize\n"

	.comm	_SDIO_FUNC2_BLOCKSIZE,4,2       ## @SDIO_FUNC2_BLOCKSIZE
L_.str.1:                               ## @.str.1
	.asciz	"Failed to set F2 blocksize\n"

	.comm	_SDIO_WAIT_F2RDY,4,2            ## @SDIO_WAIT_F2RDY
L_.str.2:                               ## @.str.2
	.asciz	"Failed to enable F1: err=%d\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_brcmf_sdiod_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_sdiod_probe
_brcmf_sdiod_probe:                     ; @brcmf_sdiod_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	x0, [x0, #16]
	bl	_sdio_claim_host
	ldr	x0, [x19, #16]
Lloh0:
	adrp	x8, _SDIO_FUNC1_BLOCKSIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDIO_FUNC1_BLOCKSIZE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_sdio_set_block_size
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	ldr	x0, [x19]
Lloh5:
	adrp	x8, _SDIO_FUNC2_BLOCKSIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SDIO_FUNC2_BLOCKSIZE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_sdio_set_block_size
	cbz	w0, LBB0_7
; %bb.3:
	mov	x20, x0
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_4:
	bl	_brcmf_err
	ldr	x0, [x19, #16]
	bl	_sdio_release_host
LBB0_5:
	mov	x0, x19
	bl	_brcmf_sdiod_remove
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_7:
Lloh10:
	adrp	x8, _SDIO_WAIT_F2RDY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SDIO_WAIT_F2RDY@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	x9, [x19]
	str	w8, [x9, #8]
	ldr	x0, [x19, #16]
	bl	_sdio_enable_func
	mov	x20, x0
	ldr	x0, [x19, #16]
	bl	_sdio_release_host
	cbz	w20, LBB0_9
; %bb.8:
	str	x20, [sp]
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_brcmf_err
	b	LBB0_5
LBB0_9:
	mov	x0, x19
	bl	_brcmf_sdiod_freezer_attach
	mov	x20, x0
	cbnz	w0, LBB0_5
; %bb.10:
	mov	x0, x19
	bl	_brcmf_sdio_probe
	str	w0, [x19, #8]
	cbz	w0, LBB0_12
; %bb.11:
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_brcmf_sdiod_host_fixup
	mov	w20, #0
	b	LBB0_6
LBB0_12:
Lloh15:
	adrp	x8, _ENODEV@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cbz	w8, LBB0_14
; %bb.13:
	neg	w20, w8
	b	LBB0_5
LBB0_14:
	mov	w20, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_SDIO_FUNC1_BLOCKSIZE,4,2       ; @SDIO_FUNC1_BLOCKSIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to set F1 blocksize\n"

	.comm	_SDIO_FUNC2_BLOCKSIZE,4,2       ; @SDIO_FUNC2_BLOCKSIZE
l_.str.1:                               ; @.str.1
	.asciz	"Failed to set F2 blocksize\n"

	.comm	_SDIO_WAIT_F2RDY,4,2            ; @SDIO_WAIT_F2RDY
l_.str.2:                               ; @.str.2
	.asciz	"Failed to enable F1: err=%d\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_brcmf_sdiod_probe
.subsections_via_symbols
