	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ether1394_prep_write_packet
_ether1394_prep_write_packet:           ## @ether1394_prep_write_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r15d
	movq	%r8, %r14
	movl	%ecx, %r12d
	movq	%rdi, %rbx
	movl	%edx, (%rdi)
	callq	_hpsb_get_tlabel
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_3
LBB0_2:
	movq	_TCODE_WRITEB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movabsq	$4294967312, %rcx               ## imm = 0x100000010
	movq	%rcx, 8(%rbx)
	movl	(%rbx), %ecx
	shll	$16, %ecx
	movl	24(%rbx), %edx
	shll	$10, %edx
	orl	%ecx, %edx
	shll	$4, %eax
	orl	%edx, %eax
	orl	$256, %eax                      ## imm = 0x100
	movq	16(%rbx), %rcx
	movl	%eax, (%rcx)
	movl	%r12d, 8(%rcx)
	movl	%r15d, %eax
	shll	$16, %eax
	movl	%eax, 12(%rcx)
	addl	$3, %r15d
	andl	$-4, %r15d
	movl	%r15d, 28(%rbx)
	movq	%r14, 32(%rbx)
	xorl	%eax, %eax
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_TCODE_WRITEB,4,2               ## @TCODE_WRITEB
	.no_dead_strip	_ether1394_prep_write_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function ether1394_prep_write_packet
lCPI0_0:
	.long	16                              ; 0x10
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ether1394_prep_write_packet:           ; @ether1394_prep_write_packet
	.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
	mov	x20, x5
	mov	x19, x4
	mov	x22, x3
	mov	x21, x0
	str	w2, [x0]
	bl	_hpsb_get_tlabel
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _TCODE_WRITEB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TCODE_WRITEB@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x21, #4]
Lloh6:
	adrp	x9, lCPI0_0@PAGE
Lloh7:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [x21, #8]
	ldr	w9, [x21]
	lsl	w8, w8, #4
	orr	w8, w8, w9, lsl #16
	ldr	w9, [x21, #24]
	orr	w8, w8, w9, lsl #10
	orr	w8, w8, #0x100
	ldr	x9, [x21, #16]
	str	w8, [x9]
	lsl	w8, w20, #16
	stp	w22, w8, [x9, #8]
	add	w8, w20, #3
	and	w8, w8, #0xfffffffc
	str	w8, [x21, #28]
	str	x19, [x21, #32]
LBB0_3:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_TCODE_WRITEB,4,2               ; @TCODE_WRITEB
	.no_dead_strip	_ether1394_prep_write_packet
.subsections_via_symbols
