	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43_sdio_probe
_b43_sdio_probe:                        ## @b43_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	8(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.1:
	movq	%rdi, %r14
	xorl	%r15d, %r15d
	leaq	L_.str(%rip), %r12
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$128, (%rbx)
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rax
	cmpl	$128, (%rax)
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$5, 16(%rbx)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%rax), %r13d
	shll	$8, %r13d
	orl	4(%rax), %r13d
	movl	16(%rax), %r15d
	shll	$8, %r15d
	orl	12(%rax), %r15d
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%r13d, %edx
	movl	%r15d, %ecx
	callq	_dev_info
	jmp	LBB0_6
LBB0_7:
	testl	%r13d, %r13d
	je	LBB0_9
## %bb.8:
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.10:
	movq	%r14, %rdi
	callq	_sdio_claim_host
	movq	_B43_SDIO_BLOCK_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_sdio_set_block_size
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %r12d
	movl	(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_19
LBB0_9:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_20
LBB0_12:
	movq	%r14, %rdi
	callq	_sdio_enable_func
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	%eax, %r12d
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_19
LBB0_14:
	movq	%r14, %rdi
	callq	_sdio_release_host
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_15
## %bb.16:
	movq	%rax, %rbx
	movl	%r13d, %edi
	movl	%r15d, %esi
	callq	_b43_sdio_get_quirks
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_ssb_bus_sdiobus_register
	testl	%eax, %eax
	je	LBB0_21
## %bb.17:
	movl	%eax, %r12d
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	%rbx, %rdi
	callq	_kfree
	jmp	LBB0_18
LBB0_15:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_18:
	movq	%r14, %rdi
	callq	_sdio_claim_host
	movq	%r14, %rdi
	callq	_sdio_disable_func
LBB0_19:
	movq	%r14, %rdi
	callq	_sdio_release_host
LBB0_20:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_sdio_set_drvdata
	xorl	%r12d, %r12d
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Chip ID %04x:%04x\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_B43_SDIO_BLOCK_SIZE,4,2        ## @B43_SDIO_BLOCK_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"failed to set block size to %u bytes, error %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to enable func, error %d\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.3:                               ## @.str.3
	.asciz	"failed to allocate ssb bus\n"

L_.str.4:                               ## @.str.4
	.asciz	"failed to register ssb sdio bus, error %d\n"

	.no_dead_strip	_b43_sdio_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43_sdio_probe
_b43_sdio_probe:                        ; @b43_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
	ldr	x23, [x0, #8]
	cbz	x23, LBB0_11
; %bb.1:
	mov	x19, x0
	mov	w21, #0
	mov	w20, #0
Lloh0:
	adrp	x22, l_.str@PAGE
Lloh1:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x23, [x23, #24]
	cbz	x23, LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23]
	cmp	w8, #128
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x23, #8]
	ldr	w9, [x8]
	cmp	w9, #128
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x23, #16]
	cmp	w9, #5
	b.ne	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	w9, w10, [x8, #4]
	orr	w20, w9, w10, lsl #8
	ldp	w9, w8, [x8, #12]
	orr	w21, w9, w8, lsl #8
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	mov	x3, x21
	bl	_dev_info
	b	LBB0_2
LBB0_7:
	cbz	w20, LBB0_11
; %bb.8:
	cbz	w21, LBB0_11
; %bb.9:
	mov	x0, x19
	bl	_sdio_claim_host
Lloh2:
	adrp	x23, _B43_SDIO_BLOCK_SIZE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _B43_SDIO_BLOCK_SIZE@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_sdio_set_block_size
	cbz	w0, LBB0_12
; %bb.10:
	mov	x22, x0
	ldr	w8, [x23]
	stp	x8, x22, [sp]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_19
LBB0_11:
Lloh6:
	adrp	x8, _ENODEV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_20
LBB0_12:
	mov	x0, x19
	bl	_sdio_enable_func
	cbz	w0, LBB0_14
; %bb.13:
	mov	x22, x0
	str	x22, [sp]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	b	LBB0_19
LBB0_14:
	mov	x0, x19
	bl	_sdio_release_host
Lloh11:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kzalloc
	cbz	x0, LBB0_17
; %bb.15:
	mov	x22, x0
	mov	x0, x20
	mov	x1, x21
	bl	_b43_sdio_get_quirks
	mov	x2, x0
	mov	x0, x22
	mov	x1, x19
	bl	_ssb_bus_sdiobus_register
	cbz	w0, LBB0_21
; %bb.16:
	mov	x20, x0
	str	x20, [sp]
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x22
	bl	_kfree
	mov	x22, x20
	b	LBB0_18
LBB0_17:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w22, w8
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_18:
	mov	x0, x19
	bl	_sdio_claim_host
	mov	x0, x19
	bl	_sdio_disable_func
LBB0_19:
	mov	x0, x19
	bl	_sdio_release_host
LBB0_20:
	mov	x0, x22
	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_21:
	mov	x0, x19
	mov	x1, x22
	bl	_sdio_set_drvdata
	mov	w22, #0
	b	LBB0_20
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Chip ID %04x:%04x\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_B43_SDIO_BLOCK_SIZE,4,2        ; @B43_SDIO_BLOCK_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"failed to set block size to %u bytes, error %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to enable func, error %d\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.3:                               ; @.str.3
	.asciz	"failed to allocate ssb bus\n"

l_.str.4:                               ; @.str.4
	.asciz	"failed to register ssb sdio bus, error %d\n"

	.no_dead_strip	_b43_sdio_probe
.subsections_via_symbols
