	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dv1394_add_host
_dv1394_add_host:                       ## @dv1394_add_host
	.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
	movq	%rdi, %rbx
	movl	(%rdi), %r15d
	movq	16(%rdi), %rax
	movl	(%rax), %edi
	movq	_OHCI1394_DRIVER_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	8(%rbx), %r14
	movq	_hpsb_protocol_class@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_IEEE1394_MAJOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_IEEE1394_MINOR_BLOCK_DV1394@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$4, %eax
	leal	(%rax,%r15,4), %esi
	callq	_MKDEV
	leaq	L_.str(%rip), %r8
	movl	%ebx, %edi
	xorl	%esi, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	movl	%r15d, %r9d
	callq	_device_create
	movq	_DV1394_NTSC@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_MODE_RECEIVE@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%r14, %rdi
	callq	_dv1394_init
	movl	(%rbx), %esi
	movq	_MODE_TRANSMIT@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r14, %rdi
	callq	_dv1394_init
	movq	_DV1394_PAL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	(%r15), %edx
	movq	%r14, %rdi
	callq	_dv1394_init
	movl	(%rbx), %esi
	movl	(%r12), %edx
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dv1394_init                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_OHCI1394_DRIVER_NAME,4,2       ## @OHCI1394_DRIVER_NAME
	.comm	_hpsb_protocol_class,4,2        ## @hpsb_protocol_class
	.comm	_IEEE1394_MAJOR,4,2             ## @IEEE1394_MAJOR
	.comm	_IEEE1394_MINOR_BLOCK_DV1394,4,2 ## @IEEE1394_MINOR_BLOCK_DV1394
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dv1394-%d"

	.comm	_DV1394_NTSC,4,2                ## @DV1394_NTSC
	.comm	_MODE_RECEIVE,4,2               ## @MODE_RECEIVE
	.comm	_MODE_TRANSMIT,4,2              ## @MODE_TRANSMIT
	.comm	_DV1394_PAL,4,2                 ## @DV1394_PAL
	.no_dead_strip	_dv1394_add_host
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dv1394_add_host
_dv1394_add_host:                       ; @dv1394_add_host
	.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, x0
	ldr	w19, [x0]
	ldr	x8, [x0, #16]
	ldr	w0, [x8]
Lloh0:
	adrp	x8, _OHCI1394_DRIVER_NAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OHCI1394_DRIVER_NAME@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_strcmp
	cbz	x0, LBB0_2
; %bb.1:
	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
LBB0_2:
	ldr	x20, [x20, #8]
Lloh3:
	adrp	x8, _hpsb_protocol_class@GOTPAGE
Lloh4:
	ldr	x8, [x8, _hpsb_protocol_class@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
Lloh6:
	adrp	x8, _IEEE1394_MAJOR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IEEE1394_MAJOR@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _IEEE1394_MINOR_BLOCK_DV1394@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IEEE1394_MINOR_BLOCK_DV1394@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	lsl	w8, w8, #4
	add	w1, w8, w19, lsl #2
	bl	_MKDEV
	mov	x2, x0
Lloh12:
	adrp	x4, l_.str@PAGE
Lloh13:
	add	x4, x4, l_.str@PAGEOFF
	mov	x0, x21
	mov	x1, #0
	mov	x3, #0
	mov	x5, x19
	bl	_device_create
Lloh14:
	adrp	x19, _DV1394_NTSC@GOTPAGE
Lloh15:
	ldr	x19, [x19, _DV1394_NTSC@GOTPAGEOFF]
	ldr	w1, [x19]
Lloh16:
	adrp	x21, _MODE_RECEIVE@GOTPAGE
Lloh17:
	ldr	x21, [x21, _MODE_RECEIVE@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x20
	bl	_dv1394_init
	ldr	w1, [x19]
Lloh18:
	adrp	x19, _MODE_TRANSMIT@GOTPAGE
Lloh19:
	ldr	x19, [x19, _MODE_TRANSMIT@GOTPAGEOFF]
	ldr	w2, [x19]
	mov	x0, x20
	bl	_dv1394_init
Lloh20:
	adrp	x22, _DV1394_PAL@GOTPAGE
Lloh21:
	ldr	x22, [x22, _DV1394_PAL@GOTPAGEOFF]
	ldr	w1, [x22]
	ldr	w2, [x21]
	mov	x0, x20
	bl	_dv1394_init
	ldr	w1, [x22]
	ldr	w2, [x19]
	mov	x0, 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	_dv1394_init
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_OHCI1394_DRIVER_NAME,4,2       ; @OHCI1394_DRIVER_NAME
	.comm	_hpsb_protocol_class,4,2        ; @hpsb_protocol_class
	.comm	_IEEE1394_MAJOR,4,2             ; @IEEE1394_MAJOR
	.comm	_IEEE1394_MINOR_BLOCK_DV1394,4,2 ; @IEEE1394_MINOR_BLOCK_DV1394
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dv1394-%d"

	.comm	_DV1394_NTSC,4,2                ; @DV1394_NTSC
	.comm	_MODE_RECEIVE,4,2               ; @MODE_RECEIVE
	.comm	_MODE_TRANSMIT,4,2              ; @MODE_TRANSMIT
	.comm	_DV1394_PAL,4,2                 ; @DV1394_PAL
	.no_dead_strip	_dv1394_add_host
.subsections_via_symbols
