	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wcn36xx_probe
_wcn36xx_probe:                         ## @wcn36xx_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, %r15
	movq	_WCN36XX_DBG_MAC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wcn36xx_dbg
	movl	4(%r15), %edi
	callq	_dev_get_drvdata
	movq	%rax, %r12
	movq	_wcn36xx_ops@GOTPCREL(%rip), %rsi
	movl	$56, %edi
	callq	_ieee80211_alloc_hw
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	movq	(%r14), %rbx
	movq	%r14, 16(%rbx)
	movq	%r15, 32(%rbx)
	movl	$1, (%rbx)
	leaq	48(%rbx), %rdi
	callq	_mutex_init
	leaq	44(%rbx), %rdi
	callq	_mutex_init
	leaq	40(%rbx), %rdi
	callq	_mutex_init
	movq	32(%rbx), %r13
	movl	$32, %edi
	callq	_DMA_BIT_MASK
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_dma_set_mask_and_coherent
	movl	%eax, -44(%rbp)
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	leaq	28(%rbx), %rdi
	movq	_wcn36xx_hw_scan_worker@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	_wcn36xx_smd_rsp_process@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	movq	%r14, %rcx
	callq	_qcom_wcnss_open_channel
	movl	%eax, 24(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_wcn36xx_err
	movl	24(%rbx), %edi
	callq	_PTR_ERR
	movl	%eax, -44(%rbp)
	jmp	LBB0_14
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_wcn36xx_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_3:
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_wcn36xx_err
	jmp	LBB0_14
LBB0_6:
	movl	(%r15), %edi
	leaq	L_.str.5(%rip), %rsi
	leaq	-44(%rbp), %rdx
	callq	_of_get_property
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movq	%rax, %r12
	movl	-44(%rbp), %eax
	movq	_ETH_ALEN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_8
## %bb.9:
	leaq	L_.str.7(%rip), %rdi
	movq	%r12, %rsi
	callq	_wcn36xx_info
	movq	16(%rbx), %rdi
	movq	%r12, %rsi
	callq	_SET_IEEE80211_PERM_ADDR
LBB0_10:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_wcn36xx_platform_get_resources
	movl	%eax, -44(%rbp)
	testl	%eax, %eax
	jne	LBB0_14
## %bb.11:
	movq	%rbx, %rdi
	callq	_wcn36xx_init_ieee80211
	movq	16(%rbx), %rdi
	callq	_ieee80211_register_hw
	movl	%eax, -44(%rbp)
	testl	%eax, %eax
	je	LBB0_12
## %bb.13:
	movl	8(%rbx), %edi
	callq	_iounmap
	movl	4(%rbx), %edi
	callq	_iounmap
	jmp	LBB0_14
LBB0_8:
	leaq	L_.str.6(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_wcn36xx_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, -44(%rbp)
LBB0_14:
	movq	%r14, %rdi
	callq	_ieee80211_free_hw
	movl	-44(%rbp), %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	xorl	%ebx, %ebx
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_WCN36XX_DBG_MAC,4,2            ## @WCN36XX_DBG_MAC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"platform probe\n"

	.comm	_wcn36xx_ops,4,2                ## @wcn36xx_ops
L_.str.1:                               ## @.str.1
	.asciz	"failed to alloc hw\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"failed to set DMA mask: %d\n"

	.comm	_wcn36xx_hw_scan_worker,4,2     ## @wcn36xx_hw_scan_worker
L_.str.3:                               ## @.str.3
	.asciz	"WLAN_CTRL"

	.comm	_wcn36xx_smd_rsp_process,4,2    ## @wcn36xx_smd_rsp_process
L_.str.4:                               ## @.str.4
	.asciz	"failed to open WLAN_CTRL channel\n"

L_.str.5:                               ## @.str.5
	.asciz	"local-mac-address"

	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
L_.str.6:                               ## @.str.6
	.asciz	"invalid local-mac-address\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.7:                               ## @.str.7
	.asciz	"mac address: %pM\n"

	.no_dead_strip	_wcn36xx_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wcn36xx_probe
_wcn36xx_probe:                         ; @wcn36xx_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	x21, x0
Lloh0:
	adrp	x8, _WCN36XX_DBG_MAC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WCN36XX_DBG_MAC@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wcn36xx_dbg
	ldr	w0, [x21, #4]
	bl	_dev_get_drvdata
	mov	x22, x0
Lloh5:
	adrp	x1, _wcn36xx_ops@GOTPAGE
Lloh6:
	ldr	x1, [x1, _wcn36xx_ops@GOTPAGEOFF]
	mov	w0, #56
	bl	_ieee80211_alloc_hw
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	mov	x0, x21
	mov	x1, x19
	bl	_platform_set_drvdata
	ldr	x20, [x19]
	str	x19, [x20, #16]
	str	x21, [x20, #32]
	mov	w8, #1
	str	w8, [x20]
	add	x0, x20, #48
	bl	_mutex_init
	add	x0, x20, #44
	bl	_mutex_init
	add	x0, x20, #40
	bl	_mutex_init
	ldr	x23, [x20, #32]
	mov	w0, #32
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x23
	bl	_dma_set_mask_and_coherent
                                        ; kill: def $w0 killed $w0 def $x0
	str	w0, [sp, #12]
	tbnz	w0, #31, LBB0_5
; %bb.2:
	add	x0, x20, #28
Lloh7:
	adrp	x8, _wcn36xx_hw_scan_worker@GOTPAGE
Lloh8:
	ldr	x8, [x8, _wcn36xx_hw_scan_worker@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_INIT_WORK
Lloh10:
	adrp	x8, _wcn36xx_smd_rsp_process@GOTPAGE
Lloh11:
	ldr	x8, [x8, _wcn36xx_smd_rsp_process@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	mov	x3, x19
	bl	_qcom_wcnss_open_channel
	str	w0, [x20, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.3:
Lloh15:
	adrp	x0, l_.str.4@PAGE
Lloh16:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_wcn36xx_err
	ldr	w0, [x20, #24]
	bl	_PTR_ERR
	str	w0, [sp, #12]
	b	LBB0_13
LBB0_4:
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_wcn36xx_err
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_5:
	str	x0, [sp]
Lloh22:
	adrp	x0, l_.str.2@PAGE
Lloh23:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_wcn36xx_err
	b	LBB0_13
LBB0_6:
	ldr	w0, [x21]
Lloh24:
	adrp	x1, l_.str.5@PAGE
Lloh25:
	add	x1, x1, l_.str.5@PAGEOFF
	add	x2, sp, #12
	bl	_of_get_property
	cbz	x0, LBB0_9
; %bb.7:
	ldr	w8, [sp, #12]
Lloh26:
	adrp	x9, _ETH_ALEN@GOTPAGE
Lloh27:
	ldr	x9, [x9, _ETH_ALEN@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_12
; %bb.8:
	mov	x22, x0
Lloh29:
	adrp	x0, l_.str.7@PAGE
Lloh30:
	add	x0, x0, l_.str.7@PAGEOFF
	mov	x1, x22
	bl	_wcn36xx_info
	ldr	x0, [x20, #16]
	mov	x1, x22
	bl	_SET_IEEE80211_PERM_ADDR
LBB0_9:
	mov	x0, x20
	mov	x1, x21
	bl	_wcn36xx_platform_get_resources
	str	w0, [sp, #12]
	cbnz	w0, LBB0_13
; %bb.10:
	mov	x0, x20
	bl	_wcn36xx_init_ieee80211
	ldr	x0, [x20, #16]
	bl	_ieee80211_register_hw
	str	w0, [sp, #12]
	cbz	w0, LBB0_14
; %bb.11:
	ldr	w0, [x20, #8]
	bl	_iounmap
	ldr	w0, [x20, #4]
	bl	_iounmap
	b	LBB0_13
LBB0_12:
Lloh31:
	adrp	x0, l_.str.6@PAGE
Lloh32:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_wcn36xx_err
Lloh33:
	adrp	x8, _EINVAL@GOTPAGE
Lloh34:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [sp, #12]
LBB0_13:
	mov	x0, x19
	bl	_ieee80211_free_hw
	ldr	w0, [sp, #12]
LBB0_14:
	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
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_WCN36XX_DBG_MAC,4,2            ; @WCN36XX_DBG_MAC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"platform probe\n"

	.comm	_wcn36xx_ops,4,2                ; @wcn36xx_ops
l_.str.1:                               ; @.str.1
	.asciz	"failed to alloc hw\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"failed to set DMA mask: %d\n"

	.comm	_wcn36xx_hw_scan_worker,4,2     ; @wcn36xx_hw_scan_worker
l_.str.3:                               ; @.str.3
	.asciz	"WLAN_CTRL"

	.comm	_wcn36xx_smd_rsp_process,4,2    ; @wcn36xx_smd_rsp_process
l_.str.4:                               ; @.str.4
	.asciz	"failed to open WLAN_CTRL channel\n"

l_.str.5:                               ; @.str.5
	.asciz	"local-mac-address"

	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
l_.str.6:                               ; @.str.6
	.asciz	"invalid local-mac-address\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.7:                               ; @.str.7
	.asciz	"mac address: %pM\n"

	.no_dead_strip	_wcn36xx_probe
.subsections_via_symbols
