	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tifm_remove_adapter            ## -- Begin function tifm_remove_adapter
	.p2align	4, 0x90
_tifm_remove_adapter:                   ## @tifm_remove_adapter
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_workqueue@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_flush_workqueue
	movl	(%r15), %eax
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movl	%eax, %ecx
	cmpq	%rcx, %rbx
	jae	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rcx
	movq	(%rcx,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_device_unregister
	movl	(%r15), %eax
	jmp	LBB0_4
LBB0_5:
	movq	_tifm_adapter_lock@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	movl	8(%r15), %esi
	movq	_tifm_adapter_idr@GOTPCREL(%rip), %rdi
	callq	_idr_remove
	movq	%r14, %rdi
	callq	_spin_unlock
	addq	$4, %r15
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_device_del                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_workqueue,4,2                  ## @workqueue
	.comm	_tifm_adapter_lock,4,2          ## @tifm_adapter_lock
	.comm	_tifm_adapter_idr,4,2           ## @tifm_adapter_idr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tifm_remove_adapter            ; -- Begin function tifm_remove_adapter
	.p2align	2
_tifm_remove_adapter:                   ; @tifm_remove_adapter
	.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
Lloh0:
	adrp	x8, _workqueue@GOTPAGE
Lloh1:
	ldr	x8, [x8, _workqueue@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_flush_workqueue
	ldr	w8, [x19]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x20, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #1
	cmp	x20, w8, uxtw
	b.hs	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #16]
	ldr	x0, [x9, x20, lsl #3]
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_device_unregister
	ldr	w8, [x19]
	b	LBB0_2
LBB0_5:
Lloh3:
	adrp	x20, _tifm_adapter_lock@GOTPAGE
Lloh4:
	ldr	x20, [x20, _tifm_adapter_lock@GOTPAGEOFF]
	mov	x0, x20
	bl	_spin_lock
	ldr	w1, [x19, #8]
Lloh5:
	adrp	x0, _tifm_adapter_idr@GOTPAGE
Lloh6:
	ldr	x0, [x0, _tifm_adapter_idr@GOTPAGEOFF]
	bl	_idr_remove
	mov	x0, x20
	bl	_spin_unlock
	add	x0, x19, #4
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_device_del
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_workqueue,4,2                  ; @workqueue
	.comm	_tifm_adapter_lock,4,2          ; @tifm_adapter_lock
	.comm	_tifm_adapter_idr,4,2           ; @tifm_adapter_idr
.subsections_via_symbols
