	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_ahb_halt_axi_bus
_ath10k_ahb_halt_axi_bus:               ## @ath10k_ahb_halt_axi_bus
	.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
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_ath10k_ahb_tcsr_read32
	movq	_AHB_AXI_BUS_HALT_REQ@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_ath10k_ahb_tcsr_write32
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_ATH10K_AHB_AXI_BUS_HALT_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movq	%rax, %r12
	addq	%rbx, %r12
	movq	_AHB_AXI_BUS_HALT_ACK@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_ath10k_ahb_tcsr_read32
	movl	%eax, %ebx
	movl	(%r13), %eax
	testl	%ebx, %eax
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %edi
	callq	_mdelay
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r12, %rsi
	callq	_time_before
	testq	%rax, %rax
	jne	LBB0_1
## %bb.3:
	movl	(%r13), %eax
LBB0_4:
	testl	%ebx, %eax
	je	LBB0_5
## %bb.6:
	movq	_ATH10K_DBG_AHB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath10k_dbg                     ## TAILCALL
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath10k_err                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AHB_AXI_BUS_HALT_REQ,4,2       ## @AHB_AXI_BUS_HALT_REQ
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_ATH10K_AHB_AXI_BUS_HALT_TIMEOUT,4,2 ## @ATH10K_AHB_AXI_BUS_HALT_TIMEOUT
	.comm	_AHB_AXI_BUS_HALT_ACK,4,2       ## @AHB_AXI_BUS_HALT_ACK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to halt axi bus: %d\n"

	.comm	_ATH10K_DBG_AHB,4,2             ## @ATH10K_DBG_AHB
L_.str.1:                               ## @.str.1
	.asciz	"axi bus halted\n"

	.no_dead_strip	_ath10k_ahb_halt_axi_bus
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_ahb_halt_axi_bus
_ath10k_ahb_halt_axi_bus:               ; @ath10k_ahb_halt_axi_bus
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_ath10k_ahb_tcsr_read32
Lloh0:
	adrp	x8, _AHB_AXI_BUS_HALT_REQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AHB_AXI_BUS_HALT_REQ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	orr	w2, w8, w0
	mov	x0, x19
	mov	x1, x21
	bl	_ath10k_ahb_tcsr_write32
Lloh3:
	adrp	x23, _jiffies@GOTPAGE
Lloh4:
	ldr	x23, [x23, _jiffies@GOTPAGEOFF]
	ldr	x21, [x23]
Lloh5:
	adrp	x8, _ATH10K_AHB_AXI_BUS_HALT_TIMEOUT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ATH10K_AHB_AXI_BUS_HALT_TIMEOUT@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	add	x22, x0, x21
Lloh8:
	adrp	x24, _AHB_AXI_BUS_HALT_ACK@GOTPAGE
Lloh9:
	ldr	x24, [x24, _AHB_AXI_BUS_HALT_ACK@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_ath10k_ahb_tcsr_read32
	mov	x21, x0
	ldr	w8, [x24]
	tst	w8, w0
	b.ne	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #1
	bl	_mdelay
	ldr	x0, [x23]
	mov	x1, x22
	bl	_time_before
	cbnz	x0, LBB0_1
; %bb.3:
	ldr	w8, [x24]
LBB0_4:
	tst	w8, w21
	b.eq	LBB0_6
; %bb.5:
Lloh10:
	adrp	x8, _ATH10K_DBG_AHB@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ATH10K_DBG_AHB@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x2, l_.str.1@PAGE
Lloh14:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ath10k_dbg
LBB0_6:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ath10k_err
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_AHB_AXI_BUS_HALT_REQ,4,2       ; @AHB_AXI_BUS_HALT_REQ
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_ATH10K_AHB_AXI_BUS_HALT_TIMEOUT,4,2 ; @ATH10K_AHB_AXI_BUS_HALT_TIMEOUT
	.comm	_AHB_AXI_BUS_HALT_ACK,4,2       ; @AHB_AXI_BUS_HALT_ACK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to halt axi bus: %d\n"

	.comm	_ATH10K_DBG_AHB,4,2             ; @ATH10K_DBG_AHB
l_.str.1:                               ; @.str.1
	.asciz	"axi bus halted\n"

	.no_dead_strip	_ath10k_ahb_halt_axi_bus
.subsections_via_symbols
