	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fwnet_add_peer
_fwnet_add_peer:                        ## @fwnet_add_peer
	.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	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$56, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_dev_set_drvdata
	movq	%r15, 48(%rbx)
	leaq	40(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rbx)
	movl	20(%r14), %esi
	movl	%esi, 16(%rbx)
	movl	16(%r14), %edi
	callq	_fwnet_max_payload
	movl	%eax, 20(%rbx)
	movl	12(%r14), %eax
	movl	%eax, 12(%rbx)
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_smp_rmb
	movl	8(%r14), %eax
	movl	%eax, 8(%rbx)
	movq	%r15, %rdi
	callq	_spin_lock_irq
	addq	$4, %rbx
	leaq	8(%r15), %rsi
	movq	%rbx, %rdi
	callq	_list_add_tail
	incl	4(%r15)
	movq	%r15, %rdi
	callq	_set_carrier_state
	movq	%r15, %rdi
	callq	_spin_unlock_irq
	jmp	LBB0_3
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_3:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_fwnet_add_peer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fwnet_add_peer
_fwnet_add_peer:                        ; @fwnet_add_peer
	.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, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #56
	bl	_kmalloc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x21, x0
	mov	x0, x22
	mov	x1, x21
	bl	_dev_set_drvdata
	str	x19, [x21, #48]
	add	x0, x21, #40
	bl	_INIT_LIST_HEAD
	stp	xzr, xzr, [x21, #24]
	ldp	w0, w1, [x20, #16]
	str	w1, [x21, #16]
	bl	_fwnet_max_payload
	str	w0, [x21, #20]
	ldr	w8, [x20, #12]
	str	w8, [x21, #12]
	bl	_smp_rmb
	ldr	w8, [x20, #8]
	str	w8, [x21, #8]
	mov	x0, x19
	bl	_spin_lock_irq
	add	x0, x21, #4
	add	x1, x19, #8
	bl	_list_add_tail
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_set_carrier_state
	mov	x0, x19
	bl	_spin_unlock_irq
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_fwnet_add_peer
.subsections_via_symbols
