	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setifflags
_setifflags:                            ## @setifflags
	.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, %r15d
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	_name@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movl	%edx, %esi
	callq	_getifflags
	movl	%eax, %ebx
	leal	-1(%r12), %eax
	andl	%ebx, %eax
	orl	%r12d, %ebx
	testl	%r12d, %r12d
	cmovsl	%eax, %ebx
	leaq	-56(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movl	-48(%rbp), %edi
	movl	(%r13), %esi
	movl	$4, %edx
	callq	_strlcpy
	movzwl	%bx, %eax
	movl	%eax, -56(%rbp)
	sarl	$16, %ebx
	movl	%ebx, -52(%rbp)
	movq	_SIOCSIFFLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	movl	%r12d, %edx
	callq	_ioctl
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_Perror
LBB0_2:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_name,4,2                       ## @name
	.comm	_SIOCSIFFLAGS,4,2               ## @SIOCSIFFLAGS
	.no_dead_strip	_setifflags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setifflags
_setifflags:                            ; @setifflags
	.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	x19, x0
Lloh0:
	adrp	x22, _name@GOTPAGE
Lloh1:
	ldr	x22, [x22, _name@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	x1, x2
	bl	_getifflags
	sub	w8, w21, #1
	and	w8, w0, w8
	orr	w9, w0, w21
	cmp	w21, #0
	csel	w21, w8, w9, lt
	mov	x0, sp
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	ldr	w0, [sp, #8]
	ldr	w1, [x22]
	mov	w2, #4
	bl	_strlcpy
	and	w8, w21, #0xffff
	asr	w9, w21, #16
	stp	w8, w9, [sp]
Lloh2:
	adrp	x8, _SIOCSIFFLAGS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SIOCSIFFLAGS@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x20
	bl	_ioctl
	tbz	x0, #63, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_Perror
LBB0_2:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_name,4,2                       ; @name
	.comm	_SIOCSIFFLAGS,4,2               ; @SIOCSIFFLAGS
	.no_dead_strip	_setifflags
.subsections_via_symbols
