	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ether1394_complete_cb
_ether1394_complete_cb:                 ## @ether1394_complete_cb
	.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
	movq	%rdi, %r15
	movq	24(%rdi), %rbx
	movq	(%rbx), %rax
	movq	_TCODE_STREAM_DATA@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_hpsb_packet_success
	movl	%eax, %r14d
LBB0_2:
	movq	%rbx, %rdi
	callq	_ether1394_free_packet
	movq	(%r15), %rax
	leaq	-1(%rax), %rcx
	movq	%rcx, (%r15)
	cmpq	$2, %rax
	jl	LBB0_7
## %bb.3:
	testl	%r14d, %r14d
	jne	LBB0_7
## %bb.4:
	movl	12(%r15), %esi
	movl	16(%r15), %edi
	leaq	8(%r15), %rdx
	callq	_ether1394_encapsulate
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_ether1394_send_packet
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	movl	$1, %r14d
	addl	(%rcx), %eax
	jne	LBB0_7
## %bb.6:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_ETH1394_PRINT_G
LBB0_7:
	movq	%r15, %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ether1394_dg_complete          ## TAILCALL
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TCODE_STREAM_DATA,8,3          ## @TCODE_STREAM_DATA
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_KERN_ERR,4,2                   ## @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Out of tlabels\n"

	.no_dead_strip	_ether1394_complete_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ether1394_complete_cb
_ether1394_complete_cb:                 ; @ether1394_complete_cb
	.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	x19, x0
	ldr	x21, [x0, #24]
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _TCODE_STREAM_DATA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TCODE_STREAM_DATA@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_3
LBB0_2:
	mov	x0, x21
	bl	_hpsb_packet_success
	mov	x20, x0
LBB0_3:
	mov	x0, x21
	bl	_ether1394_free_packet
	ldr	x8, [x19]
	sub	x9, x8, #1
	str	x9, [x19]
	cmp	x8, #2
	ccmp	w20, #0, #0, ge
	b.ne	LBB0_8
; %bb.4:
	ldp	w1, w0, [x19, #12]
	add	x2, x19, #8
	bl	_ether1394_encapsulate
	mov	x1, x0
	mov	x0, x19
	bl	_ether1394_send_packet
	cbz	w0, LBB0_9
; %bb.5:
Lloh3:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_7
; %bb.6:
Lloh6:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ETH1394_PRINT_G
LBB0_7:
	mov	w20, #1
LBB0_8:
	mov	x0, x19
	mov	x1, x20
	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	_ether1394_dg_complete
LBB0_9:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_TCODE_STREAM_DATA,8,3          ; @TCODE_STREAM_DATA
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_KERN_ERR,4,2                   ; @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Out of tlabels\n"

	.no_dead_strip	_ether1394_complete_cb
.subsections_via_symbols
