	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ether1394_add_host
_ether1394_add_host:                    ## @ether1394_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_hpsb_config_rom_ip1394_add
	testq	%rax, %rax
	je	LBB0_1
## %bb.12:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ETH1394_PRINT_G                ## TAILCALL
LBB0_1:
	movq	_ETHER1394_REGION_ADDR_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_CSR1212_INVALID_ADDR_SPACE@GOTPCREL(%rip), %r15
	movq	(%r15), %r9
	movq	%r9, (%rsp)
	movq	_eth1394_highlevel@GOTPCREL(%rip), %rdi
	movq	_addr_ops@GOTPCREL(%rip), %rdx
	movq	%rbx, %rsi
	movl	%ecx, %r8d
	callq	_hpsb_allocate_and_register_addrspace
	cmpq	(%r15), %rax
	jne	LBB0_3
## %bb.2:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_ETH1394_PRINT_G
	jmp	LBB0_11
LBB0_3:
	movq	%rax, %r14
	movq	_ether1394_init_dev@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	movl	$48, %edi
	callq	_alloc_netdev
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	%rax, %r15
	leaq	8(%rbx), %rsi
	movq	%rax, %rdi
	callq	_SET_NETDEV_DEV
	movq	%r15, %rdi
	callq	_netdev_priv
	movq	%rax, %r12
	leaq	44(%rax), %rdi
	callq	_INIT_LIST_HEAD
	leaq	40(%r12), %rdi
	callq	_spin_lock_init
	movq	%rbx, 32(%r12)
	movq	%r14, 24(%r12)
	leaq	16(%r12), %rdi
	movq	_ether1394_wake_queue@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	%r15, 8(%r12)
	movq	_eth1394_highlevel@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	movl	$16, %edx
	callq	_hpsb_create_hostinfo
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r13
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_ether1394_reset_priv
	movq	%r15, %rdi
	callq	_register_netdev
	testq	%rax, %rax
	je	LBB0_7
## %bb.9:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_ETH1394_PRINT_G
	movq	%r15, %rdi
	callq	_free_netdev
	movq	_eth1394_highlevel@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_hpsb_destroy_hostinfo
	jmp	LBB0_10
LBB0_8:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_ETH1394_PRINT_G
	jmp	LBB0_10
LBB0_5:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_ETH1394_PRINT_G
	movq	%r15, %rdi
	callq	_free_netdev
LBB0_10:
	movq	_eth1394_highlevel@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_hpsb_unregister_addrspace
LBB0_11:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hpsb_config_rom_ip1394_remove  ## TAILCALL
LBB0_7:
	movq	_KERN_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	movl	4(%rbx), %ecx
	leaq	L_.str.5(%rip), %rdx
	callq	_ETH1394_PRINT
	movq	%rbx, 8(%r13)
	movq	%r15, (%r13)
	movl	(%rbx), %eax
	andl	$63, %eax
	movl	%eax, (%r12)
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ether1394_recv_init            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_KERN_ERR,4,2                   ## @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't add IP-over-1394 ROM entry\n"

	.comm	_eth1394_highlevel,4,2          ## @eth1394_highlevel
	.comm	_addr_ops,4,2                   ## @addr_ops
	.comm	_ETHER1394_REGION_ADDR_LEN,4,2  ## @ETHER1394_REGION_ADDR_LEN
	.comm	_CSR1212_INVALID_ADDR_SPACE,8,3 ## @CSR1212_INVALID_ADDR_SPACE
L_.str.1:                               ## @.str.1
	.asciz	"Cannot register CSR space\n"

L_.str.2:                               ## @.str.2
	.asciz	"eth%d"

	.comm	_ether1394_init_dev,4,2         ## @ether1394_init_dev
L_.str.3:                               ## @.str.3
	.asciz	"Out of memory\n"

	.comm	_ether1394_wake_queue,4,2       ## @ether1394_wake_queue
L_.str.4:                               ## @.str.4
	.asciz	"Cannot register the driver\n"

	.comm	_KERN_INFO,4,2                  ## @KERN_INFO
L_.str.5:                               ## @.str.5
	.asciz	"IPv4 over IEEE 1394 (fw-host%d)\n"

	.no_dead_strip	_ether1394_add_host
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ether1394_add_host
_ether1394_add_host:                    ; @ether1394_add_host
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_hpsb_config_rom_ip1394_add
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ETH1394_PRINT_G
LBB0_2:
Lloh5:
	adrp	x8, _ETHER1394_REGION_ADDR_LEN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ETHER1394_REGION_ADDR_LEN@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
Lloh8:
	adrp	x21, _CSR1212_INVALID_ADDR_SPACE@GOTPAGE
Lloh9:
	ldr	x21, [x21, _CSR1212_INVALID_ADDR_SPACE@GOTPAGEOFF]
	ldr	x5, [x21]
Lloh10:
	adrp	x0, _eth1394_highlevel@GOTPAGE
Lloh11:
	ldr	x0, [x0, _eth1394_highlevel@GOTPAGEOFF]
Lloh12:
	adrp	x2, _addr_ops@GOTPAGE
Lloh13:
	ldr	x2, [x2, _addr_ops@GOTPAGEOFF]
	mov	x1, x19
	mov	x4, x3
	mov	x6, x5
	bl	_hpsb_allocate_and_register_addrspace
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
Lloh14:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_ETH1394_PRINT_G
	b	LBB0_11
LBB0_4:
	mov	x20, x0
Lloh19:
	adrp	x8, _ether1394_init_dev@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ether1394_init_dev@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #48
	bl	_alloc_netdev
	cbz	x0, LBB0_8
; %bb.5:
	mov	x21, x0
	add	x1, x19, #8
	bl	_SET_NETDEV_DEV
	mov	x0, x21
	bl	_netdev_priv
	mov	x22, x0
	add	x0, x0, #44
	bl	_INIT_LIST_HEAD
	add	x0, x22, #40
	bl	_spin_lock_init
	stp	x20, x19, [x22, #24]
	add	x0, x22, #16
Lloh24:
	adrp	x8, _ether1394_wake_queue@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ether1394_wake_queue@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	bl	_INIT_WORK
	str	x21, [x22, #8]
Lloh27:
	adrp	x0, _eth1394_highlevel@GOTPAGE
Lloh28:
	ldr	x0, [x0, _eth1394_highlevel@GOTPAGEOFF]
	mov	x1, x19
	mov	w2, #16
	bl	_hpsb_create_hostinfo
	cbz	x0, LBB0_9
; %bb.6:
	mov	x23, x0
	mov	x0, x21
	mov	w1, #1
	bl	_ether1394_reset_priv
	mov	x0, x21
	bl	_register_netdev
	cbz	x0, LBB0_12
; %bb.7:
Lloh29:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
Lloh32:
	adrp	x1, l_.str.4@PAGE
Lloh33:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_ETH1394_PRINT_G
	mov	x0, x21
	bl	_free_netdev
Lloh34:
	adrp	x0, _eth1394_highlevel@GOTPAGE
Lloh35:
	ldr	x0, [x0, _eth1394_highlevel@GOTPAGEOFF]
	mov	x1, x19
	bl	_hpsb_destroy_hostinfo
	b	LBB0_10
LBB0_8:
Lloh36:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh37:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
Lloh39:
	adrp	x1, l_.str.3@PAGE
Lloh40:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_ETH1394_PRINT_G
	b	LBB0_10
LBB0_9:
Lloh41:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh42:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
Lloh44:
	adrp	x1, l_.str.3@PAGE
Lloh45:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_ETH1394_PRINT_G
	mov	x0, x21
	bl	_free_netdev
LBB0_10:
Lloh46:
	adrp	x0, _eth1394_highlevel@GOTPAGE
Lloh47:
	ldr	x0, [x0, _eth1394_highlevel@GOTPAGEOFF]
	mov	x1, x19
	mov	x2, x20
	bl	_hpsb_unregister_addrspace
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_hpsb_config_rom_ip1394_remove
LBB0_12:
Lloh48:
	adrp	x8, _KERN_INFO@GOTPAGE
Lloh49:
	ldr	x8, [x8, _KERN_INFO@GOTPAGEOFF]
Lloh50:
	ldr	w0, [x8]
	ldr	w1, [x21]
	ldr	w3, [x19, #4]
Lloh51:
	adrp	x2, l_.str.5@PAGE
Lloh52:
	add	x2, x2, l_.str.5@PAGEOFF
	bl	_ETH1394_PRINT
	stp	x21, x19, [x23]
	ldr	w8, [x19]
	and	w8, w8, #0x3f
	str	w8, [x22]
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ether1394_recv_init
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.comm	_KERN_ERR,4,2                   ; @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't add IP-over-1394 ROM entry\n"

	.comm	_eth1394_highlevel,4,2          ; @eth1394_highlevel
	.comm	_addr_ops,4,2                   ; @addr_ops
	.comm	_ETHER1394_REGION_ADDR_LEN,4,2  ; @ETHER1394_REGION_ADDR_LEN
	.comm	_CSR1212_INVALID_ADDR_SPACE,8,3 ; @CSR1212_INVALID_ADDR_SPACE
l_.str.1:                               ; @.str.1
	.asciz	"Cannot register CSR space\n"

l_.str.2:                               ; @.str.2
	.asciz	"eth%d"

	.comm	_ether1394_init_dev,4,2         ; @ether1394_init_dev
l_.str.3:                               ; @.str.3
	.asciz	"Out of memory\n"

	.comm	_ether1394_wake_queue,4,2       ; @ether1394_wake_queue
l_.str.4:                               ; @.str.4
	.asciz	"Cannot register the driver\n"

	.comm	_KERN_INFO,4,2                  ; @KERN_INFO
l_.str.5:                               ; @.str.5
	.asciz	"IPv4 over IEEE 1394 (fw-host%d)\n"

	.no_dead_strip	_ether1394_add_host
.subsections_via_symbols
