	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_ops_sdio_probe
_brcmf_ops_sdio_probe:                  ## @brcmf_ops_sdio_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	%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	%rdi, %rbx
	movq	_SDIO@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movl	(%r12), %edi
	movl	24(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movl	(%r12), %edi
	movl	20(%rbx), %edx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movl	(%r12), %edi
	movl	16(%rbx), %edx
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movl	(%r12), %edi
	movl	(%rbx), %edx
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_brcmf_dbg
	leaq	4(%rbx), %r14
	movq	_MMC_QUIRK_LENIENT_FN0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%rbx), %rcx
	orl	%eax, 8(%rcx)
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_brcmf_sdiod_acpi_set_power_manageable
	movl	(%rbx), %eax
	cmpl	$1, %eax
	je	LBB0_11
## %bb.1:
	cmpl	$2, %eax
	jne	LBB0_6
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	$48, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%r15), %esi
	movl	$48, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	%rax, %r13
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	%rax, (%r13)
	movq	%rbx, 40(%r13)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, 32(%r13)
	movq	%r13, 24(%rbx)
	movq	_BRCMF_PROTO_BCDC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_dev_set_drvdata
	movq	(%r13), %rdi
	movq	%rbx, %rsi
	callq	_dev_set_drvdata
	movq	(%r13), %rax
	movq	%rax, 8(%r13)
	movq	_BRCMF_SDIOD_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_brcmf_sdiod_change_state
	movl	(%r12), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movq	%r13, %rdi
	callq	_brcmf_sdiod_probe
	testl	%eax, %eax
	je	LBB0_12
## %bb.5:
	leaq	L_.str.6(%rip), %rdi
	movl	%eax, %esi
	movl	%eax, %r15d
	callq	_brcmf_err
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_dev_set_drvdata
	movq	(%r13), %rdi
	xorl	%esi, %esi
	callq	_dev_set_drvdata
	movq	%r13, %rdi
	callq	_kfree
	movq	%rbx, %rdi
	callq	_kfree
	jmp	LBB0_11
LBB0_6:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_10:
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_11:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	(%r12), %edi
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_brcmf_dbg
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_SDIO,4,2                       ## @SDIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Enter\n"

L_.str.1:                               ## @.str.1
	.asciz	"Class=%x\n"

L_.str.2:                               ## @.str.2
	.asciz	"sdio vendor ID: 0x%04x\n"

L_.str.3:                               ## @.str.3
	.asciz	"sdio device ID: 0x%04x\n"

L_.str.4:                               ## @.str.4
	.asciz	"Function#: %d\n"

	.comm	_MMC_QUIRK_LENIENT_FN0,4,2      ## @MMC_QUIRK_LENIENT_FN0
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_BRCMF_PROTO_BCDC,4,2           ## @BRCMF_PROTO_BCDC
	.comm	_BRCMF_SDIOD_DOWN,4,2           ## @BRCMF_SDIOD_DOWN
L_.str.5:                               ## @.str.5
	.asciz	"F2 found, calling brcmf_sdiod_probe...\n"

L_.str.6:                               ## @.str.6
	.asciz	"F2 error, probe failed %d...\n"

L_.str.7:                               ## @.str.7
	.asciz	"F2 init completed...\n"

	.no_dead_strip	_brcmf_ops_sdio_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_ops_sdio_probe
_brcmf_ops_sdio_probe:                  ; @brcmf_ops_sdio_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
Lloh0:
	adrp	x23, _SDIO@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SDIO@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_brcmf_dbg
	ldr	w0, [x23]
	ldr	w8, [x19, #24]
	str	x8, [sp]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_brcmf_dbg
	ldr	w0, [x23]
	ldr	w8, [x19, #20]
	str	x8, [sp]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_brcmf_dbg
	ldr	w0, [x23]
	ldr	w8, [x19, #16]
	str	x8, [sp]
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_brcmf_dbg
	ldr	w0, [x23]
	ldr	w8, [x19]
	str	x8, [sp]
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_brcmf_dbg
Lloh12:
	adrp	x8, _MMC_QUIRK_LENIENT_FN0@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MMC_QUIRK_LENIENT_FN0@GOTPAGEOFF]
	add	x20, x19, #4
Lloh14:
	ldr	w8, [x8]
	ldr	x9, [x19, #8]
	ldr	w10, [x9, #8]
	orr	w8, w10, w8
	str	w8, [x9, #8]
	mov	x0, x20
	mov	w1, #0
	bl	_brcmf_sdiod_acpi_set_power_manageable
	ldr	w8, [x19]
	cmp	w8, #1
	b.eq	LBB0_6
; %bb.1:
	cmp	w8, #2
	b.ne	LBB0_7
; %bb.2:
Lloh15:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh16:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w0, #48
	bl	_kzalloc
	cbz	x0, LBB0_9
; %bb.3:
	mov	x21, x0
	ldr	w1, [x22]
	mov	w0, #48
	bl	_kzalloc
	cbz	x0, LBB0_8
; %bb.4:
	mov	x22, x0
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	str	x8, [x0]
	stp	x21, x19, [x0, #32]
	str	x0, [x21, #24]
Lloh17:
	adrp	x8, _BRCMF_PROTO_BCDC@GOTPAGE
Lloh18:
	ldr	x8, [x8, _BRCMF_PROTO_BCDC@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x21, #16]
	mov	x0, x20
	mov	x1, x21
	bl	_dev_set_drvdata
	ldr	x0, [x22]
	mov	x1, x21
	bl	_dev_set_drvdata
	ldr	x8, [x22]
	str	x8, [x22, #8]
Lloh20:
	adrp	x8, _BRCMF_SDIOD_DOWN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _BRCMF_SDIOD_DOWN@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_brcmf_sdiod_change_state
	ldr	w0, [x23]
Lloh23:
	adrp	x1, l_.str.5@PAGE
Lloh24:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_brcmf_dbg
	mov	x0, x22
	bl	_brcmf_sdiod_probe
	mov	x19, x0
	cbz	w0, LBB0_12
; %bb.5:
Lloh25:
	adrp	x0, l_.str.6@PAGE
Lloh26:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	x1, x19
	bl	_brcmf_err
	mov	x0, x20
	mov	x1, #0
	bl	_dev_set_drvdata
	ldr	x0, [x22]
	mov	x1, #0
	bl	_dev_set_drvdata
	mov	x0, x22
	bl	_kfree
	mov	x0, x21
	bl	_kfree
	b	LBB0_11
LBB0_6:
	mov	w19, #0
	b	LBB0_11
LBB0_7:
Lloh27:
	adrp	x8, _ENODEV@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
	mov	x0, x21
	bl	_kfree
LBB0_9:
Lloh29:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_11:
	mov	x0, x19
	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
	add	sp, sp, #80
	ret
LBB0_12:
	ldr	w0, [x23]
Lloh31:
	adrp	x1, l_.str.7@PAGE
Lloh32:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_brcmf_dbg
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_SDIO,4,2                       ; @SDIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enter\n"

l_.str.1:                               ; @.str.1
	.asciz	"Class=%x\n"

l_.str.2:                               ; @.str.2
	.asciz	"sdio vendor ID: 0x%04x\n"

l_.str.3:                               ; @.str.3
	.asciz	"sdio device ID: 0x%04x\n"

l_.str.4:                               ; @.str.4
	.asciz	"Function#: %d\n"

	.comm	_MMC_QUIRK_LENIENT_FN0,4,2      ; @MMC_QUIRK_LENIENT_FN0
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_BRCMF_PROTO_BCDC,4,2           ; @BRCMF_PROTO_BCDC
	.comm	_BRCMF_SDIOD_DOWN,4,2           ; @BRCMF_SDIOD_DOWN
l_.str.5:                               ; @.str.5
	.asciz	"F2 found, calling brcmf_sdiod_probe...\n"

l_.str.6:                               ; @.str.6
	.asciz	"F2 error, probe failed %d...\n"

l_.str.7:                               ; @.str.7
	.asciz	"F2 init completed...\n"

	.no_dead_strip	_brcmf_ops_sdio_probe
.subsections_via_symbols
