	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nx842_remove
_nx842_remove:                          ## @nx842_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, %r14
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
	movq	_nx842_attribute_group@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_sysfs_remove_group
	movq	_nx842_pseries_alg@GOTPCREL(%rip), %rdi
	callq	_crypto_unregister_alg
	movq	_devdata_mutex@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	_devdata@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	movq	%r15, %rdi
	callq	_lockdep_is_held
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_rcu_dereference_check
	movq	%rax, %rbx
	movq	_nx842_of_nb@GOTPCREL(%rip), %rdi
	callq	_of_reconfig_notifier_unregister
	movl	(%r12), %edi
	xorl	%esi, %esi
	callq	_RCU_INIT_POINTER
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	callq	_synchronize_rcu
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_dev_set_drvdata
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movq	(%rbx), %rdi
	callq	_kfree
LBB0_2:
	movq	%rbx, %rdi
	callq	_kfree
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Removing IBM Power 842 compression device\n"

	.comm	_nx842_attribute_group,4,2      ## @nx842_attribute_group
	.comm	_nx842_pseries_alg,4,2          ## @nx842_pseries_alg
	.comm	_devdata_mutex,4,2              ## @devdata_mutex
	.comm	_devdata,4,2                    ## @devdata
	.comm	_nx842_of_nb,4,2                ## @nx842_of_nb
	.no_dead_strip	_nx842_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nx842_remove
_nx842_remove:                          ; @nx842_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	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
Lloh2:
	adrp	x1, _nx842_attribute_group@GOTPAGE
Lloh3:
	ldr	x1, [x1, _nx842_attribute_group@GOTPAGEOFF]
	mov	x0, x20
	bl	_sysfs_remove_group
Lloh4:
	adrp	x0, _nx842_pseries_alg@GOTPAGE
Lloh5:
	ldr	x0, [x0, _nx842_pseries_alg@GOTPAGEOFF]
	bl	_crypto_unregister_alg
Lloh6:
	adrp	x21, _devdata_mutex@GOTPAGE
Lloh7:
	ldr	x21, [x21, _devdata_mutex@GOTPAGEOFF]
	mov	x0, x21
	bl	_spin_lock_irqsave
Lloh8:
	adrp	x22, _devdata@GOTPAGE
Lloh9:
	ldr	x22, [x22, _devdata@GOTPAGEOFF]
	ldr	w19, [x22]
	mov	x0, x21
	bl	_lockdep_is_held
	mov	x1, x0
	mov	x0, x19
	bl	_rcu_dereference_check
	mov	x19, x0
Lloh10:
	adrp	x0, _nx842_of_nb@GOTPAGE
Lloh11:
	ldr	x0, [x0, _nx842_of_nb@GOTPAGEOFF]
	bl	_of_reconfig_notifier_unregister
	ldr	w0, [x22]
	mov	x1, #0
	bl	_RCU_INIT_POINTER
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	bl	_synchronize_rcu
	mov	x0, x20
	mov	x1, #0
	bl	_dev_set_drvdata
	cbz	x19, LBB0_2
; %bb.1:
	ldr	x0, [x19]
	bl	_kfree
LBB0_2:
	mov	x0, x19
	bl	_kfree
	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	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Removing IBM Power 842 compression device\n"

	.comm	_nx842_attribute_group,4,2      ; @nx842_attribute_group
	.comm	_nx842_pseries_alg,4,2          ; @nx842_pseries_alg
	.comm	_devdata_mutex,4,2              ; @devdata_mutex
	.comm	_devdata,4,2                    ; @devdata
	.comm	_nx842_of_nb,4,2                ; @nx842_of_nb
	.no_dead_strip	_nx842_remove
.subsections_via_symbols
