	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cc770_isa_remove
_cc770_isa_remove:                      ## @cc770_isa_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_platform_get_drvdata
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %r15
	movslq	(%rbx), %rbx
	movq	%r14, %rdi
	callq	_unregister_cc770dev
	movq	_mem@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	cmpq	$0, (%rax,%rbx,8)
	je	LBB0_2
## %bb.1:
	movl	8(%r15), %edi
	callq	_iounmap
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	movq	_CC770_IOSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_release_mem_region
	jmp	LBB0_6
LBB0_2:
	movq	(%r15), %rax
	movq	_cc770_isa_port_read_reg_indirect@GOTPCREL(%rip), %rcx
	movq	_port@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rdx,%rbx,4), %edi
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_CC770_IOSIZE_INDIRECT@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_CC770_IOSIZE@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %esi
	callq	_release_region
LBB0_6:
	movq	%r14, %rdi
	callq	_free_cc770dev
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mem,8,3                        ## @mem
	.comm	_CC770_IOSIZE,4,2               ## @CC770_IOSIZE
	.comm	_cc770_isa_port_read_reg_indirect,8,3 ## @cc770_isa_port_read_reg_indirect
	.comm	_port,8,3                       ## @port
	.comm	_CC770_IOSIZE_INDIRECT,4,2      ## @CC770_IOSIZE_INDIRECT
	.no_dead_strip	_cc770_isa_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cc770_isa_remove
_cc770_isa_remove:                      ; @cc770_isa_remove
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x0
	bl	_platform_get_drvdata
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldrsw	x21, [x21]
	mov	x0, x19
	bl	_unregister_cc770dev
Lloh0:
	adrp	x22, _mem@GOTPAGE
Lloh1:
	ldr	x22, [x22, _mem@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x8, [x8, x21, lsl #3]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x20, #8]
	bl	_iounmap
	ldr	x8, [x22]
	ldr	x0, [x8, x21, lsl #3]
Lloh2:
	adrp	x8, _CC770_IOSIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CC770_IOSIZE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_release_mem_region
	b	LBB0_6
LBB0_2:
	ldr	x8, [x20]
Lloh5:
	adrp	x9, _cc770_isa_port_read_reg_indirect@GOTPAGE
Lloh6:
	ldr	x9, [x9, _cc770_isa_port_read_reg_indirect@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
Lloh8:
	adrp	x10, _port@GOTPAGE
Lloh9:
	ldr	x10, [x10, _port@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	ldr	w0, [x10, x21, lsl #2]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
Lloh11:
	adrp	x8, _CC770_IOSIZE_INDIRECT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CC770_IOSIZE_INDIRECT@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh13:
	adrp	x8, _CC770_IOSIZE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CC770_IOSIZE@GOTPAGEOFF]
LBB0_5:
	ldr	w1, [x8]
	bl	_release_region
LBB0_6:
	mov	x0, x19
	bl	_free_cc770dev
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_mem,8,3                        ; @mem
	.comm	_CC770_IOSIZE,4,2               ; @CC770_IOSIZE
	.comm	_cc770_isa_port_read_reg_indirect,8,3 ; @cc770_isa_port_read_reg_indirect
	.comm	_port,8,3                       ; @port
	.comm	_CC770_IOSIZE_INDIRECT,4,2      ; @CC770_IOSIZE_INDIRECT
	.no_dead_strip	_cc770_isa_remove
.subsections_via_symbols
