	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_snoc_resource_init
_ath10k_snoc_resource_init:             ## @ath10k_snoc_resource_init
	.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, %r14
	callq	_ath10k_snoc_priv
	movq	%rax, %r12
	movq	8(%rax), %r15
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	callq	_platform_get_resource_byname
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movl	(%rax), %ebx
	movl	%ebx, 16(%r12)
	movq	%rax, %rdi
	callq	_resource_size
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_devm_ioremap
	movl	%eax, 20(%r12)
	testl	%eax, %eax
	je	LBB0_8
## %bb.2:
	movq	_CE_COUNT@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_6
## %bb.3:
	xorl	%ebx, %ebx
	movq	_IORESOURCE_IRQ@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rdi
	movl	(%r13), %esi
	movl	%ebx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rax), %eax
	movq	(%r12), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_4
LBB0_6:
	xorl	%r15d, %r15d
	jmp	LBB0_11
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_ath10k_err
	jmp	LBB0_9
LBB0_8:
	addq	$16, %r12
	leaq	L_.str.2(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_ath10k_err
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_10:
	subl	(%rax), %r15d
LBB0_11:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	leaq	L_.str.3(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_ath10k_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"membase"

L_.str.1:                               ## @.str.1
	.asciz	"Memory base not found in DT\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"Memory base ioremap failed with physical address %pa\n"

	.comm	_CE_COUNT,4,2                   ## @CE_COUNT
	.comm	_IORESOURCE_IRQ,4,2             ## @IORESOURCE_IRQ
L_.str.3:                               ## @.str.3
	.asciz	"failed to get IRQ%d\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_ath10k_snoc_resource_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_snoc_resource_init
_ath10k_snoc_resource_init:             ; @ath10k_snoc_resource_init
	.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	x19, x0
	bl	_ath10k_snoc_priv
	mov	x20, x0
	ldr	x21, [x0, #8]
Lloh0:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	bl	_platform_get_resource_byname
	cbz	x0, LBB0_7
; %bb.1:
	ldr	w22, [x0]
	mov	x23, x20
	str	w22, [x23, #16]!
	bl	_resource_size
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_devm_ioremap
	str	w0, [x23, #4]
	cbz	w0, LBB0_8
; %bb.2:
Lloh5:
	adrp	x22, _CE_COUNT@GOTPAGE
Lloh6:
	ldr	x22, [x22, _CE_COUNT@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.3:
	mov	x21, #0
Lloh7:
	adrp	x23, _IORESOURCE_IRQ@GOTPAGE
Lloh8:
	ldr	x23, [x23, _IORESOURCE_IRQ@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20, #8]
	ldr	w1, [x23]
	mov	x2, x21
	bl	_platform_get_resource
	cbz	x0, LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x0]
	ldr	x9, [x20]
	str	w8, [x9, x21, lsl #2]
	add	x21, x21, #1
	ldrsw	x8, [x22]
	cmp	x21, x8
	b.lt	LBB0_4
LBB0_6:
	mov	w0, #0
	b	LBB0_11
LBB0_7:
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_8:
	str	x23, [sp]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_9:
	mov	x0, x19
	bl	_ath10k_err
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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_12:
	str	x21, [sp]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_ath10k_err
Lloh17:
	adrp	x8, _ENODEV@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_10
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"membase"

l_.str.1:                               ; @.str.1
	.asciz	"Memory base not found in DT\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"Memory base ioremap failed with physical address %pa\n"

	.comm	_CE_COUNT,4,2                   ; @CE_COUNT
	.comm	_IORESOURCE_IRQ,4,2             ; @IORESOURCE_IRQ
l_.str.3:                               ; @.str.3
	.asciz	"failed to get IRQ%d\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_ath10k_snoc_resource_init
.subsections_via_symbols
