	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wl1251_sdio_probe
_wl1251_sdio_probe:                     ## @wl1251_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, %r12
	xorl	%eax, %eax
	callq	_wl1251_alloc_hw
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.24:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	24(%rbx), %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_sdio_claim_host
	movq	%r12, %rdi
	callq	_sdio_enable_func
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_21
## %bb.4:
	movq	%r12, %rdi
	movl	$512, %esi                      ## imm = 0x200
	callq	_sdio_set_block_size
	movq	%r12, %rdi
	callq	_sdio_release_host
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_SET_IEEE80211_DEV
	movq	%r12, (%r15)
	movq	%r15, 24(%r14)
	movq	_wl1251_sdio_ops@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r14)
	xorl	%eax, %eax
	callq	_wl1251_get_platform_data
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	8(%r14), %edi
	jmp	LBB0_7
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_22
LBB0_6:
	movl	16(%rbx), %edi
	movl	%edi, 8(%r14)
	movq	8(%rbx), %rax
	movq	%rax, (%r14)
	movl	(%rbx), %eax
	movl	%eax, 12(%r14)
LBB0_7:
	callq	_gpio_is_valid
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	movl	8(%r14), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	callq	_devm_gpio_request
	testl	%eax, %eax
	je	LBB0_11
## %bb.9:
	movl	%eax, %r13d
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_10
LBB0_11:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.13:
	movq	_IRQ_NOAUTOEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_irq_set_status_flags
	movq	(%r14), %rdi
	movq	_wl1251_line_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rcx
	xorl	%edx, %edx
	movq	%r14, %r8
	callq	_request_irq
	testl	%eax, %eax
	js	LBB0_14
## %bb.15:
	movq	(%r14), %rdi
	movq	_IRQ_TYPE_EDGE_RISING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_irq_set_irq_type
	leaq	L_.str.4(%rip), %rdi
	movq	_wl1251_disable_line_irq@GOTPCREL(%rip), %rax
	movq	_wl1251_enable_line_irq@GOTPCREL(%rip), %rcx
	jmp	LBB0_16
LBB0_12:
	leaq	L_.str.5(%rip), %rdi
	movq	_wl1251_sdio_disable_irq@GOTPCREL(%rip), %rax
	movq	_wl1251_sdio_enable_irq@GOTPCREL(%rip), %rcx
LBB0_16:
	movq	_wl1251_sdio_ops@GOTPCREL(%rip), %rdx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rdx)
	movl	(%rax), %eax
	movl	%eax, (%rdx)
	callq	_wl1251_info
	movq	%r14, %rdi
	callq	_wl1251_init_ieee80211
	testl	%eax, %eax
	je	LBB0_17
## %bb.18:
	movl	%eax, %r13d
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.19:
	movq	%r14, %rsi
	callq	_free_irq
	jmp	LBB0_20
LBB0_17:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_sdio_set_drvdata
	movq	%r12, %rdi
	callq	_pm_runtime_put_noidle
	xorl	%r13d, %r13d
	jmp	LBB0_23
LBB0_14:
	movl	%eax, %r13d
	leaq	L_.str.3(%rip), %rdi
LBB0_10:
	movl	%r13d, %esi
	callq	_wl1251_error
LBB0_20:
	movq	%r12, %rdi
	callq	_sdio_claim_host
	movq	%r12, %rdi
	callq	_sdio_disable_func
LBB0_21:
	movq	%r12, %rdi
	callq	_sdio_release_host
	movq	%r15, %rdi
	callq	_kfree
LBB0_22:
	movq	%r14, %rdi
	callq	_wl1251_free_hw
LBB0_23:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_wl1251_sdio_ops,8,2            ## @wl1251_sdio_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wl1251 power"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to request gpio: %d\n"

	.comm	_IRQ_NOAUTOEN,4,2               ## @IRQ_NOAUTOEN
	.comm	_wl1251_line_irq,4,2            ## @wl1251_line_irq
L_.str.2:                               ## @.str.2
	.asciz	"wl1251"

L_.str.3:                               ## @.str.3
	.asciz	"request_irq() failed: %d"

	.comm	_IRQ_TYPE_EDGE_RISING,4,2       ## @IRQ_TYPE_EDGE_RISING
	.comm	_wl1251_enable_line_irq,4,2     ## @wl1251_enable_line_irq
	.comm	_wl1251_disable_line_irq,4,2    ## @wl1251_disable_line_irq
L_.str.4:                               ## @.str.4
	.asciz	"using dedicated interrupt line"

	.comm	_wl1251_sdio_enable_irq,4,2     ## @wl1251_sdio_enable_irq
	.comm	_wl1251_sdio_disable_irq,4,2    ## @wl1251_sdio_disable_irq
L_.str.5:                               ## @.str.5
	.asciz	"using SDIO interrupt"

	.no_dead_strip	_wl1251_sdio_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wl1251_sdio_probe
_wl1251_sdio_probe:                     ; @wl1251_sdio_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x0
	bl	_wl1251_alloc_hw
	mov	x23, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x23
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_2:
	ldr	x19, [x23, #24]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #8
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.3:
	mov	x21, x0
	mov	x0, x20
	bl	_sdio_claim_host
	mov	x0, x20
	bl	_sdio_enable_func
	mov	x22, x0
	cbnz	w0, LBB0_21
; %bb.4:
	mov	x0, x20
	mov	w1, #512
	bl	_sdio_set_block_size
	mov	x0, x20
	bl	_sdio_release_host
	mov	x0, x23
	mov	x1, x20
	bl	_SET_IEEE80211_DEV
	str	x20, [x21]
Lloh3:
	adrp	x23, _wl1251_sdio_ops@GOTPAGE
Lloh4:
	ldr	x23, [x23, _wl1251_sdio_ops@GOTPAGEOFF]
	stp	x23, x21, [x19, #16]
	bl	_wl1251_get_platform_data
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.5:
	ldr	w0, [x19, #8]
	bl	_gpio_is_valid
	cbnz	x0, LBB0_8
	b	LBB0_10
LBB0_6:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_22
LBB0_7:
	ldr	w0, [x22, #16]
	ldr	x8, [x22, #8]
	str	x8, [x19]
	ldr	w8, [x22]
	stp	w0, w8, [x19, #8]
	bl	_gpio_is_valid
	cbz	x0, LBB0_10
LBB0_8:
	ldr	w1, [x19, #8]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_devm_gpio_request
	cbz	w0, LBB0_10
; %bb.9:
	mov	x22, x0
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_19
LBB0_10:
	ldr	x0, [x19]
	cbz	x0, LBB0_13
; %bb.11:
Lloh12:
	adrp	x8, _IRQ_NOAUTOEN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IRQ_NOAUTOEN@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_irq_set_status_flags
	ldr	x0, [x19]
Lloh15:
	adrp	x8, _wl1251_line_irq@GOTPAGE
Lloh16:
	ldr	x8, [x8, _wl1251_line_irq@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x3, l_.str.2@PAGE
Lloh19:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	w2, #0
	mov	x4, x19
	bl	_request_irq
	tbnz	w0, #31, LBB0_18
; %bb.12:
	ldr	x0, [x19]
Lloh20:
	adrp	x8, _IRQ_TYPE_EDGE_RISING@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IRQ_TYPE_EDGE_RISING@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	bl	_irq_set_irq_type
Lloh23:
	adrp	x0, l_.str.4@PAGE
Lloh24:
	add	x0, x0, l_.str.4@PAGEOFF
Lloh25:
	adrp	x8, _wl1251_disable_line_irq@GOTPAGE
Lloh26:
	ldr	x8, [x8, _wl1251_disable_line_irq@GOTPAGEOFF]
Lloh27:
	adrp	x9, _wl1251_enable_line_irq@GOTPAGE
Lloh28:
	ldr	x9, [x9, _wl1251_enable_line_irq@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh29:
	adrp	x0, l_.str.5@PAGE
Lloh30:
	add	x0, x0, l_.str.5@PAGEOFF
Lloh31:
	adrp	x8, _wl1251_sdio_disable_irq@GOTPAGE
Lloh32:
	ldr	x8, [x8, _wl1251_sdio_disable_irq@GOTPAGEOFF]
Lloh33:
	adrp	x9, _wl1251_sdio_enable_irq@GOTPAGE
Lloh34:
	ldr	x9, [x9, _wl1251_sdio_enable_irq@GOTPAGEOFF]
LBB0_14:
	ldr	w9, [x9]
	ldr	w8, [x8]
	stp	w8, w9, [x23]
	bl	_wl1251_info
	mov	x0, x19
	bl	_wl1251_init_ieee80211
	mov	x22, x0
	cbz	w0, LBB0_17
; %bb.15:
	ldr	x0, [x19]
	cbz	x0, LBB0_20
; %bb.16:
	mov	x1, x19
	bl	_free_irq
	b	LBB0_20
LBB0_17:
	mov	x0, x20
	mov	x1, x19
	bl	_sdio_set_drvdata
	mov	x0, x20
	bl	_pm_runtime_put_noidle
	b	LBB0_23
LBB0_18:
	mov	x22, x0
Lloh35:
	adrp	x0, l_.str.3@PAGE
Lloh36:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_19:
	mov	x1, x22
	bl	_wl1251_error
LBB0_20:
	mov	x0, x20
	bl	_sdio_claim_host
	mov	x0, x20
	bl	_sdio_disable_func
LBB0_21:
	mov	x0, x20
	bl	_sdio_release_host
	mov	x0, x21
	bl	_kfree
LBB0_22:
	mov	x0, x19
	bl	_wl1251_free_hw
LBB0_23:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_wl1251_sdio_ops,8,2            ; @wl1251_sdio_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wl1251 power"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to request gpio: %d\n"

	.comm	_IRQ_NOAUTOEN,4,2               ; @IRQ_NOAUTOEN
	.comm	_wl1251_line_irq,4,2            ; @wl1251_line_irq
l_.str.2:                               ; @.str.2
	.asciz	"wl1251"

l_.str.3:                               ; @.str.3
	.asciz	"request_irq() failed: %d"

	.comm	_IRQ_TYPE_EDGE_RISING,4,2       ; @IRQ_TYPE_EDGE_RISING
	.comm	_wl1251_enable_line_irq,4,2     ; @wl1251_enable_line_irq
	.comm	_wl1251_disable_line_irq,4,2    ; @wl1251_disable_line_irq
l_.str.4:                               ; @.str.4
	.asciz	"using dedicated interrupt line"

	.comm	_wl1251_sdio_enable_irq,4,2     ; @wl1251_sdio_enable_irq
	.comm	_wl1251_sdio_disable_irq,4,2    ; @wl1251_sdio_disable_irq
l_.str.5:                               ; @.str.5
	.asciz	"using SDIO interrupt"

	.no_dead_strip	_wl1251_sdio_probe
.subsections_via_symbols
