	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pvc_open
_pvc_open:                              ## @pvc_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	movq	8(%rbx), %rdi
	movq	_IFF_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_1
## %bb.2:
	movl	16(%rbx), %eax
	leal	1(%rax), %ecx
	movl	%ecx, 16(%rbx)
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	callq	_dev_to_hdlc
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_state
	movq	8(%rax), %rax
	movq	_LMI_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.5:
	movq	8(%rbx), %rdi
	callq	_netif_carrier_ok
	movl	%eax, %edi
	movl	%eax, (%rbx)
	jmp	LBB0_6
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_7
LBB0_4:
	movl	(%rbx), %edi
LBB0_6:
	movq	%rbx, %rsi
	callq	_pvc_carrier
	movq	%r15, %rdi
	callq	_state
	movl	$1, (%rax)
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IFF_UP,4,2                     ## @IFF_UP
	.comm	_EIO,4,2                        ## @EIO
	.comm	_LMI_NONE,8,3                   ## @LMI_NONE
	.no_dead_strip	_pvc_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pvc_open
_pvc_open:                              ; @pvc_open
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x19, [x0]
	ldr	x0, [x19, #8]
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _IFF_UP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IFF_UP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	ldr	w8, [x19, #16]
	add	w9, w8, #1
	str	w9, [x19, #16]
	cbz	w8, LBB0_4
; %bb.2:
	mov	w0, #0
	b	LBB0_8
LBB0_3:
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_4:
	bl	_dev_to_hdlc
	mov	x20, x0
	bl	_state
	ldr	x8, [x0, #8]
Lloh6:
	adrp	x9, _LMI_NONE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _LMI_NONE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	ldr	x0, [x19, #8]
	bl	_netif_carrier_ok
	str	w0, [x19]
	b	LBB0_7
LBB0_6:
	ldr	w0, [x19]
LBB0_7:
	mov	x1, x19
	bl	_pvc_carrier
	mov	x0, x20
	bl	_state
	mov	x8, x0
	mov	w0, #0
	mov	w9, #1
	str	w9, [x8]
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IFF_UP,4,2                     ; @IFF_UP
	.comm	_EIO,4,2                        ; @EIO
	.comm	_LMI_NONE,8,3                   ; @LMI_NONE
	.no_dead_strip	_pvc_open
.subsections_via_symbols
