	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wcn36xx_platform_get_resources
_wcn36xx_platform_get_resources:        ## @wcn36xx_platform_get_resources
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_IORESOURCE_IRQ@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_platform_get_resource_byname
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movl	(%rax), %eax
	movl	%eax, 64(%r15)
	movl	(%r14), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	callq	_platform_get_resource_byname
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movl	(%rax), %eax
	movl	%eax, 60(%r15)
	leaq	56(%r15), %rdx
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_qcom_smem_state_get
	movq	%rax, 48(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	leaq	L_.str.5(%rip), %rdi
	callq	_wcn36xx_err
	movq	48(%r15), %rdi
	jmp	LBB0_11
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str.3(%rip), %rdi
LBB0_6:
	callq	_wcn36xx_err
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_7:
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	leaq	40(%r15), %rdx
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	callq	_qcom_smem_state_get
	movq	%rax, 32(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	leaq	L_.str.7(%rip), %rdi
	callq	_wcn36xx_err
	movq	32(%r15), %rdi
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_12:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	leaq	L_.str.8(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_of_parse_phandle
	testq	%rax, %rax
	je	LBB0_20
## %bb.13:
	movq	%rax, %r14
	leaq	L_.str.10(%rip), %rsi
	movq	%rax, %rdi
	callq	_of_device_is_compatible
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movl	%ecx, (%r15)
	leaq	L_.str.11(%rip), %rsi
	leaq	L_.str.12(%rip), %rdx
	movq	%r14, %rdi
	callq	_of_property_match_string
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_of_iomap
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_21
## %bb.14:
	leaq	L_.str.11(%rip), %rsi
	leaq	L_.str.14(%rip), %rdx
	movq	%r14, %rdi
	callq	_of_property_match_string
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_of_iomap
	movq	%rax, 24(%r15)
	testq	%rax, %rax
	je	LBB0_22
## %bb.15:
	leaq	L_.str.16(%rip), %rsi
	movq	%r14, %rdi
	callq	_of_get_child_by_name
	testq	%rax, %rax
	je	LBB0_19
## %bb.16:
	movq	%rax, %rbx
	leaq	L_.str.17(%rip), %rsi
	movq	%rax, %rdi
	callq	_of_device_is_compatible
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	_RF_IRIS_WCN3620@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
LBB0_18:
	movq	%rbx, %rdi
	callq	_of_node_put
LBB0_19:
	movq	%r14, %rdi
	callq	_of_node_put
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_20:
	leaq	L_.str.9(%rip), %rdi
	callq	_wcn36xx_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_21:
	leaq	L_.str.13(%rip), %rdi
	callq	_wcn36xx_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_23
LBB0_22:
	leaq	L_.str.15(%rip), %rdi
	callq	_wcn36xx_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	8(%r15), %rdi
	callq	_iounmap
LBB0_23:
	negl	%ebx
	movq	%r14, %rdi
	callq	_of_node_put
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_IORESOURCE_IRQ,4,2             ## @IORESOURCE_IRQ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tx"

L_.str.1:                               ## @.str.1
	.asciz	"failed to get tx_irq\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
L_.str.2:                               ## @.str.2
	.asciz	"rx"

L_.str.3:                               ## @.str.3
	.asciz	"failed to get rx_irq\n"

L_.str.4:                               ## @.str.4
	.asciz	"tx-enable"

L_.str.5:                               ## @.str.5
	.asciz	"failed to get tx-enable state\n"

L_.str.6:                               ## @.str.6
	.asciz	"tx-rings-empty"

L_.str.7:                               ## @.str.7
	.asciz	"failed to get tx-rings-empty state\n"

L_.str.8:                               ## @.str.8
	.asciz	"qcom,mmio"

L_.str.9:                               ## @.str.9
	.asciz	"failed to acquire qcom,mmio reference\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.10:                              ## @.str.10
	.asciz	"qcom,pronto"

L_.str.11:                              ## @.str.11
	.asciz	"reg-names"

L_.str.12:                              ## @.str.12
	.asciz	"ccu"

L_.str.13:                              ## @.str.13
	.asciz	"failed to map ccu memory\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.14:                              ## @.str.14
	.asciz	"dxe"

L_.str.15:                              ## @.str.15
	.asciz	"failed to map dxe memory\n"

L_.str.16:                              ## @.str.16
	.asciz	"iris"

L_.str.17:                              ## @.str.17
	.asciz	"qcom,wcn3620"

	.comm	_RF_IRIS_WCN3620,4,2            ## @RF_IRIS_WCN3620
	.no_dead_strip	_wcn36xx_platform_get_resources
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wcn36xx_platform_get_resources
_wcn36xx_platform_get_resources:        ; @wcn36xx_platform_get_resources
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _IORESOURCE_IRQ@GOTPAGE
Lloh1:
	ldr	x21, [x21, _IORESOURCE_IRQ@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_platform_get_resource_byname
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w8, [x0]
	str	w8, [x19, #64]
	ldr	w1, [x21]
Lloh4:
	adrp	x2, l_.str.2@PAGE
Lloh5:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_platform_get_resource_byname
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w8, [x0]
	str	w8, [x19, #60]
	add	x2, x19, #56
Lloh6:
	adrp	x1, l_.str.4@PAGE
Lloh7:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_qcom_smem_state_get
	str	x0, [x19, #48]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.3:
Lloh8:
	adrp	x0, l_.str.5@PAGE
Lloh9:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_wcn36xx_err
	ldr	x0, [x19, #48]
	b	LBB0_11
LBB0_4:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_6:
	bl	_wcn36xx_err
Lloh14:
	adrp	x8, _ENOENT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_9:
	add	x2, x19, #40
Lloh16:
	adrp	x1, l_.str.6@PAGE
Lloh17:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_qcom_smem_state_get
	str	x0, [x19, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_12
; %bb.10:
Lloh18:
	adrp	x0, l_.str.7@PAGE
Lloh19:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_wcn36xx_err
	ldr	x0, [x19, #32]
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_12:
	ldr	x8, [x20]
	ldr	w0, [x8]
Lloh20:
	adrp	x1, l_.str.8@PAGE
Lloh21:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	w2, #0
	bl	_of_parse_phandle
	cbz	x0, LBB0_20
; %bb.13:
	mov	x20, x0
Lloh22:
	adrp	x1, l_.str.10@PAGE
Lloh23:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_of_device_is_compatible
	cmp	x0, #0
	cset	w8, ne
	str	w8, [x19]
Lloh24:
	adrp	x1, l_.str.11@PAGE
Lloh25:
	add	x1, x1, l_.str.11@PAGEOFF
Lloh26:
	adrp	x2, l_.str.12@PAGE
Lloh27:
	add	x2, x2, l_.str.12@PAGEOFF
	mov	x0, x20
	bl	_of_property_match_string
	mov	x1, x0
	mov	x0, x20
	bl	_of_iomap
	str	x0, [x19, #8]
	cbz	x0, LBB0_21
; %bb.14:
Lloh28:
	adrp	x1, l_.str.11@PAGE
Lloh29:
	add	x1, x1, l_.str.11@PAGEOFF
Lloh30:
	adrp	x2, l_.str.14@PAGE
Lloh31:
	add	x2, x2, l_.str.14@PAGEOFF
	mov	x0, x20
	bl	_of_property_match_string
	mov	x1, x0
	mov	x0, x20
	bl	_of_iomap
	str	x0, [x19, #24]
	cbz	x0, LBB0_22
; %bb.15:
Lloh32:
	adrp	x1, l_.str.16@PAGE
Lloh33:
	add	x1, x1, l_.str.16@PAGEOFF
	mov	x0, x20
	bl	_of_get_child_by_name
	cbz	x0, LBB0_19
; %bb.16:
	mov	x21, x0
Lloh34:
	adrp	x1, l_.str.17@PAGE
Lloh35:
	add	x1, x1, l_.str.17@PAGEOFF
	bl	_of_device_is_compatible
	cbz	x0, LBB0_18
; %bb.17:
Lloh36:
	adrp	x8, _RF_IRIS_WCN3620@GOTPAGE
Lloh37:
	ldr	x8, [x8, _RF_IRIS_WCN3620@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	str	w8, [x19, #16]
LBB0_18:
	mov	x0, x21
	bl	_of_node_put
LBB0_19:
	mov	x0, x20
	bl	_of_node_put
	mov	w19, #0
	b	LBB0_8
LBB0_20:
Lloh39:
	adrp	x0, l_.str.9@PAGE
Lloh40:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_wcn36xx_err
Lloh41:
	adrp	x8, _EINVAL@GOTPAGE
Lloh42:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_21:
Lloh43:
	adrp	x0, l_.str.13@PAGE
Lloh44:
	add	x0, x0, l_.str.13@PAGEOFF
	bl	_wcn36xx_err
Lloh45:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh46:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh47:
	ldr	w21, [x8]
	b	LBB0_23
LBB0_22:
Lloh48:
	adrp	x0, l_.str.15@PAGE
Lloh49:
	add	x0, x0, l_.str.15@PAGEOFF
	bl	_wcn36xx_err
Lloh50:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh51:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh52:
	ldr	w21, [x8]
	ldr	x0, [x19, #8]
	bl	_iounmap
LBB0_23:
	neg	w19, w21
	mov	x0, x20
	bl	_of_node_put
	b	LBB0_8
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_IORESOURCE_IRQ,4,2             ; @IORESOURCE_IRQ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tx"

l_.str.1:                               ; @.str.1
	.asciz	"failed to get tx_irq\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
l_.str.2:                               ; @.str.2
	.asciz	"rx"

l_.str.3:                               ; @.str.3
	.asciz	"failed to get rx_irq\n"

l_.str.4:                               ; @.str.4
	.asciz	"tx-enable"

l_.str.5:                               ; @.str.5
	.asciz	"failed to get tx-enable state\n"

l_.str.6:                               ; @.str.6
	.asciz	"tx-rings-empty"

l_.str.7:                               ; @.str.7
	.asciz	"failed to get tx-rings-empty state\n"

l_.str.8:                               ; @.str.8
	.asciz	"qcom,mmio"

l_.str.9:                               ; @.str.9
	.asciz	"failed to acquire qcom,mmio reference\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.10:                              ; @.str.10
	.asciz	"qcom,pronto"

l_.str.11:                              ; @.str.11
	.asciz	"reg-names"

l_.str.12:                              ; @.str.12
	.asciz	"ccu"

l_.str.13:                              ; @.str.13
	.asciz	"failed to map ccu memory\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.14:                              ; @.str.14
	.asciz	"dxe"

l_.str.15:                              ; @.str.15
	.asciz	"failed to map dxe memory\n"

l_.str.16:                              ; @.str.16
	.asciz	"iris"

l_.str.17:                              ; @.str.17
	.asciz	"qcom,wcn3620"

	.comm	_RF_IRIS_WCN3620,4,2            ; @RF_IRIS_WCN3620
	.no_dead_strip	_wcn36xx_platform_get_resources
.subsections_via_symbols
