	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function release_io_diva
_release_io_diva:                       ## @release_io_diva
	.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, %rbx
	movq	(%rdi), %rax
	movq	_DIVA_IPAC_PCI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_DIVA_IPACX_PCI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.6:
	movq	_DIVA_IPAC_ISA@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	je	LBB0_9
## %bb.7:
	leaq	20(%rbx), %rdi
	callq	_del_timer
	cmpq	$0, 8(%rbx)
	je	LBB0_9
## %bb.8:
	movl	16(%rbx), %edi
	xorl	%esi, %esi
	callq	_byteout
LBB0_9:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.11:
	movq	(%rbx), %rax
	movq	_DIVA_ISA@GOTPCREL(%rip), %rcx
	cmpq	(%r14), %rax
	movl	$8, %edx
	movl	$32, %esi
	cmovel	%edx, %esi
	cmpq	(%rcx), %rax
	cmovel	%edx, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_release_region                 ## TAILCALL
LBB0_2:
	movq	24(%rbx), %rdi
	movl	$2, (%rdi)
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %rdi
	callq	_iounmap
	movq	24(%rbx), %rdi
LBB0_4:
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_iounmap                        ## TAILCALL
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DIVA_IPAC_PCI,8,3              ## @DIVA_IPAC_PCI
	.comm	_DIVA_IPACX_PCI,8,3             ## @DIVA_IPACX_PCI
	.comm	_DIVA_IPAC_ISA,8,3              ## @DIVA_IPAC_ISA
	.comm	_DIVA_ISA,8,3                   ## @DIVA_ISA
	.no_dead_strip	_release_io_diva
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function release_io_diva
_release_io_diva:                       ; @release_io_diva
	.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	x8, [x0]
Lloh0:
	adrp	x9, _DIVA_IPAC_PCI@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DIVA_IPAC_PCI@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _DIVA_IPACX_PCI@GOTPAGE
Lloh4:
	ldr	x10, [x10, _DIVA_IPACX_PCI@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_5
; %bb.1:
	ldr	x0, [x19, #24]
	mov	w8, #2
	str	w8, [x0]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x8
	bl	_iounmap
	ldr	x0, [x19, #24]
LBB0_3:
	cbz	x0, LBB0_10
; %bb.4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_iounmap
LBB0_5:
Lloh6:
	adrp	x20, _DIVA_IPAC_ISA@GOTPAGE
Lloh7:
	ldr	x20, [x20, _DIVA_IPAC_ISA@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.6:
	add	x0, x19, #20
	bl	_del_timer
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	w0, [x19, #16]
	mov	w1, #0
	bl	_byteout
LBB0_8:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_10
; %bb.9:
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _DIVA_ISA@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DIVA_ISA@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	ldr	x10, [x20]
	cmp	x8, x10
	ccmp	x8, x9, #4, ne
	mov	w8, #32
	mov	w9, #8
	csel	w1, w9, w8, eq
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_release_region
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_DIVA_IPAC_PCI,8,3              ; @DIVA_IPAC_PCI
	.comm	_DIVA_IPACX_PCI,8,3             ; @DIVA_IPACX_PCI
	.comm	_DIVA_IPAC_ISA,8,3              ; @DIVA_IPAC_ISA
	.comm	_DIVA_ISA,8,3                   ; @DIVA_ISA
	.no_dead_strip	_release_io_diva
.subsections_via_symbols
