	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_fw_unit
	movq	%rax, %rbx
	movq	%rax, %rdi
	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_10
LBB0_2:
	movq	_fwnet_init_dev@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movl	$80, %edi
	callq	_alloc_netdev
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r12
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	16(%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, 40(%rbx)
	leaq	36(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	32(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	28(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	24(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	movq	%r13, 16(%rbx)
	movq	%r12, 8(%rbx)
	movb	(%r13), %cl
	incb	%cl
	movl	$1, %esi
	shll	%cl, %esi
	movq	_IEEE1394_GASP_HDR_SIZE@GOTPCREL(%rip), %rax
	subl	(%rax), %esi
	addl	$-4, %esi
	movl	$1500, %edi                     ## imm = 0x5DC
	callq	_min
	movl	%eax, 12(%r12)
	movq	8(%r13), %rdi
	movl	8(%r12), %esi
	callq	_put_unaligned_be64
	movl	4(%r12), %esi
	movq	$-1, %rdi
	callq	_put_unaligned_be64
	movq	%r12, %rdi
	callq	_register_netdev
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rdi
	callq	_fw_error
	jmp	LBB0_9
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_10
LBB0_6:
	movq	_fwnet_device_list@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_list_add_tail
	movl	(%r12), %esi
	movq	8(%r13), %rdx
	leaq	L_.str.2(%rip), %rdi
	callq	_fw_notify
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_fwnet_add_peer
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_unregister_netdev
	movq	%rbx, %rdi
	callq	_list_del
LBB0_9:
	movq	%r12, %rdi
	callq	_free_netdev
LBB0_10:
	movq	_fwnet_device_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%r14d, %r14d
	jmp	LBB0_10
	.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	_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	_IEEE1394_GASP_HDR_SIZE,4,2     ## @IEEE1394_GASP_HDR_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"Cannot register the driver\n"

	.comm	_fwnet_device_list,4,2          ## @fwnet_device_list
L_.str.2:                               ## @.str.2
	.asciz	"%s: IPv4 over FireWire on device %016llx\n"

	.no_dead_strip	_fwnet_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fwnet_probe
_fwnet_probe:                           ; @fwnet_probe
	.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
	bl	_fw_unit
	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_9
LBB0_2:
Lloh2:
	adrp	x8, _fwnet_init_dev@GOTPAGE
Lloh3:
	ldr	x8, [x8, _fwnet_init_dev@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #80
	bl	_alloc_netdev
	cbz	x0, LBB0_5
; %bb.3:
	mov	x21, x0
	ldr	w1, [x22, #16]
	bl	_SET_NETDEV_DEV
	mov	x0, x21
	bl	_netdev_priv
	mov	x23, x0
	add	x0, x0, #76
	bl	_spin_lock_init
Lloh7:
	adrp	x8, _FWNET_BROADCAST_ERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FWNET_BROADCAST_ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x23, #72]
	stp	xzr, xzr, [x23, #56]
	str	xzr, [x23, #48]
Lloh10:
	adrp	x8, _FWNET_NO_FIFO_ADDR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FWNET_NO_FIFO_ADDR@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x23, #40]
	add	x0, x23, #36
	bl	_INIT_LIST_HEAD
	add	x0, x23, #32
	bl	_INIT_LIST_HEAD
	add	x0, x23, #28
	bl	_INIT_LIST_HEAD
	add	x0, x23, #24
	bl	_INIT_LIST_HEAD
	stp	x21, x22, [x23, #8]
	ldr	w8, [x22]
	add	w8, w8, #1
	mov	w9, #1
	lsl	w8, w9, w8
Lloh13:
	adrp	x9, _IEEE1394_GASP_HDR_SIZE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _IEEE1394_GASP_HDR_SIZE@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	sub	w8, w8, w9
	sub	w1, w8, #4
	mov	w0, #1500
	bl	_min
	str	w0, [x21, #12]
	ldr	x0, [x22, #8]
	ldr	w1, [x21, #8]
	bl	_put_unaligned_be64
	ldr	w1, [x21, #4]
	mov	x0, #-1
	bl	_put_unaligned_be64
	mov	x0, x21
	bl	_register_netdev
	cbz	w0, LBB0_6
; %bb.4:
	mov	x24, x0
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_fw_error
	b	LBB0_8
LBB0_5:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_9
LBB0_6:
Lloh21:
	adrp	x1, _fwnet_device_list@GOTPAGE
Lloh22:
	ldr	x1, [x1, _fwnet_device_list@GOTPAGEOFF]
	mov	x0, x23
	bl	_list_add_tail
	ldr	w1, [x21]
	ldr	x2, [x22, #8]
Lloh23:
	adrp	x0, l_.str.2@PAGE
Lloh24:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_fw_notify
	mov	x0, x23
	mov	x1, x19
	mov	x2, x20
	bl	_fwnet_add_peer
	mov	x24, x0
	cbz	w0, LBB0_9
; %bb.7:
	mov	x0, x21
	bl	_unregister_netdev
	mov	x0, x23
	bl	_list_del
LBB0_8:
	mov	x0, x21
	bl	_free_netdev
LBB0_9:
Lloh25:
	adrp	x0, _fwnet_device_mutex@GOTPAGE
Lloh26:
	ldr	x0, [x0, _fwnet_device_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
	mov	x0, x24
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.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	_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	_IEEE1394_GASP_HDR_SIZE,4,2     ; @IEEE1394_GASP_HDR_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"Cannot register the driver\n"

	.comm	_fwnet_device_list,4,2          ; @fwnet_device_list
l_.str.2:                               ; @.str.2
	.asciz	"%s: IPv4 over FireWire on device %016llx\n"

	.no_dead_strip	_fwnet_probe
.subsections_via_symbols
