	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rfkill_unregister              ## -- Begin function rfkill_unregister
	.p2align	4, 0x90
_rfkill_unregister:                     ## @rfkill_unregister
	.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
	xorl	%edi, %edi
	testq	%rbx, %rbx
	sete	%dil
	callq	_BUG_ON
	movq	24(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	leaq	20(%rbx), %rdi
	callq	_cancel_delayed_work_sync
LBB0_2:
	leaq	16(%rbx), %rdi
	callq	_cancel_work_sync
	leaq	12(%rbx), %rdi
	callq	_cancel_work_sync
	movl	$0, (%rbx)
	leaq	8(%rbx), %rdi
	callq	_device_del
	movq	_rfkill_global_mutex@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_RFKILL_OP_DEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rfkill_send_events
	leaq	4(%rbx), %rdi
	callq	_list_del_init
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_rfkill_led_trigger_unregister  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_rfkill_global_mutex,4,2        ## @rfkill_global_mutex
	.comm	_RFKILL_OP_DEL,4,2              ## @RFKILL_OP_DEL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rfkill_unregister              ; -- Begin function rfkill_unregister
	.p2align	2
_rfkill_unregister:                     ; @rfkill_unregister
	.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	x19, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	add	x0, x19, #20
	bl	_cancel_delayed_work_sync
LBB0_2:
	add	x0, x19, #16
	bl	_cancel_work_sync
	add	x0, x19, #12
	bl	_cancel_work_sync
	mov	x20, x19
	str	wzr, [x20], #4
	add	x0, x19, #8
	bl	_device_del
Lloh0:
	adrp	x21, _rfkill_global_mutex@GOTPAGE
Lloh1:
	ldr	x21, [x21, _rfkill_global_mutex@GOTPAGEOFF]
	mov	x0, x21
	bl	_mutex_lock
Lloh2:
	adrp	x8, _RFKILL_OP_DEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RFKILL_OP_DEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rfkill_send_events
	mov	x0, x20
	bl	_list_del_init
	mov	x0, x21
	bl	_mutex_unlock
	mov	x0, x19
	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
	b	_rfkill_led_trigger_unregister
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_rfkill_global_mutex,4,2        ; @rfkill_global_mutex
	.comm	_RFKILL_OP_DEL,4,2              ; @RFKILL_OP_DEL
.subsections_via_symbols
