	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ether1394_recv_init
_ether1394_recv_init:                   ## @ether1394_recv_init
	.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	%rdi, %rbx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	24(%rbx), %rax
	movb	(%rax), %cl
	incb	%cl
	movl	$2, %esi
	shll	%cl, %esi
	callq	_min
	movq	24(%rbx), %rdi
	movq	_ETHER1394_GASP_BUFFERS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	imull	%edx, %eax
	movl	16(%rbx), %ecx
	movq	_HPSB_ISO_DMA_PACKET_PER_BUFFER@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r8d
	movq	_ether1394_iso@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, (%rsp)
	movl	%eax, %esi
	movl	$1, %r9d
	callq	_hpsb_iso_recv_init
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rdi
	movl	$-1, %esi
	movl	$8, %edx
	movl	$-1, %ecx
	callq	_hpsb_iso_recv_start
	testq	%rax, %rax
	js	LBB0_3
## %bb.4:
	movq	_ETHER1394_BC_RUNNING@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_ETH1394_PRINT_G
	movq	_ETHER1394_BC_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_3:
	movq	_ETHER1394_BC_STOPPED@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_ETHER1394_GASP_BUFFERS,4,2     ## @ETHER1394_GASP_BUFFERS
	.comm	_HPSB_ISO_DMA_PACKET_PER_BUFFER,4,2 ## @HPSB_ISO_DMA_PACKET_PER_BUFFER
	.comm	_ether1394_iso,4,2              ## @ether1394_iso
	.comm	_KERN_ERR,4,2                   ## @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate IR context\n"

	.comm	_ETHER1394_BC_ERROR,4,2         ## @ETHER1394_BC_ERROR
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_ETHER1394_BC_STOPPED,4,2       ## @ETHER1394_BC_STOPPED
	.comm	_ETHER1394_BC_RUNNING,4,2       ## @ETHER1394_BC_RUNNING
	.no_dead_strip	_ether1394_recv_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ether1394_recv_init
_ether1394_recv_init:                   ; @ether1394_recv_init
	.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, x0
Lloh0:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x8, [x19, #24]
	ldr	w8, [x8]
	add	w8, w8, #1
	mov	w9, #2
	lsl	w1, w9, w8
	bl	_min
	ldr	x8, [x19, #24]
Lloh3:
	adrp	x9, _ETHER1394_GASP_BUFFERS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ETHER1394_GASP_BUFFERS@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x9]
	mul	w1, w2, w0
	ldr	w3, [x19, #16]
Lloh6:
	adrp	x9, _HPSB_ISO_DMA_PACKET_PER_BUFFER@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HPSB_ISO_DMA_PACKET_PER_BUFFER@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x9]
Lloh9:
	adrp	x9, _ether1394_iso@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ether1394_iso@GOTPAGEOFF]
Lloh11:
	ldr	w6, [x9]
	mov	x0, x8
	mov	w5, #1
	bl	_hpsb_iso_recv_init
	str	x0, [x19, #8]
	cbz	x0, LBB0_3
; %bb.1:
	mov	w1, #-1
	mov	w2, #8
	mov	w3, #-1
	bl	_hpsb_iso_recv_start
	tbnz	x0, #63, LBB0_4
; %bb.2:
	mov	w0, #0
Lloh12:
	adrp	x8, _ETHER1394_BC_RUNNING@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ETHER1394_BC_RUNNING@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
Lloh14:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ETH1394_PRINT_G
Lloh19:
	adrp	x8, _ETHER1394_BC_ERROR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ETHER1394_BC_ERROR@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh22:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_4:
	mov	w0, #0
Lloh25:
	adrp	x8, _ETHER1394_BC_STOPPED@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ETHER1394_BC_STOPPED@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_ETHER1394_GASP_BUFFERS,4,2     ; @ETHER1394_GASP_BUFFERS
	.comm	_HPSB_ISO_DMA_PACKET_PER_BUFFER,4,2 ; @HPSB_ISO_DMA_PACKET_PER_BUFFER
	.comm	_ether1394_iso,4,2              ; @ether1394_iso
	.comm	_KERN_ERR,4,2                   ; @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate IR context\n"

	.comm	_ETHER1394_BC_ERROR,4,2         ; @ETHER1394_BC_ERROR
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_ETHER1394_BC_STOPPED,4,2       ; @ETHER1394_BC_STOPPED
	.comm	_ETHER1394_BC_RUNNING,4,2       ; @ETHER1394_BC_RUNNING
	.no_dead_strip	_ether1394_recv_init
.subsections_via_symbols
