	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iface_ChangeFlags
_iface_ChangeFlags:                     ## @iface_ChangeFlags
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movl	%esi, %ebx
	movq	%rdi, %r13
	movq	_PF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	callq	_ID0socket
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	%eax, %r15d
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	leaq	-64(%rbp), %r12
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	-64(%rbp), %rdi
	movq	%r13, %rsi
	movl	$7, %edx
	callq	_strncpy
	movq	-64(%rbp), %rax
	movb	$0, 7(%rax)
	movq	_SIOCGIFFLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	movq	%r12, %rdx
	callq	_ID0ioctl
	testq	%rax, %rax
	js	LBB0_3
## %bb.4:
	movl	-56(%rbp), %eax
	movq	_IFACE_ADDFLAGS@GOTPCREL(%rip), %rcx
	movl	%eax, %edx
	orl	%ebx, %edx
	notl	%ebx
	andl	%eax, %ebx
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, (%rcx)
	cmovel	%edx, %ebx
	movzwl	%bx, %eax
	movl	%eax, -56(%rbp)
	movq	_SIOCSIFFLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdx
	movl	%r15d, %edi
	callq	_ID0ioctl
	testq	%rax, %rax
	js	LBB0_5
## %bb.6:
	movl	%r15d, %edi
	callq	_close
	movl	$1, %r14d
	jmp	LBB0_7
LBB0_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
	jmp	LBB0_7
LBB0_3:
	movq	_LogERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_log_Printf
	movl	%r15d, %edi
	callq	_close
	jmp	LBB0_7
LBB0_5:
	movq	_LogERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_log_Printf
	movl	%r15d, %edi
	callq	_close
	xorl	%r14d, %r14d
LBB0_7:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PF_INET,4,2                    ## @PF_INET
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.comm	_LogERROR,4,2                   ## @LogERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"iface_ChangeFlags: socket: %s\n"

	.comm	_errno,4,2                      ## @errno
	.comm	_SIOCGIFFLAGS,4,2               ## @SIOCGIFFLAGS
L_.str.1:                               ## @.str.1
	.asciz	"iface_ChangeFlags: ioctl(SIOCGIFFLAGS): %s\n"

	.comm	_IFACE_ADDFLAGS,4,2             ## @IFACE_ADDFLAGS
	.comm	_SIOCSIFFLAGS,4,2               ## @SIOCSIFFLAGS
L_.str.2:                               ## @.str.2
	.asciz	"iface_ChangeFlags: ioctl(SIOCSIFFLAGS): %s\n"

	.no_dead_strip	_iface_ChangeFlags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iface_ChangeFlags
_iface_ChangeFlags:                     ; @iface_ChangeFlags
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _PF_INET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PF_INET@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _SOCK_DGRAM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SOCK_DGRAM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_ID0socket
	tbnz	w0, #31, LBB0_4
; %bb.1:
	mov	x19, x0
	mov	x0, sp
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	x0, [sp]
	mov	x1, x22
	mov	w2, #7
	bl	_strncpy
	ldr	x8, [sp]
	strb	wzr, [x8, #7]
Lloh6:
	adrp	x8, _SIOCGIFFLAGS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SIOCGIFFLAGS@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x19
	bl	_ID0ioctl
	tbnz	x0, #63, LBB0_5
; %bb.2:
	ldr	w8, [sp, #8]
Lloh9:
	adrp	x9, _IFACE_ADDFLAGS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IFACE_ADDFLAGS@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w10, w8, w21
	bic	w8, w8, w21
	cmp	w9, w20
	csel	w8, w10, w8, eq
	and	w8, w8, #0xffff
	str	w8, [sp, #8]
Lloh12:
	adrp	x8, _SIOCSIFFLAGS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SIOCSIFFLAGS@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x19
	bl	_ID0ioctl
	tbnz	x0, #63, LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_close
	mov	w0, #1
	b	LBB0_9
LBB0_4:
Lloh15:
	adrp	x8, _LogERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LogERROR@GOTPAGEOFF]
Lloh17:
	ldr	w19, [x8]
Lloh18:
	adrp	x8, _errno@GOTPAGE
Lloh19:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_log_Printf
	b	LBB0_8
LBB0_5:
Lloh23:
	adrp	x8, _LogERROR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _LogERROR@GOTPAGEOFF]
Lloh25:
	ldr	w20, [x8]
Lloh26:
	adrp	x8, _errno@GOTPAGE
Lloh27:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh31:
	adrp	x8, _LogERROR@GOTPAGE
Lloh32:
	ldr	x8, [x8, _LogERROR@GOTPAGEOFF]
Lloh33:
	ldr	w20, [x8]
Lloh34:
	adrp	x8, _errno@GOTPAGE
Lloh35:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh37:
	adrp	x1, l_.str.2@PAGE
Lloh38:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_7:
	mov	x0, x20
	bl	_log_Printf
	mov	x0, x19
	bl	_close
LBB0_8:
	mov	w0, #0
LBB0_9:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_PF_INET,4,2                    ; @PF_INET
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.comm	_LogERROR,4,2                   ; @LogERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"iface_ChangeFlags: socket: %s\n"

	.comm	_errno,4,2                      ; @errno
	.comm	_SIOCGIFFLAGS,4,2               ; @SIOCGIFFLAGS
l_.str.1:                               ; @.str.1
	.asciz	"iface_ChangeFlags: ioctl(SIOCGIFFLAGS): %s\n"

	.comm	_IFACE_ADDFLAGS,4,2             ; @IFACE_ADDFLAGS
	.comm	_SIOCSIFFLAGS,4,2               ; @SIOCSIFFLAGS
l_.str.2:                               ; @.str.2
	.asciz	"iface_ChangeFlags: ioctl(SIOCSIFFLAGS): %s\n"

	.no_dead_strip	_iface_ChangeFlags
.subsections_via_symbols
