	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atm_mpoa_mpoad_attach
_atm_mpoa_mpoad_attach:                 ## @atm_mpoa_mpoad_attach
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_mpcs@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_3
## %bb.1:
	movq	_mpc_timer@GOTPCREL(%rip), %rdi
	callq	_init_timer
	xorl	%eax, %eax
	callq	_mpc_timer_refresh
	movq	_mpoa_notifier@GOTPCREL(%rip), %rdi
	callq	_register_netdevice_notifier
	testl	%eax, %eax
	js	LBB0_2
LBB0_3:
	movl	%r14d, %edi
	callq	_find_mpc_by_itfnum
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_4
## %bb.7:
	cmpq	$0, 16(%rbx)
	je	LBB0_9
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	callq	_printk
	movq	_EADDRINUSE@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_18
LBB0_4:
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	callq	_dprintk
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_alloc_mpc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %rbx
	movl	%r14d, (%rax)
	movl	%r14d, %edi
	callq	_find_lec_by_itfnum
	movq	%rax, 8(%rbx)
	cmpq	$0, 16(%rbx)
	jne	LBB0_8
LBB0_9:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.10:
	callq	_netdev_priv
	cmpl	$1, (%rax)
	jg	LBB0_12
## %bb.11:
	movq	8(%rbx), %rdi
	callq	_dev_put
	movq	$0, 8(%rbx)
	jmp	LBB0_13
LBB0_2:
	movl	%eax, %ebx
	movq	_mpc_timer@GOTPCREL(%rip), %rdi
	callq	_del_timer
	movl	%ebx, %r14d
	jmp	LBB0_18
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	movl	%r12d, %r14d
	jmp	LBB0_18
LBB0_12:
	movq	_lane2_assoc_ind@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	8(%rax), %rax
	movl	%ecx, (%rax)
LBB0_13:
	movq	%r15, 16(%rbx)
	movq	_mpc_dev@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r15)
	movq	%r15, %rdi
	callq	_sk_atm
	movl	%eax, %edi
	callq	_vcc_insert_socket
	movq	_ATM_VF_META@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_set_bit
	movq	_ATM_VF_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_set_bit
	cmpq	$0, 8(%rbx)
	je	LBB0_17
## %bb.14:
	movq	%rsp, %r12
	movq	_ATM_ESA_LEN@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movl	(%r13), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	8(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_start_mpc
	movl	4(%rbx), %edi
	movl	(%r13), %edx
	movq	%r15, %rsi
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movl	4(%rbx), %edi
	movq	%rbx, %rsi
	callq	_send_set_mps_ctrl_addr
LBB0_16:
	movq	%r12, %rsp
LBB0_17:
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___module_get
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	movl	%r14d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_mpcs,8,3                       ## @mpcs
	.comm	_mpc_timer,4,2                  ## @mpc_timer
	.comm	_mpoa_notifier,4,2              ## @mpoa_notifier
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mpoa: mpoad_attach: allocating new mpc for itf %d\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"mpoa: mpoad_attach: mpoad is already present for itf %d\n"

	.comm	_EADDRINUSE,4,2                 ## @EADDRINUSE
	.comm	_lane2_assoc_ind,4,2            ## @lane2_assoc_ind
	.comm	_mpc_dev,4,2                    ## @mpc_dev
	.comm	_ATM_VF_META,4,2                ## @ATM_VF_META
	.comm	_ATM_VF_READY,4,2               ## @ATM_VF_READY
	.comm	_ATM_ESA_LEN,4,2                ## @ATM_ESA_LEN
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.no_dead_strip	_atm_mpoa_mpoad_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atm_mpoa_mpoad_attach
_atm_mpoa_mpoad_attach:                 ; @atm_mpoa_mpoad_attach
	.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
	sub	sp, sp, #16
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _mpcs@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mpcs@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbnz	x8, LBB0_2
; %bb.1:
Lloh6:
	adrp	x0, _mpc_timer@GOTPAGE
Lloh7:
	ldr	x0, [x0, _mpc_timer@GOTPAGEOFF]
	bl	_init_timer
	bl	_mpc_timer_refresh
Lloh8:
	adrp	x0, _mpoa_notifier@GOTPAGE
Lloh9:
	ldr	x0, [x0, _mpoa_notifier@GOTPAGEOFF]
	bl	_register_netdevice_notifier
	tbnz	w0, #31, LBB0_10
LBB0_2:
	mov	x0, x19
	bl	_find_mpc_by_itfnum
	mov	x20, x0
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_7
LBB0_4:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_printk
Lloh12:
	adrp	x8, _EADDRINUSE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EADDRINUSE@GOTPAGEOFF]
	b	LBB0_12
LBB0_5:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_dprintk
	bl	_alloc_mpc
	cbz	x0, LBB0_11
; %bb.6:
	mov	x20, x0
	str	w19, [x0]
	mov	x0, x19
	bl	_find_lec_by_itfnum
	str	x0, [x20, #8]
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_4
LBB0_7:
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_14
; %bb.8:
	bl	_netdev_priv
	ldr	w8, [x0]
	cmp	w8, #1
	b.gt	LBB0_13
; %bb.9:
	ldr	x0, [x20, #8]
	bl	_dev_put
	str	xzr, [x20, #8]
	b	LBB0_14
LBB0_10:
	mov	x20, x0
Lloh16:
	adrp	x0, _mpc_timer@GOTPAGE
Lloh17:
	ldr	x0, [x0, _mpc_timer@GOTPAGEOFF]
	bl	_del_timer
	mov	x19, x20
	b	LBB0_19
LBB0_11:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_19
LBB0_13:
Lloh20:
	adrp	x8, _lane2_assoc_ind@GOTPAGE
Lloh21:
	ldr	x8, [x8, _lane2_assoc_ind@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	ldr	x9, [x0, #8]
	str	w8, [x9]
LBB0_14:
	str	x21, [x20, #16]
Lloh23:
	adrp	x8, _mpc_dev@GOTPAGE
Lloh24:
	ldr	x8, [x8, _mpc_dev@GOTPAGEOFF]
	str	x8, [x21, #8]
	mov	x0, x21
	bl	_sk_atm
	bl	_vcc_insert_socket
Lloh25:
	adrp	x8, _ATM_VF_META@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ATM_VF_META@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_set_bit
Lloh28:
	adrp	x8, _ATM_VF_READY@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ATM_VF_READY@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_set_bit
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_18
; %bb.15:
	mov	x22, sp
Lloh31:
	adrp	x23, _ATM_ESA_LEN@GOTPAGE
Lloh32:
	ldr	x23, [x23, _ATM_ESA_LEN@GOTPAGEOFF]
	ldr	w8, [x23]
	mov	x9, x8
Lloh33:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh34:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	ldr	w2, [x23]
	mov	x0, x21
	mov	w1, #0
	bl	_memset
	ldr	x1, [x20, #8]
	mov	x0, x20
	bl	_start_mpc
	ldr	w0, [x20, #4]
	ldr	w2, [x23]
	mov	x1, x21
	bl	_memcmp
	cbz	x0, LBB0_17
; %bb.16:
	ldr	w0, [x20, #4]
	mov	x1, x20
	bl	_send_set_mps_ctrl_addr
LBB0_17:
	mov	sp, x22
LBB0_18:
Lloh35:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	bl	___module_get
LBB0_19:
	ldur	x8, [x29, #-56]
Lloh38:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh39:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.20:
	mov	x0, x19
	sub	sp, x29, #48
	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
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_mpcs,8,3                       ; @mpcs
	.comm	_mpc_timer,4,2                  ; @mpc_timer
	.comm	_mpoa_notifier,4,2              ; @mpoa_notifier
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mpoa: mpoad_attach: allocating new mpc for itf %d\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"mpoa: mpoad_attach: mpoad is already present for itf %d\n"

	.comm	_EADDRINUSE,4,2                 ; @EADDRINUSE
	.comm	_lane2_assoc_ind,4,2            ; @lane2_assoc_ind
	.comm	_mpc_dev,4,2                    ; @mpc_dev
	.comm	_ATM_VF_META,4,2                ; @ATM_VF_META
	.comm	_ATM_VF_READY,4,2               ; @ATM_VF_READY
	.comm	_ATM_ESA_LEN,4,2                ; @ATM_ESA_LEN
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.no_dead_strip	_atm_mpoa_mpoad_attach
.subsections_via_symbols
