	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ks8695_release_device
_ks8695_release_device:                 ## @ks8695_release_device
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	40(%rdi), %rdi
	callq	_iounmap
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_iounmap
LBB0_2:
	movq	24(%rbx), %rdi
	callq	_release_resource
	movq	24(%rbx), %rdi
	callq	_kfree
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_release_resource
	movq	16(%rbx), %rdi
	callq	_kfree
LBB0_4:
	movl	8(%rbx), %edi
	movq	_RING_DMA_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_dma_free_coherent              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RING_DMA_SIZE,4,2              ## @RING_DMA_SIZE
	.no_dead_strip	_ks8695_release_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ks8695_release_device
_ks8695_release_device:                 ; @ks8695_release_device
	.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
	ldr	x0, [x0, #40]
	bl	_iounmap
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_iounmap
LBB0_2:
	ldr	x0, [x19, #24]
	bl	_release_resource
	ldr	x0, [x19, #24]
	bl	_kfree
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_release_resource
	ldr	x0, [x19, #16]
	bl	_kfree
LBB0_4:
	ldp	w2, w0, [x19, #4]
Lloh0:
	adrp	x8, _RING_DMA_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RING_DMA_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w3, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dma_free_coherent
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RING_DMA_SIZE,4,2              ; @RING_DMA_SIZE
	.no_dead_strip	_ks8695_release_device
.subsections_via_symbols
