	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function state_opened
_state_opened:                          ## @state_opened
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movq	(%rsi), %rax
	movq	_RAW1394_REQ_INITIALIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	movl	8(%rbx), %eax
	cmpl	$128, %eax
	je	LBB0_3
## %bb.2:
	cmpl	$3, %eax
	jne	LBB0_4
LBB0_3:
	movq	_initialized@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rdi)
	movl	%eax, (%rdi)
	movq	_RAW1394_ERROR_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_internal_generation@GOTPCREL(%rip), %rdi
	callq	_atomic_read
	movl	%eax, 28(%rbx)
	jmp	LBB0_6
LBB0_5:
	movq	_RAW1394_ERROR_STATE_ORDER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	jmp	LBB0_6
LBB0_4:
	movq	_RAW1394_ERROR_COMPAT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movl	$128, 8(%rbx)
LBB0_6:
	movq	$0, 16(%rbx)
	movq	%rbx, %rdi
	callq	_queue_complete_req
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RAW1394_REQ_INITIALIZE,8,3     ## @RAW1394_REQ_INITIALIZE
	.comm	_initialized,4,2                ## @initialized
	.comm	_RAW1394_ERROR_NONE,4,2         ## @RAW1394_ERROR_NONE
	.comm	_internal_generation,4,2        ## @internal_generation
	.comm	_RAW1394_ERROR_COMPAT,4,2       ## @RAW1394_ERROR_COMPAT
	.comm	_RAW1394_ERROR_STATE_ORDER,4,2  ## @RAW1394_ERROR_STATE_ORDER
	.no_dead_strip	_state_opened
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function state_opened
_state_opened:                          ; @state_opened
	.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, x1
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _RAW1394_REQ_INITIALIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RAW1394_REQ_INITIALIZE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x19, #8]
	cmp	w8, #128
	ccmp	w8, #3, #4, ne
	b.ne	LBB0_4
; %bb.2:
Lloh3:
	adrp	x9, _initialized@GOTPAGE
Lloh4:
	ldr	x9, [x9, _initialized@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w8, w9, [x0]
Lloh6:
	adrp	x8, _RAW1394_ERROR_NONE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RAW1394_ERROR_NONE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, #24]
Lloh9:
	adrp	x0, _internal_generation@GOTPAGE
Lloh10:
	ldr	x0, [x0, _internal_generation@GOTPAGEOFF]
	bl	_atomic_read
	str	w0, [x19, #28]
	b	LBB0_5
LBB0_3:
Lloh11:
	adrp	x8, _RAW1394_ERROR_STATE_ORDER@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RAW1394_ERROR_STATE_ORDER@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	b	LBB0_5
LBB0_4:
Lloh14:
	adrp	x8, _RAW1394_ERROR_COMPAT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RAW1394_ERROR_COMPAT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	mov	w8, #128
	str	w8, [x19, #8]
LBB0_5:
	str	xzr, [x19, #16]
	mov	x0, x19
	bl	_queue_complete_req
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_RAW1394_REQ_INITIALIZE,8,3     ; @RAW1394_REQ_INITIALIZE
	.comm	_initialized,4,2                ; @initialized
	.comm	_RAW1394_ERROR_NONE,4,2         ; @RAW1394_ERROR_NONE
	.comm	_internal_generation,4,2        ; @internal_generation
	.comm	_RAW1394_ERROR_COMPAT,4,2       ; @RAW1394_ERROR_COMPAT
	.comm	_RAW1394_ERROR_STATE_ORDER,4,2  ; @RAW1394_ERROR_STATE_ORDER
	.no_dead_strip	_state_opened
.subsections_via_symbols
