	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_pci_set_ram_config
_ath10k_pci_set_ram_config:             ## @ath10k_pci_set_ram_config
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_SOC_CORE_BASE_ADDRESS@GOTPCREL(%rip), %r15
	movq	_FW_RAM_CONFIG_ADDRESS@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	addq	(%r15), %rsi
	movl	%r14d, %edx
	callq	_ath10k_pci_write32
	movq	(%r12), %rsi
	addq	(%r15), %rsi
	movq	%rbx, %rdi
	callq	_ath10k_pci_read32
	xorl	%ecx, %ecx
	cmpl	%r14d, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	movl	%r14d, %ecx
	callq	_ath10k_warn
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
LBB0_2:
	movl	%ecx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SOC_CORE_BASE_ADDRESS,8,3      ## @SOC_CORE_BASE_ADDRESS
	.comm	_FW_RAM_CONFIG_ADDRESS,8,3      ## @FW_RAM_CONFIG_ADDRESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to set RAM config from 0x%x to 0x%x\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_ath10k_pci_set_ram_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_pci_set_ram_config
_ath10k_pci_set_ram_config:             ; @ath10k_pci_set_ram_config
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _SOC_CORE_BASE_ADDRESS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SOC_CORE_BASE_ADDRESS@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh2:
	adrp	x22, _FW_RAM_CONFIG_ADDRESS@GOTPAGE
Lloh3:
	ldr	x22, [x22, _FW_RAM_CONFIG_ADDRESS@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x1, x9, x8
	mov	x2, x19
	bl	_ath10k_pci_write32
	ldr	x8, [x21]
	ldr	x9, [x22]
	add	x1, x9, x8
	mov	x0, x20
	bl	_ath10k_pci_read32
	cmp	w0, w19
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	mov	x2, x0
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x3, x19
	bl	_ath10k_warn
Lloh6:
	adrp	x8, _EIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SOC_CORE_BASE_ADDRESS,8,3      ; @SOC_CORE_BASE_ADDRESS
	.comm	_FW_RAM_CONFIG_ADDRESS,8,3      ; @FW_RAM_CONFIG_ADDRESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to set RAM config from 0x%x to 0x%x\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_ath10k_pci_set_ram_config
.subsections_via_symbols
