	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getifspeed                     ## -- Begin function getifspeed
	.p2align	4, 0x90
_getifspeed:                            ## @getifspeed
	.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	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_get_query_socket
	movl	%eax, %r14d
	leaq	-40(%rbp), %rdi
	movl	$16, %esi
	callq	_bzero
	movl	-32(%rbp), %edi
	movq	%rbx, %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:
	leaq	-24(%rbp), %rax
	movq	%rax, -40(%rbp)
	movq	_SIOCGIFDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	movl	%r14d, %edi
	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
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"getifspeed: strlcpy"

	.comm	_SIOCGIFDATA,4,2                ## @SIOCGIFDATA
L_.str.1:                               ## @.str.1
	.asciz	"SIOCGIFDATA"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getifspeed                     ; -- Begin function getifspeed
	.p2align	2
_getifspeed:                            ; @getifspeed
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x20, x0
	bl	_get_query_socket
	mov	x19, x0
	add	x0, sp, #16
	mov	w1, #16
	bl	_bzero
	ldr	w0, [sp, #24]
	mov	x1, x20
	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:
	add	x8, sp, #8
	str	x8, [sp, #16]
Lloh2:
	adrp	x8, _SIOCGIFDATA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SIOCGIFDATA@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x2, sp, #16
	mov	x0, x19
	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]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"getifspeed: strlcpy"

	.comm	_SIOCGIFDATA,4,2                ; @SIOCGIFDATA
l_.str.1:                               ; @.str.1
	.asciz	"SIOCGIFDATA"

.subsections_via_symbols
