	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function video1394_add_host
_video1394_add_host:                    ## @video1394_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movl	(%rax), %edi
	movq	_OHCI1394_DRIVER_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movq	(%rbx), %r14
	movq	_video1394_highlevel@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_hpsb_create_hostinfo
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movq	_video1394_highlevel@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_hpsb_set_hostinfo
	movq	(%r14), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_hpsb_set_hostinfo_key
	movq	_IEEE1394_MINOR_BLOCK_VIDEO1394@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$4, %esi
	movq	(%r14), %rax
	addl	(%rax), %esi
	movq	_hpsb_protocol_class@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_IEEE1394_MAJOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MKDEV
	movq	_VIDEO1394_DRIVER_NAME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	(%r14), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rsp)
	leaq	L_.str.1(%rip), %r8
	movl	%ebx, %edi
	xorl	%esi, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_device_create
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PRINT                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_OHCI1394_DRIVER_NAME,4,2       ## @OHCI1394_DRIVER_NAME
	.comm	_video1394_highlevel,4,2        ## @video1394_highlevel
	.comm	_KERN_ERR,4,2                   ## @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot allocate hostinfo"

	.comm	_IEEE1394_MINOR_BLOCK_VIDEO1394,4,2 ## @IEEE1394_MINOR_BLOCK_VIDEO1394
	.comm	_hpsb_protocol_class,4,2        ## @hpsb_protocol_class
	.comm	_IEEE1394_MAJOR,4,2             ## @IEEE1394_MAJOR
L_.str.1:                               ## @.str.1
	.asciz	"%s-%d"

	.comm	_VIDEO1394_DRIVER_NAME,4,2      ## @VIDEO1394_DRIVER_NAME
	.no_dead_strip	_video1394_add_host
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function video1394_add_host
_video1394_add_host:                    ; @video1394_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	x8, [x0, #8]
	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	x19, [x20]
Lloh3:
	adrp	x0, _video1394_highlevel@GOTPAGE
Lloh4:
	ldr	x0, [x0, _video1394_highlevel@GOTPAGEOFF]
	mov	x1, x20
	mov	w2, #0
	bl	_hpsb_create_hostinfo
	cbz	w0, LBB0_4
; %bb.3:
Lloh5:
	adrp	x21, _video1394_highlevel@GOTPAGE
Lloh6:
	ldr	x21, [x21, _video1394_highlevel@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_hpsb_set_hostinfo
	ldr	x8, [x19]
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x20
	bl	_hpsb_set_hostinfo_key
Lloh7:
	adrp	x8, _IEEE1394_MINOR_BLOCK_VIDEO1394@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IEEE1394_MINOR_BLOCK_VIDEO1394@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldr	x9, [x19]
	ldr	w9, [x9]
	add	w1, w9, w8, lsl #4
Lloh10:
	adrp	x8, _hpsb_protocol_class@GOTPAGE
Lloh11:
	ldr	x8, [x8, _hpsb_protocol_class@GOTPAGEOFF]
Lloh12:
	ldr	w20, [x8]
Lloh13:
	adrp	x8, _IEEE1394_MAJOR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IEEE1394_MAJOR@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_MKDEV
	mov	x2, x0
Lloh16:
	adrp	x8, _VIDEO1394_DRIVER_NAME@GOTPAGE
Lloh17:
	ldr	x8, [x8, _VIDEO1394_DRIVER_NAME@GOTPAGEOFF]
Lloh18:
	ldr	w5, [x8]
	ldr	x8, [x19]
	ldr	w6, [x8]
Lloh19:
	adrp	x4, l_.str.1@PAGE
Lloh20:
	add	x4, x4, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, #0
	mov	x3, #0
	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	_device_create
LBB0_4:
Lloh21:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	ldr	x8, [x19]
	ldr	w1, [x8]
Lloh24:
	adrp	x2, l_.str@PAGE
Lloh25:
	add	x2, x2, l_.str@PAGEOFF
	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	_PRINT
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_OHCI1394_DRIVER_NAME,4,2       ; @OHCI1394_DRIVER_NAME
	.comm	_video1394_highlevel,4,2        ; @video1394_highlevel
	.comm	_KERN_ERR,4,2                   ; @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot allocate hostinfo"

	.comm	_IEEE1394_MINOR_BLOCK_VIDEO1394,4,2 ; @IEEE1394_MINOR_BLOCK_VIDEO1394
	.comm	_hpsb_protocol_class,4,2        ; @hpsb_protocol_class
	.comm	_IEEE1394_MAJOR,4,2             ; @IEEE1394_MAJOR
l_.str.1:                               ; @.str.1
	.asciz	"%s-%d"

	.comm	_VIDEO1394_DRIVER_NAME,4,2      ; @VIDEO1394_DRIVER_NAME
	.no_dead_strip	_video1394_add_host
.subsections_via_symbols
