	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ether1394_prep_gasp_packet
_ether1394_prep_gasp_packet:            ## @ether1394_prep_gasp_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, %r14
	movq	%rdi, %rbx
	movl	$4, (%rdi)
	movq	_TCODE_STREAM_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rdi)
	movl	%ecx, %esi
	shll	$16, %esi
	movl	(%r14), %edi
	shll	$8, %edi
	orl	%esi, %edi
	shll	$4, %eax
	orl	%edi, %eax
	orl	$49152, %eax                    ## imm = 0xC000
	movq	8(%rbx), %rsi
	movl	%eax, (%rsi)
	movl	%ecx, 16(%rbx)
	movq	(%rdx), %rax
	addq	$-16, %rax
	movq	%rax, 32(%rbx)
	movq	8(%r14), %rax
	movl	(%rax), %edi
	shll	$16, %edi
	movq	_ETHER1394_GASP_SPECIFIER_ID_HI@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	callq	_cpu_to_be32
	movq	32(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	_ETHER1394_GASP_SPECIFIER_ID_LO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	shll	$24, %edi
	movq	_ETHER1394_GASP_VERSION@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	callq	_cpu_to_be32
	movq	32(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movl	4(%r14), %eax
	movl	%eax, 24(%rbx)
	movq	_LOCAL_BUS@GOTPCREL(%rip), %rax
	movq	_ALL_NODES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 20(%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TCODE_STREAM_DATA,4,2          ## @TCODE_STREAM_DATA
	.comm	_ETHER1394_GASP_SPECIFIER_ID_HI,4,2 ## @ETHER1394_GASP_SPECIFIER_ID_HI
	.comm	_ETHER1394_GASP_SPECIFIER_ID_LO,4,2 ## @ETHER1394_GASP_SPECIFIER_ID_LO
	.comm	_ETHER1394_GASP_VERSION,4,2     ## @ETHER1394_GASP_VERSION
	.comm	_LOCAL_BUS,4,2                  ## @LOCAL_BUS
	.comm	_ALL_NODES,4,2                  ## @ALL_NODES
	.no_dead_strip	_ether1394_prep_gasp_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ether1394_prep_gasp_packet
_ether1394_prep_gasp_packet:            ; @ether1394_prep_gasp_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
	mov	x20, x0
	mov	w8, #4
	str	w8, [x0]
Lloh0:
	adrp	x8, _TCODE_STREAM_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TCODE_STREAM_DATA@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #4]
	lsl	w9, w3, #16
	ldr	w10, [x1]
	orr	w8, w9, w8, lsl #4
	orr	w8, w8, w10, lsl #8
	orr	w8, w8, #0xc000
	ldr	x9, [x0, #8]
	str	w8, [x9]
	str	w3, [x0, #16]
	ldr	x8, [x2]
	sub	x8, x8, #16
	str	x8, [x0, #32]
	ldr	x8, [x1, #8]
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _ETHER1394_GASP_SPECIFIER_ID_HI@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ETHER1394_GASP_SPECIFIER_ID_HI@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w0, w9, w8, lsl #16
	bl	_cpu_to_be32
	ldr	x8, [x20, #32]
Lloh6:
	adrp	x9, _ETHER1394_GASP_SPECIFIER_ID_LO@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ETHER1394_GASP_SPECIFIER_ID_LO@GOTPAGEOFF]
	str	x0, [x8]
Lloh8:
	ldr	w8, [x9]
Lloh9:
	adrp	x9, _ETHER1394_GASP_VERSION@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ETHER1394_GASP_VERSION@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w0, w9, w8, lsl #24
	bl	_cpu_to_be32
	ldr	x8, [x20, #32]
	str	x0, [x8, #8]
	ldr	w8, [x19, #4]
Lloh12:
	adrp	x9, _LOCAL_BUS@GOTPAGE
Lloh13:
	ldr	x9, [x9, _LOCAL_BUS@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _ALL_NODES@GOTPAGE
Lloh16:
	ldr	x10, [x10, _ALL_NODES@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	orr	w9, w10, w9
	stp	w9, w8, [x20, #20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TCODE_STREAM_DATA,4,2          ; @TCODE_STREAM_DATA
	.comm	_ETHER1394_GASP_SPECIFIER_ID_HI,4,2 ; @ETHER1394_GASP_SPECIFIER_ID_HI
	.comm	_ETHER1394_GASP_SPECIFIER_ID_LO,4,2 ; @ETHER1394_GASP_SPECIFIER_ID_LO
	.comm	_ETHER1394_GASP_VERSION,4,2     ; @ETHER1394_GASP_VERSION
	.comm	_LOCAL_BUS,4,2                  ; @LOCAL_BUS
	.comm	_ALL_NODES,4,2                  ; @ALL_NODES
	.no_dead_strip	_ether1394_prep_gasp_packet
.subsections_via_symbols
