	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fwnet_receive_packet
_fwnet_receive_packet:                  ## @fwnet_receive_packet
	.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	%rsi, %rbx
	movq	_IEEE1394_ALL_NODES@GOTPCREL(%rip), %rax
	cmpl	%ecx, (%rax)
	jne	LBB0_1
## %bb.9:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
LBB0_1:
	movq	%rdi, %r14
	movq	48(%rbp), %rdi
	movq	24(%rbp), %rax
	cmpq	%rax, (%rdi)
	jne	LBB0_2
## %bb.3:
	movq	_TCODE_WRITE_BLOCK_REQUEST@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jne	LBB0_4
## %bb.5:
	movq	40(%rbp), %rdx
	movq	32(%rbp), %rsi
	movl	%r8d, %ecx
	movl	%r9d, %r8d
	xorl	%r9d, %r9d
	callq	_fwnet_incoming_packet
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	leaq	L_.str(%rip), %rdi
	callq	_fw_error
	movq	_RCODE_CONFLICT_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_2:
	movq	_RCODE_ADDRESS_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_4:
	movq	_RCODE_TYPE_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_RCODE_COMPLETE@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_fw_send_response               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE1394_ALL_NODES,4,2         ## @IEEE1394_ALL_NODES
	.comm	_RCODE_ADDRESS_ERROR,4,2        ## @RCODE_ADDRESS_ERROR
	.comm	_TCODE_WRITE_BLOCK_REQUEST,4,2  ## @TCODE_WRITE_BLOCK_REQUEST
	.comm	_RCODE_TYPE_ERROR,4,2           ## @RCODE_TYPE_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Incoming packet failure\n"

	.comm	_RCODE_CONFLICT_ERROR,4,2       ## @RCODE_CONFLICT_ERROR
	.comm	_RCODE_COMPLETE,4,2             ## @RCODE_COMPLETE
	.no_dead_strip	_fwnet_receive_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fwnet_receive_packet
_fwnet_receive_packet:                  ; @fwnet_receive_packet
	.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
Lloh0:
	adrp	x8, _IEEE1394_ALL_NODES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE1394_ALL_NODES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w3
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kfree
LBB0_2:
	mov	x20, x0
	ldr	x0, [x29, #32]
	ldr	x8, [x0]
	cmp	x8, x7
	b.ne	LBB0_6
; %bb.3:
Lloh3:
	adrp	x8, _TCODE_WRITE_BLOCK_REQUEST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TCODE_WRITE_BLOCK_REQUEST@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ne	LBB0_7
; %bb.4:
	ldp	x1, x2, [x29, #16]
	mov	x3, x4
	mov	x4, x5
	mov	w5, #0
	bl	_fwnet_incoming_packet
	cbz	x0, LBB0_8
; %bb.5:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_fw_error
Lloh8:
	adrp	x8, _RCODE_CONFLICT_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RCODE_CONFLICT_ERROR@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
Lloh10:
	adrp	x8, _RCODE_ADDRESS_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RCODE_ADDRESS_ERROR@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh12:
	adrp	x8, _RCODE_TYPE_ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RCODE_TYPE_ERROR@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh14:
	adrp	x8, _RCODE_COMPLETE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RCODE_COMPLETE@GOTPAGEOFF]
LBB0_9:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_fw_send_response
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE1394_ALL_NODES,4,2         ; @IEEE1394_ALL_NODES
	.comm	_RCODE_ADDRESS_ERROR,4,2        ; @RCODE_ADDRESS_ERROR
	.comm	_TCODE_WRITE_BLOCK_REQUEST,4,2  ; @TCODE_WRITE_BLOCK_REQUEST
	.comm	_RCODE_TYPE_ERROR,4,2           ; @RCODE_TYPE_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Incoming packet failure\n"

	.comm	_RCODE_CONFLICT_ERROR,4,2       ; @RCODE_CONFLICT_ERROR
	.comm	_RCODE_COMPLETE,4,2             ; @RCODE_COMPLETE
	.no_dead_strip	_fwnet_receive_packet
.subsections_via_symbols
