	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tun_configure                  ## -- Begin function tun_configure
	.p2align	4, 0x90
_tun_configure:                         ## @tun_configure
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	-32(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	_IFT_PPP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -20(%rbp)
	movq	16(%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movl	8(%rbx), %eax
	movl	%eax, -28(%rbp)
	movl	4(%rbx), %edi
	movq	_TUNSIFINFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	callq	_ID0ioctl
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	movq	_LogERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_log_Printf
LBB0_2:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IFT_PPP,4,2                    ## @IFT_PPP
	.comm	_TUNSIFINFO,4,2                 ## @TUNSIFINFO
	.comm	_LogERROR,4,2                   ## @LogERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tun_configure: ioctl(TUNSIFINFO): %s\n"

	.comm	_errno,4,2                      ## @errno
	.comm	_IFF_MULTICAST,4,2              ## @IFF_MULTICAST
	.comm	_IFF_POINTOPOINT,4,2            ## @IFF_POINTOPOINT
	.comm	_IFF_UP,4,2                     ## @IFF_UP
	.comm	_PF_INET,4,2                    ## @PF_INET
	.comm	_SIOCSIFMTU,4,2                 ## @SIOCSIFMTU
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tun_configure                  ; -- Begin function tun_configure
	.p2align	2
_tun_configure:                         ; @tun_configure
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	mov	x0, sp
	mov	w1, #0
	mov	w2, #16
	bl	_memset
Lloh0:
	adrp	x8, _IFT_PPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IFT_PPP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
	ldp	w0, w9, [x19, #4]
	stp	w9, w8, [sp, #4]
Lloh3:
	adrp	x8, _TUNSIFINFO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TUNSIFINFO@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, sp
	bl	_ID0ioctl
	tbz	x0, #63, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _LogERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LogERROR@GOTPAGEOFF]
Lloh8:
	ldr	w19, [x8]
Lloh9:
	adrp	x8, _errno@GOTPAGE
Lloh10:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_log_Printf
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IFT_PPP,4,2                    ; @IFT_PPP
	.comm	_TUNSIFINFO,4,2                 ; @TUNSIFINFO
	.comm	_LogERROR,4,2                   ; @LogERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tun_configure: ioctl(TUNSIFINFO): %s\n"

	.comm	_errno,4,2                      ; @errno
	.comm	_IFF_MULTICAST,4,2              ; @IFF_MULTICAST
	.comm	_IFF_POINTOPOINT,4,2            ; @IFF_POINTOPOINT
	.comm	_IFF_UP,4,2                     ; @IFF_UP
	.comm	_PF_INET,4,2                    ; @PF_INET
	.comm	_SIOCSIFMTU,4,2                 ; @SIOCSIFMTU
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
.subsections_via_symbols
