	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fw_node_event                  ## -- Begin function fw_node_event
	.p2align	4, 0x90
_fw_node_event:                         ## @fw_node_event
	.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
                                        ## kill: def $edx killed $edx def $rdx
	addl	$-128, %edx
	cmpl	$5, %edx
	ja	LBB0_21
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %r14
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rdx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	cmpl	$0, 12(%r15)
	jne	LBB0_3
	jmp	LBB0_21
LBB0_14:
	movq	(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_21
## %bb.15:
	leaq	8(%rbx), %rdi
	movq	_FW_DEVICE_GONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_atomic_xchg
	movq	_FW_DEVICE_RUNNING@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_21
## %bb.16:
	addq	$4, %rbx
	movq	_fw_device_shutdown@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_PREPARE_DELAYED_WORK
	movq	%r14, %rdi
	callq	_list_empty
	xorl	%esi, %esi
	testl	%eax, %eax
	jne	LBB0_19
## %bb.17:
	movq	_SHUTDOWN_DELAY@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_10:
	cmpl	$0, 12(%r15)
	je	LBB0_21
## %bb.11:
	movq	(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_21
## %bb.12:
	movl	8(%r15), %eax
	movl	%eax, 16(%rbx)
	xorl	%eax, %eax
	callq	_smp_wmb
	movl	4(%r14), %eax
	movl	%eax, 12(%rbx)
	leaq	8(%rbx), %rdi
	callq	_atomic_read
	movq	_FW_DEVICE_RUNNING@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_21
## %bb.13:
	addq	$4, %rbx
	movq	_fw_device_update@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_PREPARE_DELAYED_WORK
	movq	%rbx, %rdi
	xorl	%esi, %esi
	jmp	LBB0_20
LBB0_5:
	movq	(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.6:
	movl	8(%r15), %eax
	movl	%eax, 16(%rbx)
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_smp_wmb
	movl	4(%r14), %eax
	movl	%eax, 12(%rbx)
	leaq	8(%rbx), %rdi
	movq	_FW_DEVICE_RUNNING@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_FW_DEVICE_INITIALIZING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_atomic_cmpxchg
	cmpl	(%r14), %eax
	jne	LBB0_21
## %bb.7:
	leaq	4(%rbx), %r14
	movq	_fw_device_refresh@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_PREPARE_DELAYED_WORK
	cmpl	$0, (%rbx)
	jne	LBB0_9
## %bb.8:
	movq	_INITIAL_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_9:
	movq	%r14, %rdi
	movl	%r15d, %esi
	jmp	LBB0_20
LBB0_3:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$36, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_21
## %bb.4:
	movq	%rax, %rbx
	leaq	8(%rax), %rdi
	movq	_FW_DEVICE_INITIALIZING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_atomic_set
	movq	%r14, %rdi
	callq	_fw_card_get
	movl	%eax, 32(%rbx)
	movq	%r15, %rdi
	callq	_fw_node_get
	movl	%eax, 28(%rbx)
	movl	8(%r15), %eax
	movl	%eax, 16(%rbx)
	movl	4(%r14), %eax
	movl	%eax, 12(%rbx)
	xorl	%eax, %eax
	cmpq	%r15, 8(%r14)
	sete	%al
	movl	%eax, (%rbx)
	leaq	24(%rbx), %rdi
	callq	_mutex_init
	leaq	20(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	movq	%rbx, (%r15)
	addq	$4, %rbx
	movq	_fw_device_init@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_INIT_DELAYED_WORK
	movq	_INITIAL_DELAY@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %esi
LBB0_19:
	movq	%rbx, %rdi
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_schedule_delayed_work          ## TAILCALL
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_2
	.long	L0_0_set_14
	.long	L0_0_set_5
	.long	L0_0_set_14
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_FW_DEVICE_INITIALIZING,4,2     ## @FW_DEVICE_INITIALIZING
	.comm	_fw_device_init,4,2             ## @fw_device_init
	.comm	_INITIAL_DELAY,4,2              ## @INITIAL_DELAY
	.comm	_FW_DEVICE_RUNNING,4,2          ## @FW_DEVICE_RUNNING
	.comm	_fw_device_refresh,4,2          ## @fw_device_refresh
	.comm	_fw_device_update,4,2           ## @fw_device_update
	.comm	_FW_DEVICE_GONE,4,2             ## @FW_DEVICE_GONE
	.comm	_fw_device_shutdown,4,2         ## @fw_device_shutdown
	.comm	_SHUTDOWN_DELAY,4,2             ## @SHUTDOWN_DELAY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fw_node_event                  ; -- Begin function fw_node_event
	.p2align	2
_fw_node_event:                         ; @fw_node_event
	.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
	sub	w8, w2, #128
	cmp	w8, #5
	b.hi	LBB0_17
; %bb.1:
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w8, [x20, #12]
	cbnz	w8, LBB0_13
	b	LBB0_17
LBB0_3:
	ldr	x20, [x20]
	cbz	x20, LBB0_17
; %bb.4:
	add	x0, x20, #8
Lloh2:
	adrp	x8, _FW_DEVICE_GONE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FW_DEVICE_GONE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_atomic_xchg
Lloh5:
	adrp	x8, _FW_DEVICE_RUNNING@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FW_DEVICE_RUNNING@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_17
; %bb.5:
	add	x20, x20, #4
Lloh8:
	adrp	x8, _fw_device_shutdown@GOTPAGE
Lloh9:
	ldr	x8, [x8, _fw_device_shutdown@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_PREPARE_DELAYED_WORK
	mov	x0, x19
	bl	_list_empty
Lloh11:
	adrp	x8, _SHUTDOWN_DELAY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SHUTDOWN_DELAY@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w1, w8, wzr, eq
	mov	x0, x20
	b	LBB0_16
LBB0_6:
	ldr	w8, [x20, #12]
	cbz	w8, LBB0_17
; %bb.7:
	ldr	x21, [x20]
	cbz	x21, LBB0_17
; %bb.8:
	ldr	w8, [x20, #8]
	str	w8, [x21, #16]
	bl	_smp_wmb
	ldr	w8, [x19, #4]
	str	w8, [x21, #12]
	add	x0, x21, #8
	bl	_atomic_read
Lloh14:
	adrp	x8, _FW_DEVICE_RUNNING@GOTPAGE
Lloh15:
	ldr	x8, [x8, _FW_DEVICE_RUNNING@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_17
; %bb.9:
	add	x19, x21, #4
Lloh17:
	adrp	x8, _fw_device_update@GOTPAGE
Lloh18:
	ldr	x8, [x8, _fw_device_update@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_PREPARE_DELAYED_WORK
	mov	x0, x19
	mov	w1, #0
	b	LBB0_16
LBB0_10:
	ldr	x21, [x20]
	cbz	x21, LBB0_13
; %bb.11:
	ldr	w8, [x20, #8]
	str	w8, [x21, #16]
	bl	_smp_wmb
	ldr	w8, [x19, #4]
	str	w8, [x21, #12]
	add	x0, x21, #8
Lloh20:
	adrp	x19, _FW_DEVICE_RUNNING@GOTPAGE
Lloh21:
	ldr	x19, [x19, _FW_DEVICE_RUNNING@GOTPAGEOFF]
	ldr	w1, [x19]
Lloh22:
	adrp	x8, _FW_DEVICE_INITIALIZING@GOTPAGE
Lloh23:
	ldr	x8, [x8, _FW_DEVICE_INITIALIZING@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	bl	_atomic_cmpxchg
	ldr	w8, [x19]
	cmp	w0, w8
	b.ne	LBB0_17
; %bb.12:
	add	x19, x21, #4
Lloh25:
	adrp	x8, _fw_device_refresh@GOTPAGE
Lloh26:
	ldr	x8, [x8, _fw_device_refresh@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_PREPARE_DELAYED_WORK
Lloh28:
	adrp	x8, _INITIAL_DELAY@GOTPAGE
Lloh29:
	ldr	x8, [x8, _INITIAL_DELAY@GOTPAGEOFF]
	ldr	w9, [x21]
Lloh30:
	ldr	w8, [x8]
	cmp	w9, #0
	csel	w1, w8, wzr, eq
	b	LBB0_15
LBB0_13:
Lloh31:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh32:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	w0, #36
	bl	_kzalloc
	cbz	x0, LBB0_17
; %bb.14:
	mov	x21, x0
	add	x0, x0, #8
Lloh34:
	adrp	x8, _FW_DEVICE_INITIALIZING@GOTPAGE
Lloh35:
	ldr	x8, [x8, _FW_DEVICE_INITIALIZING@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	bl	_atomic_set
	mov	x0, x19
	bl	_fw_card_get
	str	w0, [x21, #32]
	mov	x0, x20
	bl	_fw_node_get
	str	w0, [x21, #28]
	ldr	w8, [x20, #8]
	ldr	w9, [x19, #4]
	stp	w9, w8, [x21, #12]
	ldr	x8, [x19, #8]
	cmp	x8, x20
	cset	w8, eq
	str	w8, [x21]
	add	x0, x21, #24
	bl	_mutex_init
	add	x0, x21, #20
	bl	_INIT_LIST_HEAD
	str	x21, [x20]
	add	x19, x21, #4
Lloh37:
	adrp	x8, _fw_device_init@GOTPAGE
Lloh38:
	ldr	x8, [x8, _fw_device_init@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_INIT_DELAYED_WORK
Lloh40:
	adrp	x8, _INITIAL_DELAY@GOTPAGE
Lloh41:
	ldr	x8, [x8, _INITIAL_DELAY@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
LBB0_15:
	mov	x0, x19
LBB0_16:
	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	_schedule_delayed_work
LBB0_17:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_FW_DEVICE_INITIALIZING,4,2     ; @FW_DEVICE_INITIALIZING
	.comm	_fw_device_init,4,2             ; @fw_device_init
	.comm	_INITIAL_DELAY,4,2              ; @INITIAL_DELAY
	.comm	_FW_DEVICE_RUNNING,4,2          ; @FW_DEVICE_RUNNING
	.comm	_fw_device_refresh,4,2          ; @fw_device_refresh
	.comm	_fw_device_update,4,2           ; @fw_device_update
	.comm	_FW_DEVICE_GONE,4,2             ; @FW_DEVICE_GONE
	.comm	_fw_device_shutdown,4,2         ; @fw_device_shutdown
	.comm	_SHUTDOWN_DELAY,4,2             ; @SHUTDOWN_DELAY
.subsections_via_symbols
