	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fwnet_probe
_fwnet_probe:                           ## @fwnet_probe
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_fw_parent_device
	movq	%rax, %r15
	movq	(%rax), %r13
	movq	_fwnet_device_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	%r13, %rdi
	callq	_fwnet_dev_find
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_fwnet_add_peer
	movl	%eax, %r14d
	jmp	LBB0_11
LBB0_2:
	movq	_NET_NAME_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_fwnet_init_dev@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	movl	$80, %edi
	callq	_alloc_netdev
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r12
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	(%r13), %esi
	movq	%rax, %rdi
	callq	_SET_NETDEV_DEV
	movq	%r12, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	leaq	76(%rax), %rdi
	callq	_spin_lock_init
	movq	_FWNET_BROADCAST_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 48(%rbx)
	movq	$0, 64(%rbx)
	movq	_FWNET_NO_FIFO_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	$0, 40(%rbx)
	leaq	32(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	movq	%r13, 8(%rbx)
	movq	%r12, 24(%rbx)
	movq	%rbx, %rdi
	callq	_fwnet_fifo_start
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movl	16(%rbx), %eax
	movl	%eax, (%rbx)
	movl	$1500, (%r12)                   ## imm = 0x5DC
	movq	_ETH_MIN_MTU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r12)
	movl	$4096, 4(%r12)                  ## imm = 0x1000
	movq	24(%r12), %r14
	movl	12(%r13), %edi
	leaq	16(%r14), %rsi
	callq	_put_unaligned_be64
	movq	8(%rbx), %rax
	movl	8(%rax), %eax
	movl	%eax, 12(%r14)
	movq	8(%rbx), %rax
	movl	4(%rax), %eax
	movl	%eax, 8(%r14)
	leaq	4(%r14), %rsi
	callq	_put_unaligned_be16
	movl	(%rbx), %edi
	movq	%r14, %rsi
	callq	_put_unaligned_be32
	movl	12(%r12), %edx
	movl	16(%r12), %edi
	movl	$-1, %esi
	callq	_memset
	movq	%r12, %rdi
	callq	_register_netdev
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.7:
	movq	%rbx, %rdi
	addq	$4, %rdi
	movq	_fwnet_device_list@GOTPCREL(%rip), %rsi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_list_add_tail
	movq	%r12, %r14
	addq	$8, %r14
	movl	(%r13), %edi
	callq	_dev_name
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_notice
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_fwnet_add_peer
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_unregister_netdev
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_list_del
	jmp	LBB0_10
LBB0_3:
	movq	_fwnet_device_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_12
LBB0_5:
	movl	%eax, %r14d
LBB0_10:
	movq	%rbx, %rdi
	callq	_fwnet_fifo_stop
	movq	%r12, %rdi
	callq	_free_netdev
LBB0_11:
	movq	_fwnet_device_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
LBB0_12:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	xorl	%r14d, %r14d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_fwnet_device_mutex,4,2         ## @fwnet_device_mutex
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"firewire%d"

	.comm	_NET_NAME_UNKNOWN,4,2           ## @NET_NAME_UNKNOWN
	.comm	_fwnet_init_dev,4,2             ## @fwnet_init_dev
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_FWNET_BROADCAST_ERROR,4,2      ## @FWNET_BROADCAST_ERROR
	.comm	_FWNET_NO_FIFO_ADDR,4,2         ## @FWNET_NO_FIFO_ADDR
	.comm	_ETH_MIN_MTU,4,2                ## @ETH_MIN_MTU
	.comm	_fwnet_device_list,4,2          ## @fwnet_device_list
L_.str.1:                               ## @.str.1
	.asciz	"IP over IEEE 1394 on card %s\n"

	.no_dead_strip	_fwnet_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function fwnet_probe
lCPI0_0:
	.long	1500                            ; 0x5dc
	.long	4096                            ; 0x1000
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_fwnet_probe:                           ; @fwnet_probe
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	bl	_fw_parent_device
	mov	x20, x0
	ldr	x22, [x0]
Lloh0:
	adrp	x0, _fwnet_device_mutex@GOTPAGE
Lloh1:
	ldr	x0, [x0, _fwnet_device_mutex@GOTPAGEOFF]
	bl	_mutex_lock
	mov	x0, x22
	bl	_fwnet_dev_find
	cbz	x0, LBB0_2
; %bb.1:
	mov	x1, x19
	mov	x2, x20
	bl	_fwnet_add_peer
	mov	x24, x0
	b	LBB0_10
LBB0_2:
Lloh2:
	adrp	x8, _NET_NAME_UNKNOWN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NET_NAME_UNKNOWN@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x8, _fwnet_init_dev@GOTPAGE
Lloh6:
	ldr	x8, [x8, _fwnet_init_dev@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #80
	bl	_alloc_netdev
	cbz	x0, LBB0_7
; %bb.3:
	mov	x21, x0
	ldr	w1, [x22]
	bl	_SET_NETDEV_DEV
	mov	x0, x21
	bl	_netdev_priv
	mov	x23, x0
	add	x0, x0, #76
	bl	_spin_lock_init
Lloh10:
	adrp	x8, _FWNET_BROADCAST_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FWNET_BROADCAST_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x23, #72]
Lloh13:
	adrp	x8, _FWNET_NO_FIFO_ADDR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _FWNET_NO_FIFO_ADDR@GOTPAGEOFF]
	stp	xzr, xzr, [x23, #56]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x23]
	stp	xzr, xzr, [x23, #40]
	add	x0, x23, #32
	bl	_INIT_LIST_HEAD
	str	x22, [x23, #8]
	str	x21, [x23, #24]
	mov	x0, x23
	bl	_fwnet_fifo_start
	tbnz	w0, #31, LBB0_8
; %bb.4:
	ldr	w8, [x23, #16]
	str	w8, [x23]
Lloh16:
	adrp	x8, lCPI0_0@PAGE
Lloh17:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
Lloh18:
	adrp	x8, _ETH_MIN_MTU@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ETH_MIN_MTU@GOTPAGEOFF]
	str	d0, [x21]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x21, #32]
	ldr	x24, [x21, #24]
	ldr	w0, [x22, #12]
	add	x1, x24, #16
	bl	_put_unaligned_be64
	ldr	x8, [x23, #8]
	ldr	w8, [x8, #8]
	str	w8, [x24, #12]
	ldr	x8, [x23, #8]
	ldr	w8, [x8, #4]
	str	w8, [x24, #8]
	add	x1, x24, #4
	bl	_put_unaligned_be16
	ldr	w0, [x23]
	mov	x1, x24
	bl	_put_unaligned_be32
	ldp	w2, w0, [x21, #12]
	mov	w1, #-1
	bl	_memset
	mov	x0, x21
	bl	_register_netdev
	mov	x24, x0
	cbnz	w0, LBB0_9
; %bb.5:
	add	x25, x23, #4
Lloh21:
	adrp	x1, _fwnet_device_list@GOTPAGE
Lloh22:
	ldr	x1, [x1, _fwnet_device_list@GOTPAGEOFF]
	mov	x0, x25
	bl	_list_add_tail
	add	x24, x21, #8
	ldr	w0, [x22]
	bl	_dev_name
	mov	x2, x0
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x24
	bl	_dev_notice
	mov	x0, x23
	mov	x1, x19
	mov	x2, x20
	bl	_fwnet_add_peer
	mov	x24, x0
	cbz	w0, LBB0_10
; %bb.6:
	mov	x0, x21
	bl	_unregister_netdev
	mov	x0, x25
	bl	_list_del
	b	LBB0_9
LBB0_7:
Lloh25:
	adrp	x0, _fwnet_device_mutex@GOTPAGE
Lloh26:
	ldr	x0, [x0, _fwnet_device_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
Lloh27:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_11
LBB0_8:
	mov	x24, x0
LBB0_9:
	mov	x0, x23
	bl	_fwnet_fifo_stop
	mov	x0, x21
	bl	_free_netdev
LBB0_10:
Lloh30:
	adrp	x0, _fwnet_device_mutex@GOTPAGE
Lloh31:
	ldr	x0, [x0, _fwnet_device_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
LBB0_11:
	mov	x0, x24
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdrp	Lloh16, Lloh18
	.loh AdrpLdr	Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_fwnet_device_mutex,4,2         ; @fwnet_device_mutex
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"firewire%d"

	.comm	_NET_NAME_UNKNOWN,4,2           ; @NET_NAME_UNKNOWN
	.comm	_fwnet_init_dev,4,2             ; @fwnet_init_dev
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_FWNET_BROADCAST_ERROR,4,2      ; @FWNET_BROADCAST_ERROR
	.comm	_FWNET_NO_FIFO_ADDR,4,2         ; @FWNET_NO_FIFO_ADDR
	.comm	_ETH_MIN_MTU,4,2                ; @ETH_MIN_MTU
	.comm	_fwnet_device_list,4,2          ; @fwnet_device_list
l_.str.1:                               ; @.str.1
	.asciz	"IP over IEEE 1394 on card %s\n"

	.no_dead_strip	_fwnet_probe
.subsections_via_symbols
