	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_ahb_remove
_ath10k_ahb_remove:                     ## @ath10k_ahb_remove
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_platform_get_drvdata
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_ath10k_ahb_priv
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	_ATH10K_DBG_AHB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_ath10k_dbg
	movq	%rbx, %rdi
	callq	_ath10k_core_unregister
	movq	%rbx, %rdi
	callq	_ath10k_ahb_irq_disable
	movq	%rbx, %rdi
	callq	_ath10k_ahb_release_irq_legacy
	movq	%rbx, %rdi
	callq	_ath10k_pci_release_resource
	movq	%rbx, %rdi
	callq	_ath10k_ahb_halt_chip
	movq	%rbx, %rdi
	callq	_ath10k_ahb_clock_disable
	movq	%rbx, %rdi
	callq	_ath10k_ahb_resource_deinit
	movq	%rbx, %rdi
	callq	_ath10k_core_destroy
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_platform_set_drvdata
	jmp	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ATH10K_DBG_AHB,4,2             ## @ATH10K_DBG_AHB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ahb remove\n"

	.no_dead_strip	_ath10k_ahb_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_ahb_remove
_ath10k_ahb_remove:                     ; @ath10k_ahb_remove
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_platform_get_drvdata
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	bl	_ath10k_ahb_priv
	cbz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _ATH10K_DBG_AHB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH10K_DBG_AHB@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_ath10k_dbg
	mov	x0, x20
	bl	_ath10k_core_unregister
	mov	x0, x20
	bl	_ath10k_ahb_irq_disable
	mov	x0, x20
	bl	_ath10k_ahb_release_irq_legacy
	mov	x0, x20
	bl	_ath10k_pci_release_resource
	mov	x0, x20
	bl	_ath10k_ahb_halt_chip
	mov	x0, x20
	bl	_ath10k_ahb_clock_disable
	mov	x0, x20
	bl	_ath10k_ahb_resource_deinit
	mov	x0, x20
	bl	_ath10k_core_destroy
	mov	x0, x19
	mov	x1, #0
	bl	_platform_set_drvdata
	mov	w0, #0
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ATH10K_DBG_AHB,4,2             ; @ATH10K_DBG_AHB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ahb remove\n"

	.no_dead_strip	_ath10k_ahb_remove
.subsections_via_symbols
