	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xpnet_dev_open
_xpnet_dev_open:                        ## @xpnet_dev_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, -48(%rbp)                 ## 8-byte Spill
	movq	_xpnet@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_XPC_NET_CHANNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_xpnet_connection_activity@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_XPNET_MSG_SIZE@GOTPCREL(%rip), %r14
	movq	(%r14), %r8
	movq	_XPNET_MSG_NENTRIES@GOTPCREL(%rip), %r12
	movq	(%r12), %r9
	movq	_XPNET_MAX_KTHREADS@GOTPCREL(%rip), %r13
	movq	_XPNET_MAX_IDLE_KTHREADS@GOTPCREL(%rip), %rbx
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	pushq	(%rbx)
	pushq	(%r13)
	callq	_dev_dbg
	addq	$16, %rsp
	movq	_XPC_NET_CHANNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_xpnet_connection_activity@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r14), %rcx
	movq	(%r12), %r8
	movq	(%r13), %r9
	subq	$8, %rsp
	xorl	%edx, %edx
	pushq	(%rbx)
	callq	_xpc_connect
	addq	$16, %rsp
	movq	_xpSuccess@GOTPCREL(%rip), %rcx
	movq	_xpnet@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx), %edx
	cmpl	(%rcx), %eax
	jne	LBB0_1
## %bb.2:
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %ecx
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
LBB0_3:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_xpnet,4,2                      ## @xpnet
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"calling xpc_connect(%d, 0x%p, NULL, %ld, %ld, %ld, %ld)\n"

	.comm	_XPC_NET_CHANNEL,4,2            ## @XPC_NET_CHANNEL
	.comm	_xpnet_connection_activity,4,2  ## @xpnet_connection_activity
	.comm	_XPNET_MSG_SIZE,8,3             ## @XPNET_MSG_SIZE
	.comm	_XPNET_MSG_NENTRIES,8,3         ## @XPNET_MSG_NENTRIES
	.comm	_XPNET_MAX_KTHREADS,8,3         ## @XPNET_MAX_KTHREADS
	.comm	_XPNET_MAX_IDLE_KTHREADS,8,3    ## @XPNET_MAX_IDLE_KTHREADS
	.comm	_xpSuccess,4,2                  ## @xpSuccess
L_.str.1:                               ## @.str.1
	.asciz	"ifconfig up of %s failed on XPC connect, ret=%d\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"ifconfig up of %s; XPC connected\n"

	.no_dead_strip	_xpnet_dev_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xpnet_dev_open
_xpnet_dev_open:                        ; @xpnet_dev_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x20, _xpnet@GOTPAGE
Lloh1:
	ldr	x20, [x20, _xpnet@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x21, _XPC_NET_CHANNEL@GOTPAGE
Lloh3:
	ldr	x21, [x21, _XPC_NET_CHANNEL@GOTPAGEOFF]
Lloh4:
	adrp	x22, _xpnet_connection_activity@GOTPAGE
Lloh5:
	ldr	x22, [x22, _xpnet_connection_activity@GOTPAGEOFF]
Lloh6:
	adrp	x23, _XPNET_MSG_SIZE@GOTPAGE
Lloh7:
	ldr	x23, [x23, _XPNET_MSG_SIZE@GOTPAGEOFF]
	ldr	w2, [x21]
	ldr	x8, [x23]
Lloh8:
	adrp	x24, _XPNET_MSG_NENTRIES@GOTPAGE
Lloh9:
	ldr	x24, [x24, _XPNET_MSG_NENTRIES@GOTPAGEOFF]
Lloh10:
	adrp	x25, _XPNET_MAX_KTHREADS@GOTPAGE
Lloh11:
	ldr	x25, [x25, _XPNET_MAX_KTHREADS@GOTPAGEOFF]
	ldr	x9, [x24]
	ldr	x10, [x25]
Lloh12:
	adrp	x26, _XPNET_MAX_IDLE_KTHREADS@GOTPAGE
Lloh13:
	ldr	x26, [x26, _XPNET_MAX_IDLE_KTHREADS@GOTPAGEOFF]
	ldr	x11, [x26]
	ldr	w12, [x22]
	stp	x10, x11, [sp, #24]
	stp	x8, x9, [sp, #8]
	str	x12, [sp]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	w0, [x21]
	ldr	w1, [x22]
	ldr	x3, [x23]
	ldr	x4, [x24]
	ldr	x5, [x25]
	ldr	x6, [x26]
	mov	x2, #0
	bl	_xpc_connect
	mov	x3, x0
Lloh16:
	adrp	x8, _xpSuccess@GOTPAGE
Lloh17:
	ldr	x8, [x8, _xpSuccess@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	ldr	w0, [x20]
	ldr	w2, [x19]
	cmp	w3, w8
	b.ne	LBB0_2
; %bb.1:
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_xpnet,4,2                      ; @xpnet
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"calling xpc_connect(%d, 0x%p, NULL, %ld, %ld, %ld, %ld)\n"

	.comm	_XPC_NET_CHANNEL,4,2            ; @XPC_NET_CHANNEL
	.comm	_xpnet_connection_activity,4,2  ; @xpnet_connection_activity
	.comm	_XPNET_MSG_SIZE,8,3             ; @XPNET_MSG_SIZE
	.comm	_XPNET_MSG_NENTRIES,8,3         ; @XPNET_MSG_NENTRIES
	.comm	_XPNET_MAX_KTHREADS,8,3         ; @XPNET_MAX_KTHREADS
	.comm	_XPNET_MAX_IDLE_KTHREADS,8,3    ; @XPNET_MAX_IDLE_KTHREADS
	.comm	_xpSuccess,4,2                  ; @xpSuccess
l_.str.1:                               ; @.str.1
	.asciz	"ifconfig up of %s failed on XPC connect, ret=%d\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"ifconfig up of %s; XPC connected\n"

	.no_dead_strip	_xpnet_dev_open
.subsections_via_symbols
