	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getifmtu                       ## -- Begin function getifmtu
	.p2align	4, 0x90
_getifmtu:                              ## @getifmtu
	.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, %r14
	xorl	%eax, %eax
	callq	_get_query_socket
	movl	%eax, %ebx
	leaq	-24(%rbp), %rdi
	movl	$8, %esi
	callq	_bzero
	movl	-20(%rbp), %edi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_strlcpy
	cmpl	$4, %eax
	jb	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_2:
	movq	_SIOCGIFMTU@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rdx
	movl	%ebx, %edi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_ioctl
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_4:
	movl	-24(%rbp), %eax
	testl	%eax, %eax
	jg	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	callq	_warnx
	movl	$1500, %eax                     ## imm = 0x5DC
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"getifmtu: strlcpy"

	.comm	_SIOCGIFMTU,4,2                 ## @SIOCGIFMTU
L_.str.1:                               ## @.str.1
	.asciz	"SIOCGIFMTU"

L_.str.2:                               ## @.str.2
	.asciz	"could not get mtu for %s, assuming 1500"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getifmtu                       ; -- Begin function getifmtu
	.p2align	2
_getifmtu:                              ; @getifmtu
	.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
	bl	_get_query_socket
	mov	x20, x0
	add	x0, sp, #8
	mov	w1, #8
	bl	_bzero
	ldr	w0, [sp, #12]
	mov	x1, x19
	mov	w2, #4
	bl	_strlcpy
	cmp	w0, #4
	b.lo	LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_2:
Lloh2:
	adrp	x8, _SIOCGIFMTU@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SIOCGIFMTU@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x20
	bl	_ioctl
	cmn	w0, #1
	b.ne	LBB0_4
; %bb.3:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_4:
	ldr	w0, [sp, #8]
	cmp	w0, #0
	b.gt	LBB0_6
; %bb.5:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_warnx
	mov	w0, #1500
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"getifmtu: strlcpy"

	.comm	_SIOCGIFMTU,4,2                 ; @SIOCGIFMTU
l_.str.1:                               ; @.str.1
	.asciz	"SIOCGIFMTU"

l_.str.2:                               ; @.str.2
	.asciz	"could not get mtu for %s, assuming 1500"

.subsections_via_symbols
