	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wl1251_spi_probe
_wl1251_spi_probe:                      ## @wl1251_spi_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	leaq	16(%rdi), %r13
	movq	%r13, %rdi
	callq	_dev_get_platdata
	movq	%rax, %r15
	movq	16(%r12), %r14
	testq	%r14, %r14
	jne	LBB0_3
## %bb.1:
	testq	%r15, %r15
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_wl1251_error
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_30
LBB0_3:
	xorl	%eax, %eax
	callq	_wl1251_alloc_hw
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.31:
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_4:
	movq	(%rbx), %rax
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%rax, %rbx
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rsi
	callq	_SET_IEEE80211_DEV
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_spi_set_drvdata
	movq	%r12, 40(%rbx)
	movq	_wl1251_spi_ops@GOTPCREL(%rip), %rax
	movq	%rax, 32(%rbx)
	movl	$32, (%r12)
	movq	%r12, %rdi
	callq	_spi_setup
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	testq	%r14, %r14
	je	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_of_property_read_bool
	movl	%eax, 24(%rbx)
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_of_get_named_gpio
	movl	%eax, %r13d
	movl	%eax, (%rbx)
	jmp	LBB0_11
LBB0_5:
	movl	%eax, %r13d
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_wl1251_error
	jmp	LBB0_29
LBB0_8:
	testq	%r15, %r15
	je	LBB0_9
## %bb.10:
	movl	(%r15), %r13d
	movl	%r13d, (%rbx)
	movl	4(%r15), %eax
	movl	%eax, 24(%rbx)
	jmp	LBB0_11
LBB0_9:
	movl	(%rbx), %r13d
LBB0_11:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r13d, %eax
	je	LBB0_29
## %bb.12:
	movl	%r13d, %edi
	callq	_gpio_is_valid
	testq	%rax, %rax
	je	LBB0_17
## %bb.13:
	movl	(%rbx), %esi
	movq	_GPIOF_OUT_INIT_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.4(%rip), %rcx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_devm_gpio_request_one
	testl	%eax, %eax
	je	LBB0_19
## %bb.14:
	movl	%eax, %r13d
	leaq	L_.str.5(%rip), %rdi
LBB0_15:
	movl	%r13d, %esi
LBB0_16:
	xorl	%eax, %eax
	callq	_wl1251_error
	jmp	LBB0_29
LBB0_17:
	leaq	L_.str.6(%rip), %rdi
LBB0_18:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_wl1251_error
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
LBB0_29:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_ieee80211_free_hw
LBB0_30:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	8(%r12), %rdi
	movq	%rdi, 8(%rbx)
	testq	%rdi, %rdi
	js	LBB0_20
## %bb.21:
	movq	_IRQ_NOAUTOEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_irq_set_status_flags
	movq	8(%rbx), %rsi
	movq	_wl1251_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DRIVER_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	movq	%rbx, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	js	LBB0_22
## %bb.23:
	movq	8(%rbx), %rdi
	movq	_IRQ_TYPE_EDGE_RISING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_irq_set_irq_type
	leaq	L_.str.9(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_regulator_get
	movq	%rax, 16(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	16(%rbx), %rdi
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:
	callq	_PTR_ERR
	movl	%eax, %r13d
	leaq	L_.str.10(%rip), %rdi
	movl	%eax, %esi
	jmp	LBB0_16
LBB0_20:
	leaq	L_.str.7(%rip), %rdi
	jmp	LBB0_18
LBB0_22:
	movl	%eax, %r13d
	leaq	L_.str.8(%rip), %rdi
	jmp	LBB0_15
LBB0_25:
	callq	_regulator_enable
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_29
## %bb.26:
	movq	%rbx, %rdi
	callq	_wl1251_init_ieee80211
	testl	%eax, %eax
	je	LBB0_27
## %bb.28:
	movl	%eax, %r13d
	movq	16(%rbx), %rdi
	callq	_regulator_disable
	jmp	LBB0_29
LBB0_27:
	xorl	%r13d, %r13d
	jmp	LBB0_30
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no platform data"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_wl1251_spi_ops,4,2             ## @wl1251_spi_ops
L_.str.1:                               ## @.str.1
	.asciz	"spi_setup failed"

L_.str.2:                               ## @.str.2
	.asciz	"ti,wl1251-has-eeprom"

L_.str.3:                               ## @.str.3
	.asciz	"ti,power-gpio"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.comm	_GPIOF_OUT_INIT_LOW,4,2         ## @GPIOF_OUT_INIT_LOW
L_.str.4:                               ## @.str.4
	.asciz	"wl1251 power"

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

L_.str.6:                               ## @.str.6
	.asciz	"set power gpio missing in platform data"

L_.str.7:                               ## @.str.7
	.asciz	"irq missing in platform data"

	.comm	_IRQ_NOAUTOEN,4,2               ## @IRQ_NOAUTOEN
	.comm	_wl1251_irq,4,2                 ## @wl1251_irq
	.comm	_DRIVER_NAME,4,2                ## @DRIVER_NAME
L_.str.8:                               ## @.str.8
	.asciz	"request_irq() failed: %d"

	.comm	_IRQ_TYPE_EDGE_RISING,4,2       ## @IRQ_TYPE_EDGE_RISING
L_.str.9:                               ## @.str.9
	.asciz	"vio"

L_.str.10:                              ## @.str.10
	.asciz	"vio regulator missing: %d"

	.no_dead_strip	_wl1251_spi_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wl1251_spi_probe
_wl1251_spi_probe:                      ; @wl1251_spi_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x0
	add	x21, x0, #16
	mov	x0, x21
	bl	_dev_get_platdata
	ldr	x24, [x22, #16]
	cmp	x24, #0
	ccmp	x0, #0, #0, eq
	b.eq	LBB0_3
; %bb.1:
	mov	x25, x0
	bl	_wl1251_alloc_hw
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_PTR_ERR
LBB0_3:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_wl1251_error
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_18
LBB0_4:
	ldr	x20, [x19]
	mov	x0, x19
	mov	x1, x21
	bl	_SET_IEEE80211_DEV
	mov	x0, x22
	mov	x1, x20
	bl	_spi_set_drvdata
Lloh5:
	adrp	x8, _wl1251_spi_ops@GOTPAGE
Lloh6:
	ldr	x8, [x8, _wl1251_spi_ops@GOTPAGEOFF]
	stp	x8, x22, [x20, #32]
	mov	w8, #32
	str	w8, [x22]
	mov	x0, x22
	bl	_spi_setup
	tbnz	w0, #31, LBB0_7
; %bb.5:
	cbz	x24, LBB0_8
; %bb.6:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x24
	bl	_of_property_read_bool
	str	w0, [x20, #24]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x24
	mov	w2, #0
	bl	_of_get_named_gpio
	mov	x23, x0
	str	w0, [x20]
	b	LBB0_11
LBB0_7:
	mov	x23, x0
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_wl1251_error
	b	LBB0_17
LBB0_8:
	cbz	x25, LBB0_10
; %bb.9:
	ldp	w23, w8, [x25]
	str	w23, [x20]
	str	w8, [x20, #24]
	b	LBB0_11
LBB0_10:
	ldr	w23, [x20]
LBB0_11:
Lloh13:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmn	w23, w8
	b.eq	LBB0_17
; %bb.12:
	mov	x0, x23
	bl	_gpio_is_valid
	cbz	x0, LBB0_15
; %bb.13:
	ldr	w1, [x20]
Lloh16:
	adrp	x8, _GPIOF_OUT_INIT_LOW@GOTPAGE
Lloh17:
	ldr	x8, [x8, _GPIOF_OUT_INIT_LOW@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
Lloh19:
	adrp	x3, l_.str.4@PAGE
Lloh20:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_devm_gpio_request_one
	cbz	w0, LBB0_19
; %bb.14:
	mov	x23, x0
	str	x23, [sp]
Lloh21:
	adrp	x0, l_.str.5@PAGE
Lloh22:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_wl1251_error
	b	LBB0_17
LBB0_15:
Lloh23:
	adrp	x0, l_.str.6@PAGE
Lloh24:
	add	x0, x0, l_.str.6@PAGEOFF
LBB0_16:
	bl	_wl1251_error
Lloh25:
	adrp	x8, _ENODEV@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_17:
	mov	x0, x19
	bl	_ieee80211_free_hw
LBB0_18:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_19:
	ldr	x0, [x22, #8]
	str	x0, [x20, #8]
	tbnz	x0, #63, LBB0_23
; %bb.20:
Lloh28:
	adrp	x8, _IRQ_NOAUTOEN@GOTPAGE
Lloh29:
	ldr	x8, [x8, _IRQ_NOAUTOEN@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	bl	_irq_set_status_flags
	ldr	x1, [x20, #8]
Lloh31:
	adrp	x8, _wl1251_irq@GOTPAGE
Lloh32:
	ldr	x8, [x8, _wl1251_irq@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
Lloh34:
	adrp	x8, _DRIVER_NAME@GOTPAGE
Lloh35:
	ldr	x8, [x8, _DRIVER_NAME@GOTPAGEOFF]
Lloh36:
	ldr	w4, [x8]
	mov	x0, x21
	mov	w3, #0
	mov	x5, x20
	bl	_devm_request_irq
	tbnz	w0, #31, LBB0_24
; %bb.21:
	ldr	x0, [x20, #8]
Lloh37:
	adrp	x8, _IRQ_TYPE_EDGE_RISING@GOTPAGE
Lloh38:
	ldr	x8, [x8, _IRQ_TYPE_EDGE_RISING@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	bl	_irq_set_irq_type
Lloh40:
	adrp	x1, l_.str.9@PAGE
Lloh41:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x21
	bl	_devm_regulator_get
	str	x0, [x20, #16]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x20, #16]
	cbz	x8, LBB0_26
; %bb.22:
	bl	_PTR_ERR
	mov	x23, x0
	str	x23, [sp]
Lloh42:
	adrp	x0, l_.str.10@PAGE
Lloh43:
	add	x0, x0, l_.str.10@PAGEOFF
	b	LBB0_25
LBB0_23:
Lloh44:
	adrp	x0, l_.str.7@PAGE
Lloh45:
	add	x0, x0, l_.str.7@PAGEOFF
	b	LBB0_16
LBB0_24:
	mov	x23, x0
	str	x23, [sp]
Lloh46:
	adrp	x0, l_.str.8@PAGE
Lloh47:
	add	x0, x0, l_.str.8@PAGEOFF
LBB0_25:
	bl	_wl1251_error
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	b	LBB0_17
LBB0_26:
	bl	_regulator_enable
	mov	x23, x0
	cbnz	w0, LBB0_17
; %bb.27:
	mov	x0, x20
	bl	_wl1251_init_ieee80211
	mov	x23, x0
	cbz	w0, LBB0_18
; %bb.28:
	ldr	x0, [x20, #16]
	bl	_regulator_disable
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no platform data"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_wl1251_spi_ops,4,2             ; @wl1251_spi_ops
l_.str.1:                               ; @.str.1
	.asciz	"spi_setup failed"

l_.str.2:                               ; @.str.2
	.asciz	"ti,wl1251-has-eeprom"

l_.str.3:                               ; @.str.3
	.asciz	"ti,power-gpio"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.comm	_GPIOF_OUT_INIT_LOW,4,2         ; @GPIOF_OUT_INIT_LOW
l_.str.4:                               ; @.str.4
	.asciz	"wl1251 power"

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

l_.str.6:                               ; @.str.6
	.asciz	"set power gpio missing in platform data"

l_.str.7:                               ; @.str.7
	.asciz	"irq missing in platform data"

	.comm	_IRQ_NOAUTOEN,4,2               ; @IRQ_NOAUTOEN
	.comm	_wl1251_irq,4,2                 ; @wl1251_irq
	.comm	_DRIVER_NAME,4,2                ; @DRIVER_NAME
l_.str.8:                               ; @.str.8
	.asciz	"request_irq() failed: %d"

	.comm	_IRQ_TYPE_EDGE_RISING,4,2       ; @IRQ_TYPE_EDGE_RISING
l_.str.9:                               ; @.str.9
	.asciz	"vio"

l_.str.10:                              ; @.str.10
	.asciz	"vio regulator missing: %d"

	.no_dead_strip	_wl1251_spi_probe
.subsections_via_symbols
