	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	cmpl	$3, %edi
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_errx
LBB0_2:
	movq	8(%rbx), %rdi
	callq	_strdup
	movq	%rax, %r14
	movq	16(%rbx), %rdi
	leaq	-40(%rbp), %rsi
	movl	$10, %edx
	callq	_strtol
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_printf
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_printf
	xorl	%eax, %eax
	callq	_ifconfig_open
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_ifconfig_set_mtu
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%r15, %rdi
	callq	_ifconfig_err_errtype
	cmpl	$129, %eax
	je	LBB0_9
## %bb.7:
	cmpl	$128, %eax
	jne	LBB0_12
## %bb.8:
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_13
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_errx
	jmp	LBB0_15
LBB0_5:
	leaq	L_.str.4(%rip), %rdi
	xorl	%r12d, %r12d
	movq	%r14, %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_printf
	movq	%r15, %rdi
	callq	_ifconfig_close
	movq	%r14, %rdi
	callq	_free
	jmp	LBB0_16
LBB0_9:
	movq	%r15, %rdi
	callq	_ifconfig_err_ioctlreq
	movq	_SIOCSIFMTU@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_11
## %bb.10:
	leaq	L_.str.6(%rip), %rdi
	jmp	LBB0_13
LBB0_12:
	leaq	L_.str.8(%rip), %rdi
LBB0_13:
	xorl	%eax, %eax
	callq	_warnx
LBB0_14:
	movq	%r15, %rdi
	callq	_ifconfig_close
	movq	%r14, %rdi
	callq	_free
LBB0_15:
	movl	$-1, %r12d
LBB0_16:
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%r15, %rdi
	callq	_ifconfig_err_ioctlreq
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_ifconfig_err_errno
	leaq	L_.str.7(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_warnx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid number of arguments. First argument should be interface name, second argument should be the MTU to set."

L_.str.1:                               ## @.str.1
	.asciz	"Interface name: %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"New MTU: %d"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.3:                               ## @.str.3
	.asciz	"Failed to open libifconfig handle."

L_.str.4:                               ## @.str.4
	.asciz	"Successfully changed MTU of %s to %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"couldn't create socket. This shouldn't happen.\n"

	.comm	_SIOCSIFMTU,4,2                 ## @SIOCSIFMTU
L_.str.6:                               ## @.str.6
	.asciz	"Failed to set MTU (SIOCSIFMTU)\n"

L_.str.7:                               ## @.str.7
	.asciz	"Failed to set MTU due to error in unexpected ioctl() call %lu. Error code: %i.\n"

L_.str.8:                               ## @.str.8
	.asciz	"Should basically never end up here in this example.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	cmp	w0, #3
	b.eq	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_errx
LBB0_2:
	ldr	x0, [x20, #8]
	bl	_strdup
	mov	x19, x0
	ldr	x0, [x20, #16]
	add	x1, sp, #24
	mov	w2, #10
	bl	_strtol
	mov	x21, x0
	str	x19, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	str	x21, [sp]
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	bl	_ifconfig_open
	cbz	x0, LBB0_7
; %bb.3:
	mov	x20, x0
	mov	x1, x19
	mov	x2, x21
	bl	_ifconfig_set_mtu
	cbz	x0, LBB0_8
; %bb.4:
	mov	x0, x20
	bl	_ifconfig_err_errtype
	cmp	w0, #129
	b.eq	LBB0_9
; %bb.5:
	cmp	w0, #128
	b.ne	LBB0_11
; %bb.6:
Lloh9:
	adrp	x0, l_.str.5@PAGE
Lloh10:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_13
LBB0_7:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_errx
	b	LBB0_14
LBB0_8:
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	stp	x19, x21, [sp]
Lloh16:
	adrp	x0, l_.str.4@PAGE
Lloh17:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
	mov	x0, x20
	bl	_ifconfig_close
	mov	x0, x19
	bl	_free
	mov	w0, #0
	b	LBB0_15
LBB0_9:
	mov	x0, x20
	bl	_ifconfig_err_ioctlreq
Lloh18:
	adrp	x8, _SIOCSIFMTU@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SIOCSIFMTU@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_12
; %bb.10:
Lloh21:
	adrp	x0, l_.str.6@PAGE
Lloh22:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_13
LBB0_11:
Lloh23:
	adrp	x0, l_.str.8@PAGE
Lloh24:
	add	x0, x0, l_.str.8@PAGEOFF
	b	LBB0_13
LBB0_12:
	mov	x0, x20
	bl	_ifconfig_err_ioctlreq
	mov	x21, x0
	mov	x0, x20
	bl	_ifconfig_err_errno
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x21, x0, [sp]
Lloh25:
	adrp	x0, l_.str.7@PAGE
Lloh26:
	add	x0, x0, l_.str.7@PAGEOFF
LBB0_13:
	bl	_warnx
	mov	x0, x20
	bl	_ifconfig_close
	mov	x0, x19
	bl	_free
LBB0_14:
	mov	w0, #-1
LBB0_15:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid number of arguments. First argument should be interface name, second argument should be the MTU to set."

l_.str.1:                               ; @.str.1
	.asciz	"Interface name: %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"New MTU: %d"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.3:                               ; @.str.3
	.asciz	"Failed to open libifconfig handle."

l_.str.4:                               ; @.str.4
	.asciz	"Successfully changed MTU of %s to %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"couldn't create socket. This shouldn't happen.\n"

	.comm	_SIOCSIFMTU,4,2                 ; @SIOCSIFMTU
l_.str.6:                               ; @.str.6
	.asciz	"Failed to set MTU (SIOCSIFMTU)\n"

l_.str.7:                               ; @.str.7
	.asciz	"Failed to set MTU due to error in unexpected ioctl() call %lu. Error code: %i.\n"

l_.str.8:                               ; @.str.8
	.asciz	"Should basically never end up here in this example.\n"

.subsections_via_symbols
