	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function yenta_close
_yenta_close:                           ## @yenta_close
	.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	_pci_get_drvdata
	movq	%rax, %rbx
	movq	_dev_attr_yenta_registers@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_remove_file
	leaq	16(%rbx), %rdi
	callq	_pcmcia_unregister_socket
	movq	_CB_SOCKET_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_cb_writel
	movq	_I365_CSCINT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_exca_writeb
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rsi
	callq	_free_irq
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	addq	$4, %rdi
	callq	_del_timer_sync
LBB0_3:
	movl	(%rbx), %edi
	callq	_iounmap
	movq	%rbx, %rdi
	callq	_yenta_free_resources
	movq	%r14, %rdi
	callq	_pci_release_regions
	movq	%r14, %rdi
	callq	_pci_disable_device
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_pci_set_drvdata
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_dev_attr_yenta_registers,4,2   ## @dev_attr_yenta_registers
	.comm	_CB_SOCKET_MASK,4,2             ## @CB_SOCKET_MASK
	.comm	_I365_CSCINT,4,2                ## @I365_CSCINT
	.no_dead_strip	_yenta_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function yenta_close
_yenta_close:                           ; @yenta_close
	.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	_pci_get_drvdata
	mov	x20, x0
Lloh0:
	adrp	x1, _dev_attr_yenta_registers@GOTPAGE
Lloh1:
	ldr	x1, [x1, _dev_attr_yenta_registers@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_remove_file
	add	x0, x20, #16
	bl	_pcmcia_unregister_socket
Lloh2:
	adrp	x8, _CB_SOCKET_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CB_SOCKET_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_cb_writel
Lloh5:
	adrp	x8, _I365_CSCINT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _I365_CSCINT@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_exca_writeb
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_2
; %bb.1:
	mov	x1, x20
	bl	_free_irq
	b	LBB0_3
LBB0_2:
	add	x0, x20, #4
	bl	_del_timer_sync
LBB0_3:
	ldr	w0, [x20]
	bl	_iounmap
	mov	x0, x20
	bl	_yenta_free_resources
	mov	x0, x19
	bl	_pci_release_regions
	mov	x0, x19
	bl	_pci_disable_device
	mov	x0, x19
	mov	x1, #0
	bl	_pci_set_drvdata
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kfree
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_dev_attr_yenta_registers,4,2   ; @dev_attr_yenta_registers
	.comm	_CB_SOCKET_MASK,4,2             ; @CB_SOCKET_MASK
	.comm	_I365_CSCINT,4,2                ; @I365_CSCINT
	.no_dead_strip	_yenta_close
.subsections_via_symbols
