	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_readether                      ## -- Begin function readether
	.p2align	4, 0x90
_readether:                             ## @readether
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	$0, -48(%rbp)
	leaq	-48(%rbp), %rsi
	movl	%ecx, %edx
	callq	_netif_get
	movl	%eax, %r13d
	leal	1(%r13), %eax
	movq	-48(%rbp), %rdi
	cmpl	$8, %eax
	jbe	LBB0_1
## %bb.2:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	_ETHER_ALIGN@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	(%rcx,%rdi), %r14
	movl	(%rbx), %eax
	movl	4(%rcx,%rdi), %esi
	movl	%eax, %edi
	movl	$6, %edx
	callq	_bcmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	_bcea@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r14), %esi
	movl	$6, %edx
	callq	_bcmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	-48(%rbp), %rdi
LBB0_1:
	callq	_free
	movl	$-1, %r13d
	jmp	LBB0_6
LBB0_5:
	movq	-48(%rbp), %rax
	movq	%rax, (%r12)
	leaq	8(%r14), %rax
	movq	%rax, (%r15)
	movl	(%r14), %edi
	callq	_ntohs
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	addl	$-8, %r13d
LBB0_6:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETHER_ALIGN,8,3                ## @ETHER_ALIGN
	.comm	_bcea,4,2                       ## @bcea
	.comm	_debug,8,3                      ## @debug
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_readether                      ; -- Begin function readether
	.p2align	2
_readether:                             ; @readether
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x4
	mov	x20, x2
	mov	x21, x1
	mov	x23, x0
	str	xzr, [sp, #8]
	add	x1, sp, #8
	mov	x2, x3
	bl	_netif_get
	mov	x22, x0
	add	w8, w0, #1
	ldr	x0, [sp, #8]
	cmp	w8, #8
	b.ls	LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _ETHER_ALIGN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETHER_ALIGN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x24, x8, x0
	ldr	w0, [x23]
	ldr	w1, [x24, #4]
	mov	w2, #6
	bl	_bcmp
	cbz	x0, LBB0_5
; %bb.2:
Lloh3:
	adrp	x8, _bcea@GOTPAGE
Lloh4:
	ldr	x8, [x8, _bcea@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w1, [x24, #4]
	mov	w2, #6
	bl	_bcmp
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x0, [sp, #8]
LBB0_4:
	bl	_free
	mov	w0, #-1
	b	LBB0_6
LBB0_5:
	ldr	x8, [sp, #8]
	str	x8, [x21]
	ldr	w0, [x24], #8
	str	x24, [x20]
	bl	_ntohs
	str	w0, [x19]
	sub	w0, w22, #8
LBB0_6:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ETHER_ALIGN,8,3                ; @ETHER_ALIGN
	.comm	_bcea,4,2                       ; @bcea
	.comm	_debug,8,3                      ; @debug
.subsections_via_symbols
