	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_if_mtu
_get_if_mtu:                            ## @get_if_mtu
	.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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_IFNAMSIZ@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movl	$7, %edx
	callq	_strncmp
	movl	$65536, %r15d                   ## imm = 0x10000
	testl	%eax, %eax
	jne	LBB0_8
## %bb.1:
	movq	(%rbx), %rdi
	movl	$123, %esi
	callq	_strchr
	testl	%eax, %eax
	jne	LBB0_8
## %bb.2:
	movq	(%rbx), %rdi
	movl	$125, %esi
	callq	_strchr
	testl	%eax, %eax
	jne	LBB0_8
## %bb.3:
	movq	(%rbx), %rsi
	addq	$7, %rsi
	movl	(%r12), %edx
	decl	%edx
	movq	%r14, %rdi
	callq	_strncpy
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcspn
	movb	$0, (%r14,%rax)
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	-56(%rbp), %rdi
	movl	(%r12), %edx
	movq	%r14, %rsi
	callq	_strncpy
	movq	_SIOCGIFMTU@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	movq	%rbx, %rdx
	callq	_ioctl
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	callq	_D
LBB0_7:
	movl	-48(%rbp), %r15d
	jmp	LBB0_8
LBB0_4:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_D
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movl	%r15d, %eax
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IFNAMSIZ,4,2                   ## @IFNAMSIZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"netmap:"

L_.str.1:                               ## @.str.1
	.asciz	"-*^{}/@"

	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
L_.str.2:                               ## @.str.2
	.asciz	"socket() failed: %s"

	.comm	_errno,4,2                      ## @errno
	.comm	_SIOCGIFMTU,4,2                 ## @SIOCGIFMTU
L_.str.3:                               ## @.str.3
	.asciz	"ioctl(SIOCGIFMTU) failed: %s"

	.no_dead_strip	_get_if_mtu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_if_mtu
_get_if_mtu:                            ; @get_if_mtu
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	sub	sp, sp, #32
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x21, _IFNAMSIZ@GOTPAGE
Lloh4:
	ldr	x21, [x21, _IFNAMSIZ@GOTPAGEOFF]
	ldr	w8, [x21]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x19, x9, x8
	mov	sp, x19
	ldr	x0, [x0]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #7
	bl	_strncmp
	cbnz	w0, LBB0_3
; %bb.1:
	ldr	x0, [x20]
	mov	w1, #123
	bl	_strchr
	cbnz	w0, LBB0_3
; %bb.2:
	ldr	x0, [x20]
	mov	w1, #125
	bl	_strchr
	cbz	w0, LBB0_6
LBB0_3:
	mov	w20, #65536
LBB0_4:
	ldur	x8, [x29, #-40]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.5:
	mov	x0, x20
	sub	sp, x29, #32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	x8, [x20]
	add	x1, x8, #7
	ldr	w8, [x21]
	sub	w2, w8, #1
	mov	x0, x19
	bl	_strncpy
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_strcspn
	strb	wzr, [x19, x0]
Lloh14:
	adrp	x8, _AF_INET@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x8, _SOCK_DGRAM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SOCK_DGRAM@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
	mov	x20, x0
	tbnz	w0, #31, LBB0_10
; %bb.7:
	sub	x0, x29, #56
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldur	x0, [x29, #-56]
	ldr	w2, [x21]
	mov	x1, x19
	bl	_strncpy
Lloh20:
	adrp	x8, _SIOCGIFMTU@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SIOCGIFMTU@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	sub	x2, x29, #56
	mov	x0, x20
	bl	_ioctl
	cbz	w0, LBB0_9
; %bb.8:
Lloh23:
	adrp	x8, _errno@GOTPAGE
Lloh24:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_strerror
	mov	x1, x0
Lloh26:
	adrp	x0, l_.str.3@PAGE
Lloh27:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_D
LBB0_9:
	ldur	w20, [x29, #-48]
	b	LBB0_4
LBB0_10:
Lloh28:
	adrp	x8, _errno@GOTPAGE
Lloh29:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	bl	_strerror
	mov	x1, x0
Lloh31:
	adrp	x0, l_.str.2@PAGE
Lloh32:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_D
	b	LBB0_4
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_IFNAMSIZ,4,2                   ; @IFNAMSIZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"netmap:"

l_.str.1:                               ; @.str.1
	.asciz	"-*^{}/@"

	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
l_.str.2:                               ; @.str.2
	.asciz	"socket() failed: %s"

	.comm	_errno,4,2                      ; @errno
	.comm	_SIOCGIFMTU,4,2                 ; @SIOCGIFMTU
l_.str.3:                               ; @.str.3
	.asciz	"ioctl(SIOCGIFMTU) failed: %s"

	.no_dead_strip	_get_if_mtu
.subsections_via_symbols
