	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function slip_open
_slip_open:                             ## @slip_open
	.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, %r14
	movq	_CAP_NET_ADMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	16(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.5:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_rtnl_lock
	xorl	%eax, %eax
	callq	_sl_sync
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	(%rax), %rax
	movq	_SLIP_MAGIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movq	_EEXIST@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_1:
	movq	_EPERM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_8:
	movq	_ENFILE@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_sl_alloc
	testq	%rax, %rax
	je	LBB0_15
## %bb.9:
	movq	%rax, %r15
	movq	%r14, 24(%rax)
	movq	%rax, 8(%r14)
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%r15)
	movq	_SLF_INUSE@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	%r15, %r12
	addq	$16, %r12
	movq	%r12, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_10
LBB0_12:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_rtnl_unlock
	movl	$65536, (%r14)                  ## imm = 0x10000
	jmp	LBB0_16
LBB0_4:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_10:
	movq	_SL_MTU@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_sl_alloc_bufs
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.11:
	movl	(%r13), %edi
	movq	%r12, %rsi
	callq	_set_bit
	movl	48(%r15), %edi
	callq	_register_netdevice
	testl	%eax, %eax
	je	LBB0_12
## %bb.13:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_sl_free_bufs
LBB0_14:
	movq	$0, 24(%r15)
	movq	$0, 8(%r14)
	movl	(%r13), %edi
	movq	%r12, %rsi
	callq	_clear_bit
LBB0_15:
	xorl	%eax, %eax
	callq	_rtnl_unlock
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CAP_NET_ADMIN,4,2              ## @CAP_NET_ADMIN
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_EEXIST,4,2                     ## @EEXIST
	.comm	_SLIP_MAGIC,8,3                 ## @SLIP_MAGIC
	.comm	_ENFILE,4,2                     ## @ENFILE
	.comm	_current,8,3                    ## @current
	.comm	_SLF_INUSE,4,2                  ## @SLF_INUSE
	.comm	_SL_MTU,4,2                     ## @SL_MTU
	.comm	_HZ,4,2                         ## @HZ
	.comm	_jiffies,8,3                    ## @jiffies
	.no_dead_strip	_slip_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function slip_open
_slip_open:                             ; @slip_open
	.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
Lloh0:
	adrp	x8, _CAP_NET_ADMIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CAP_NET_ADMIN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_capable
	cbz	w0, LBB0_5
; %bb.1:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.2:
	bl	_rtnl_lock
	bl	_sl_sync
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_6
; %bb.3:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _SLIP_MAGIC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SLIP_MAGIC@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
Lloh6:
	adrp	x8, _EEXIST@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_16
LBB0_5:
Lloh9:
	adrp	x8, _EPERM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
Lloh11:
	adrp	x8, _ENFILE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENFILE@GOTPAGEOFF]
Lloh13:
	ldr	w21, [x8]
	bl	_sl_alloc
	cbz	x0, LBB0_11
; %bb.7:
	mov	x20, x0
	str	x19, [x0, #24]
	str	x0, [x19, #8]
Lloh14:
	adrp	x8, _current@GOTPAGE
Lloh15:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	ldr	w8, [x8]
	str	w8, [x0, #52]
Lloh17:
	adrp	x23, _SLF_INUSE@GOTPAGE
Lloh18:
	ldr	x23, [x23, _SLF_INUSE@GOTPAGEOFF]
	ldr	w0, [x23]
	add	x22, x20, #16
	mov	x1, x22
	bl	_test_bit
	cbz	w0, LBB0_12
LBB0_8:
	bl	_rtnl_unlock
	mov	w21, #0
	mov	w8, #65536
	str	w8, [x19]
	b	LBB0_17
LBB0_9:
Lloh19:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_17
LBB0_11:
	neg	w21, w21
	b	LBB0_16
LBB0_12:
Lloh21:
	adrp	x8, _SL_MTU@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SL_MTU@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_sl_alloc_bufs
	mov	x21, x0
	cbnz	w0, LBB0_15
; %bb.13:
	ldr	w0, [x23]
	mov	x1, x22
	bl	_set_bit
	ldr	w0, [x20, #48]
	bl	_register_netdevice
	cbz	w0, LBB0_8
; %bb.14:
	mov	x21, x0
	mov	x0, x20
	bl	_sl_free_bufs
LBB0_15:
	str	xzr, [x20, #24]
	str	xzr, [x19, #8]
	ldr	w0, [x23]
	mov	x1, x22
	bl	_clear_bit
LBB0_16:
	bl	_rtnl_unlock
LBB0_17:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_CAP_NET_ADMIN,4,2              ; @CAP_NET_ADMIN
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_EEXIST,4,2                     ; @EEXIST
	.comm	_SLIP_MAGIC,8,3                 ; @SLIP_MAGIC
	.comm	_ENFILE,4,2                     ; @ENFILE
	.comm	_current,8,3                    ; @current
	.comm	_SLF_INUSE,4,2                  ; @SLF_INUSE
	.comm	_SL_MTU,4,2                     ; @SL_MTU
	.comm	_HZ,4,2                         ; @HZ
	.comm	_jiffies,8,3                    ; @jiffies
	.no_dead_strip	_slip_open
.subsections_via_symbols
