	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_interface_set_mtu_unpriv       ## -- Begin function interface_set_mtu_unpriv
	.p2align	4, 0x90
_interface_set_mtu_unpriv:              ## @interface_set_mtu_unpriv
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	%rsi, -40(%rbp)
	movq	_IMSG_SET_INTERFACE_MTU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	movl	$16, -32(%rbp)
	movl	$16, %edi
	callq	_buf_open
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_error
LBB0_2:
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$8, %edx
	callq	_buf_add
	movq	%rax, %r15
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$8, %edx
	callq	_buf_add
	addl	%r15d, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_error
LBB0_4:
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_buf_close
	cmpl	$-1, %eax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	callq	_error
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IMSG_SET_INTERFACE_MTU,4,2     ## @IMSG_SET_INTERFACE_MTU
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"buf_open: %m"

L_.str.1:                               ## @.str.1
	.asciz	"buf_add: %m"

L_.str.2:                               ## @.str.2
	.asciz	"buf_close: %m"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_interface_set_mtu_unpriv       ; -- Begin function interface_set_mtu_unpriv
	.p2align	2
_interface_set_mtu_unpriv:              ; @interface_set_mtu_unpriv
	.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	x19, x0
	str	x1, [sp, #8]
Lloh0:
	adrp	x8, _IMSG_SET_INTERFACE_MTU@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IMSG_SET_INTERFACE_MTU@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	w9, #16
	stp	w9, w8, [sp]
	mov	w0, #16
	bl	_buf_open
	mov	x20, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error
LBB0_2:
	mov	x1, sp
	mov	x0, x20
	mov	w2, #8
	bl	_buf_add
	mov	x21, x0
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #8
	bl	_buf_add
	cmn	w0, w21
	b.eq	LBB0_4
; %bb.3:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_error
LBB0_4:
	mov	x0, x19
	mov	x1, x20
	bl	_buf_close
	cmn	w0, #1
	b.ne	LBB0_6
; %bb.5:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_error
LBB0_6:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IMSG_SET_INTERFACE_MTU,4,2     ; @IMSG_SET_INTERFACE_MTU
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"buf_open: %m"

l_.str.1:                               ; @.str.1
	.asciz	"buf_add: %m"

l_.str.2:                               ; @.str.2
	.asciz	"buf_close: %m"

.subsections_via_symbols
