	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ether_DescriptorRead
_ether_DescriptorRead:                  ## @ether_DescriptorRead
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r13
	callq	_descriptor2physical
	movq	%rax, %r12
	movl	8(%rax), %edi
	callq	_device2ether
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	js	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movq	%r15, %rsi
	callq	_FD_ISSET
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_ether_MessageIn
	movq	8(%rbx), %rax
	movq	_CARRIER_LOST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.5:
	movq	_LogPHASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r12), %edx
	leaq	L_.str(%rip), %rsi
	callq	_log_Printf
	movl	(%r12), %edi
	movq	_CLOSE_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_datalink_Down                  ## TAILCALL
LBB0_3:
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_physical_IsSet
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_physical_DescriptorRead        ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CARRIER_LOST,8,3               ## @CARRIER_LOST
	.comm	_LogPHASE,4,2                   ## @LogPHASE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Device disconnected\n"

	.comm	_CLOSE_NORMAL,4,2               ## @CLOSE_NORMAL
	.no_dead_strip	_ether_DescriptorRead
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ether_DescriptorRead
_ether_DescriptorRead:                  ; @ether_DescriptorRead
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_descriptor2physical
	mov	x22, x0
	ldr	w0, [x0, #8]
	bl	_device2ether
	mov	x23, x0
	ldr	x0, [x0]
	tbnz	x0, #63, LBB0_4
; %bb.1:
	mov	x1, x19
	bl	_FD_ISSET
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x23
	bl	_ether_MessageIn
	ldr	x8, [x23, #8]
Lloh0:
	adrp	x9, _CARRIER_LOST@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CARRIER_LOST@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _LogPHASE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LogPHASE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w2, [x22, #4]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_log_Printf
	ldr	w0, [x22]
Lloh8:
	adrp	x8, _CLOSE_NORMAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CLOSE_NORMAL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_datalink_Down
LBB0_4:
	mov	x0, x21
	mov	x1, x19
	bl	_physical_IsSet
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_physical_DescriptorRead
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CARRIER_LOST,8,3               ; @CARRIER_LOST
	.comm	_LogPHASE,4,2                   ; @LogPHASE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Device disconnected\n"

	.comm	_CLOSE_NORMAL,4,2               ; @CLOSE_NORMAL
	.no_dead_strip	_ether_DescriptorRead
.subsections_via_symbols
