	.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_19
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %r14
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rdx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_4:
	movq	(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.5:
	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_19
## %bb.6:
	movq	_fw_device_refresh@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	cmpl	$0, (%rbx)
	jne	LBB0_8
## %bb.7:
	movq	_INITIAL_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_8:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	jmp	LBB0_18
LBB0_12:
	movq	(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_19
## %bb.13:
	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_19
## %bb.14:
	movq	_fw_device_shutdown@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	%r14, %rdi
	callq	_list_empty
	xorl	%esi, %esi
	testl	%eax, %eax
	jne	LBB0_17
## %bb.15:
	movq	_SHUTDOWN_DELAY@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_2:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_19
## %bb.3:
	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, 36(%rbx)
	movq	%r15, %rdi
	callq	_fw_node_get
	movl	%eax, 32(%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	28(%rbx), %rdi
	callq	_mutex_init
	leaq	24(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	movq	%rbx, (%r15)
	movq	_fw_device_init@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	addq	$20, %rdi
	movq	_fw_device_workfn@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	movq	_INITIAL_DELAY@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %esi
LBB0_17:
	movq	%rbx, %rdi
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fw_schedule_device_work        ## TAILCALL
LBB0_9:
	movq	(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_19
## %bb.10:
	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_19
## %bb.11:
	movq	_fw_device_update@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	jmp	LBB0_18
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_4
	.long	L0_0_set_12
	.long	L0_0_set_4
	.long	L0_0_set_12
	.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	_fw_device_workfn,4,2           ## @fw_device_workfn
	.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_15
; %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	x21, [x20]
	cbz	x21, LBB0_8
; %bb.3:
	ldr	w8, [x20, #8]
	str	w8, [x21, #16]
	bl	_smp_wmb
	ldr	w8, [x19, #4]
	str	w8, [x21, #12]
	add	x0, x21, #8
Lloh2:
	adrp	x19, _FW_DEVICE_RUNNING@GOTPAGE
Lloh3:
	ldr	x19, [x19, _FW_DEVICE_RUNNING@GOTPAGEOFF]
	ldr	w1, [x19]
Lloh4:
	adrp	x8, _FW_DEVICE_INITIALIZING@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FW_DEVICE_INITIALIZING@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	bl	_atomic_cmpxchg
	ldr	w8, [x19]
	cmp	w0, w8
	b.ne	LBB0_15
; %bb.4:
Lloh7:
	adrp	x8, _fw_device_refresh@GOTPAGE
Lloh8:
	ldr	x8, [x8, _fw_device_refresh@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x21, #4]
Lloh10:
	adrp	x8, _INITIAL_DELAY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _INITIAL_DELAY@GOTPAGEOFF]
	ldr	w9, [x21]
Lloh12:
	ldr	w8, [x8]
	cmp	w9, #0
	csel	w1, w8, wzr, eq
	b	LBB0_10
LBB0_5:
	ldr	x20, [x20]
	cbz	x20, LBB0_15
; %bb.6:
	add	x0, x20, #8
Lloh13:
	adrp	x8, _FW_DEVICE_GONE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _FW_DEVICE_GONE@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	bl	_atomic_xchg
Lloh16:
	adrp	x8, _FW_DEVICE_RUNNING@GOTPAGE
Lloh17:
	ldr	x8, [x8, _FW_DEVICE_RUNNING@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_15
; %bb.7:
Lloh19:
	adrp	x8, _fw_device_shutdown@GOTPAGE
Lloh20:
	ldr	x8, [x8, _fw_device_shutdown@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [x20, #4]
	mov	x0, x19
	bl	_list_empty
Lloh22:
	adrp	x8, _SHUTDOWN_DELAY@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SHUTDOWN_DELAY@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w1, w8, wzr, eq
	mov	x0, x20
	b	LBB0_11
LBB0_8:
Lloh25:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh26:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_15
; %bb.9:
	mov	x21, x0
	add	x0, x0, #8
Lloh28:
	adrp	x8, _FW_DEVICE_INITIALIZING@GOTPAGE
Lloh29:
	ldr	x8, [x8, _FW_DEVICE_INITIALIZING@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	bl	_atomic_set
	mov	x0, x19
	bl	_fw_card_get
	str	w0, [x21, #36]
	mov	x0, x20
	bl	_fw_node_get
	str	w0, [x21, #32]
	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, #28
	bl	_mutex_init
	add	x0, x21, #24
	bl	_INIT_LIST_HEAD
	str	x21, [x20]
Lloh31:
	adrp	x8, _fw_device_init@GOTPAGE
Lloh32:
	ldr	x8, [x8, _fw_device_init@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	str	w8, [x21, #4]
	add	x0, x21, #20
Lloh34:
	adrp	x8, _fw_device_workfn@GOTPAGE
Lloh35:
	ldr	x8, [x8, _fw_device_workfn@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
Lloh37:
	adrp	x8, _INITIAL_DELAY@GOTPAGE
Lloh38:
	ldr	x8, [x8, _INITIAL_DELAY@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
LBB0_10:
	mov	x0, x21
LBB0_11:
	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	_fw_schedule_device_work
LBB0_12:
	ldr	x21, [x20]
	cbz	x21, LBB0_15
; %bb.13:
	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
Lloh40:
	adrp	x8, _FW_DEVICE_RUNNING@GOTPAGE
Lloh41:
	ldr	x8, [x8, _FW_DEVICE_RUNNING@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_15
; %bb.14:
Lloh43:
	adrp	x8, _fw_device_update@GOTPAGE
Lloh44:
	ldr	x8, [x8, _fw_device_update@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	str	w8, [x21, #4]
	mov	x0, x21
	mov	w1, #0
	b	LBB0_11
LBB0_15:
	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	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_8-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	_fw_device_workfn,4,2           ; @fw_device_workfn
	.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
